/* Game-scoped, except the temporary, namespaced expanded-view scroll lock. */
#ar-shepherds-sheep{margin:14px 0 0;border:1px solid var(--line,#51412c);border-radius:7px;overflow:hidden;background:var(--surface,#10110e);color:var(--text,#eee8d9);font:14px/1.5 Arial,sans-serif}
#ar-shepherds-sheep *{box-sizing:border-box}
#ar-shepherds-sheep>summary{display:flex;gap:10px;align-items:center;min-height:50px;padding:9px 13px;cursor:pointer;color:var(--gold-light,#ead09b);font-weight:700;letter-spacing:.065em;list-style:none}
#ar-shepherds-sheep>summary::-webkit-details-marker{display:none}
#ar-shepherds-sheep>summary::after{content:'+';margin-left:auto;font:20px/1 Arial,sans-serif}
#ar-shepherds-sheep[open]>summary::after{content:'−'}
#ar-shepherds-sheep .ss-body{padding:0 10px 12px}
#ar-shepherds-sheep .ss-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:var(--gold-light,#ead09b);margin:8px 0}
#ar-shepherds-sheep h3{margin:8px 0;font-size:19px;line-height:1.2;color:inherit}
#ar-shepherds-sheep p{margin:8px 0;font-size:13px;line-height:1.55;color:inherit}
#ar-shepherds-sheep .ss-stage{position:relative;margin-top:10px;border:1px solid #637b63;border-radius:5px;overflow:hidden;background:#bed3c0}
#ar-shepherds-sheep canvas{display:block;width:100%;height:auto;aspect-ratio:5/3;image-rendering:auto;touch-action:manipulation;cursor:pointer;border:0;box-shadow:none}
#ar-shepherds-sheep .ss-friends{display:flex;align-items:center;justify-content:space-between;gap:5px;margin:10px 0 5px;font-size:12px}
#ar-shepherds-sheep .ss-friend-icons{font-size:18px;letter-spacing:2px;color:var(--gold-light,#ead09b);white-space:nowrap}
#ar-shepherds-sheep .ss-controls{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 0}
#ar-shepherds-sheep button{min-height:44px;padding:8px 11px;flex:1 1 auto;border:1px solid var(--line,#76623e);border-radius:5px;background:var(--surface,#151913);color:var(--text,#eee8d9);font:700 13px/1.3 Arial,sans-serif;cursor:pointer;white-space:normal}
#ar-shepherds-sheep button.ss-primary{background:var(--gold-light,#ead09b);color:#202219;border-color:var(--gold-light,#ead09b)}
#ar-shepherds-sheep button:disabled{cursor:default;opacity:.5}
#ar-shepherds-sheep :is(button,summary,canvas):focus-visible{outline:3px solid var(--gold-light,#efd299);outline-offset:-3px}
#ar-shepherds-sheep .ss-status{min-height:2.9em;font-weight:700}
#ar-shepherds-sheep .ss-legend{padding:8px 9px;background:color-mix(in srgb,var(--text,#fff) 5%,transparent);border:1px solid var(--line,#51412c);border-radius:5px;margin-top:10px}
#ar-shepherds-sheep .ss-legend-row{display:flex;gap:8px;align-items:center;margin:7px 0;font-size:12px;line-height:1.4}
#ar-shepherds-sheep .ss-legend canvas{flex:0 0 42px;width:42px;height:30px;aspect-ratio:auto;cursor:default;background:#bed3c0;border-radius:3px}
#ar-shepherds-sheep .ss-ending{margin-top:12px;padding:10px;border:1px solid var(--gold-light,#ead09b);border-radius:5px}
#ar-shepherds-sheep .ss-scripture{padding:9px 0;border-top:1px solid var(--line,#51412c)}
#ar-shepherds-sheep .ss-scripture strong{font-size:12px;color:var(--gold-light,#ead09b)}
#ar-shepherds-sheep .ss-scripture p{font:14px/1.65 Georgia,serif}
#ar-shepherds-sheep [hidden]{display:none!important}
#ar-shepherds-sheep .ss-note{font-size:11px;opacity:.85}
#ar-shepherds-sheep .ss-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Both native fullscreen and its in-page fallback use the same reversible view. */
html.ar-sheep-expanded,html.ar-sheep-expanded body{overflow:hidden!important}
#ar-shepherds-sheep.ss-expanded{position:fixed;inset:0;z-index:2147483000;width:100%;max-width:none;height:100vh;height:100dvh;margin:0;border-radius:0;box-sizing:border-box;overflow:auto;background:var(--surface,#10110e);overscroll-behavior:contain}
#ar-shepherds-sheep.ss-expanded::backdrop{background:#10110e}
#ar-shepherds-sheep.ss-expanded>summary{min-height:44px;padding:7px 13px}
#ar-shepherds-sheep.ss-expanded .ss-body{display:flex;flex-direction:column;gap:6px;height:calc(100% - 44px);min-height:300px;box-sizing:border-box;padding:0 max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
#ar-shepherds-sheep.ss-expanded .ss-kicker,#ar-shepherds-sheep.ss-expanded .ss-intro,#ar-shepherds-sheep.ss-expanded .ss-legend{display:none}
#ar-shepherds-sheep.ss-expanded .ss-friends{flex:0 0 auto;margin:0}
#ar-shepherds-sheep.ss-expanded .ss-stage{display:grid;place-items:center;flex:1 1 auto;min-height:100px;margin:0;background:#20362f}
#ar-shepherds-sheep.ss-expanded .ss-canvas{width:100%;height:100%;max-height:100%;object-fit:contain;min-height:0;aspect-ratio:auto}
#ar-shepherds-sheep.ss-expanded .ss-status{flex:0 0 auto;min-height:0;margin:0;font-size:12px}
#ar-shepherds-sheep.ss-expanded .ss-controls{position:sticky;bottom:0;z-index:1;flex:0 0 auto;justify-content:center;margin:0;padding-top:4px;background:var(--surface,#10110e)}
#ar-shepherds-sheep.ss-expanded .ss-controls button{flex:0 1 auto;min-width:74px}
#ar-shepherds-sheep.ss-expanded .ss-fullscreen{margin-left:auto;border-color:var(--gold-light,#ead09b)}
#ar-shepherds-sheep.ss-expanded .ss-note{flex:0 0 auto;margin:0}
#ar-shepherds-sheep.ss-expanded .ss-ending{flex:0 0 auto;margin:0}
@media(prefers-reduced-motion:reduce){#ar-shepherds-sheep *,#ar-shepherds-sheep *::before,#ar-shepherds-sheep *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){#ar-shepherds-sheep,#ar-shepherds-sheep button,#ar-shepherds-sheep .ss-stage{border-color:ButtonText}#ar-shepherds-sheep button.ss-primary{background:ButtonFace;color:ButtonText}}
/* v21: clear typesetting, tactile controls and an original valley diorama. */
#ar-shepherds-sheep{border-color:#52655c;background:#162a27;color:#f2e8d2;box-shadow:0 8px 30px #0002;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
#ar-shepherds-sheep>summary{font-family:inherit;font-size:15px;letter-spacing:.015em;text-transform:none;color:#f2d8a8;border-bottom:1px solid #52655c40;background:#20362f}
#ar-shepherds-sheep .ss-mark{display:grid;place-items:center;width:28px;height:28px;border:1px solid #7e9165;border-radius:50%;color:#ead095;font-size:18px}
#ar-shepherds-sheep .ss-body{padding:4px 12px 14px}
#ar-shepherds-sheep .ss-kicker{font:700 10px/1.5 ui-sans-serif,system-ui,sans-serif;letter-spacing:.13em;color:#b9c9ab;margin:12px 0 7px}
#ar-shepherds-sheep h3.ss-intro{font:700 27px/1.12 Georgia,"Times New Roman",serif;letter-spacing:-.025em;text-transform:none;color:#fff0cf;margin:0 0 10px}
#ar-shepherds-sheep p.ss-intro{font:14px/1.65 ui-sans-serif,system-ui,sans-serif;color:#d4ddd0;letter-spacing:0;text-transform:none;max-width:58ch}
#ar-shepherds-sheep .ss-legend{background:#203a32;border-color:#446051;padding:5px 10px}
#ar-shepherds-sheep .ss-legend-row{font-size:12px;line-height:1.55;gap:10px;margin:9px 0;color:#cfdbcc}
#ar-shepherds-sheep .ss-legend-row strong{display:block;font-size:12px;color:#f4e4bd}
#ar-shepherds-sheep .ss-legend canvas{height:32px;background:#d1ba97;border-radius:4px}
#ar-shepherds-sheep .ss-stage{border:2px solid #70866b;border-radius:7px;box-shadow:0 0 0 1px #152c26,0 5px 14px #0003;background:#d6b1a4}
#ar-shepherds-sheep .ss-scene-caption{position:absolute;inset:8% 6% auto;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;background:#21342fed;border:1px solid #b9ba8955;border-radius:5px;color:#fff1d0;padding:12px 9px;pointer-events:none;box-shadow:0 4px 14px #0002}
#ar-shepherds-sheep .ss-scene-eyebrow{font:700 9px/1.2 ui-sans-serif,system-ui,sans-serif;letter-spacing:.16em;color:#baccaa}
#ar-shepherds-sheep .ss-scene-title{font:700 clamp(18px,2.5vw,28px)/1.1 Georgia,serif;letter-spacing:-.02em;text-transform:none}
#ar-shepherds-sheep .ss-scene-subtitle{font:12px/1.45 ui-sans-serif,system-ui,sans-serif;max-width:35ch;color:#e1dfc5}
#ar-shepherds-sheep .ss-friends{font:600 12px/1.4 ui-sans-serif,system-ui,sans-serif;color:#c5d6c3}
#ar-shepherds-sheep .ss-friend-icons{font-size:23px;letter-spacing:4px;color:#efd199}
#ar-shepherds-sheep .ss-controls{gap:7px}
#ar-shepherds-sheep button{font:650 13px/1.35 ui-sans-serif,system-ui,sans-serif;letter-spacing:0;text-transform:none;border-color:#647c67;border-radius:5px;background:#294537;color:#f0e9d4;box-shadow:0 2px 0 #0b211d}
#ar-shepherds-sheep button:hover{background:#355640;border-color:#a6bb84}
#ar-shepherds-sheep button.ss-primary,#ar-shepherds-sheep button.ss-jump{background:#edcf94;color:#26392d;border-color:#f2deaa}
#ar-shepherds-sheep button.ss-primary:hover,#ar-shepherds-sheep button.ss-jump:hover{background:#ffe0a7}
#ar-shepherds-sheep .ss-status{font:600 13px/1.5 ui-sans-serif,system-ui,sans-serif;color:#ebdebb;min-height:2.9em;letter-spacing:0;text-transform:none;margin:10px 0 5px}
#ar-shepherds-sheep p.ss-note{font:12px/1.6 ui-sans-serif,system-ui,sans-serif;color:#c0cfbd;opacity:1;letter-spacing:0;text-transform:none}
#ar-shepherds-sheep .ss-audio-status{border-left:2px solid #6f8b6b;padding-left:8px}
#ar-shepherds-sheep .ss-ending{background:#203a32;padding:16px;border-color:#bba778}
#ar-shepherds-sheep .ss-ending h3{font:700 26px/1.2 Georgia,serif;color:#fff0cc}
#ar-shepherds-sheep.ss-expanded{background:#142823}
#ar-shepherds-sheep.ss-expanded .ss-scene-caption{inset:8% auto auto;width:min(420px,82%);left:50%;transform:translateX(-50%);padding:clamp(12px,2vw,24px)}
#ar-shepherds-sheep.ss-expanded .ss-scene-title{font-size:clamp(22px,3vw,40px)}
#ar-shepherds-sheep.ss-expanded .ss-scene-subtitle{font-size:14px}
#ar-shepherds-sheep.ss-expanded .ss-controls{background:#142823}
#ar-shepherds-sheep.ss-expanded .ss-stage{position:relative}
#ar-shepherds-sheep.ss-expanded .ss-audio-status{font-size:11px;line-height:1.3}
@media(max-height:500px) and (orientation:landscape){#ar-shepherds-sheep.ss-expanded .ss-note{display:none}#ar-shepherds-sheep.ss-expanded .ss-friends{position:absolute;right:16px;top:9px}#ar-shepherds-sheep.ss-expanded .ss-friend-label{display:none}}

/* v22: illustrated cel-shaded game, quiet guide and in-world reunion. */
#ar-shepherds-sheep .ss-stage{border-color:#668d45;background:#79bcec;border-radius:10px}
#ar-shepherds-sheep .ss-friends{justify-content:flex-start;gap:9px;margin:4px 0 7px;color:#f4e8c9}
#ar-shepherds-sheep .ss-friends strong{font-size:13px}
#ar-shepherds-sheep canvas.ss-friend-icons{flex:0 0 96px;width:96px;height:28px;aspect-ratio:auto;cursor:default}
#ar-shepherds-sheep .ss-friend-label{margin-left:auto;font-size:11px;color:#c6d8bd}
#ar-shepherds-sheep .ss-status{min-height:1.5em;margin:7px 0;font-size:12px}
#ar-shepherds-sheep .ss-guide{margin-top:9px;border-top:1px solid #597452;padding-top:3px}
#ar-shepherds-sheep .ss-guide>summary{display:flex;align-items:center;gap:7px;min-height:44px;padding:5px 2px;cursor:pointer;list-style:none;font:650 12px/1.4 ui-sans-serif,system-ui,sans-serif;color:#cfdec2}
#ar-shepherds-sheep .ss-guide>summary::-webkit-details-marker{display:none}
#ar-shepherds-sheep .ss-guide>summary::before{content:'▸';font-size:15px}
#ar-shepherds-sheep .ss-guide[open]>summary::before{content:'▾'}
#ar-shepherds-sheep .ss-volume-label{display:flex;align-items:center;gap:8px;margin:8px 0 0;font-size:11px;color:#c5d6bd}
#ar-shepherds-sheep .ss-volume{flex:1;max-width:160px;min-width:40px;height:26px;accent-color:#e7c787;cursor:pointer}
#ar-shepherds-sheep .ss-volume-value{min-width:3ch}
#ar-shepherds-sheep .ss-scene-caption{inset:8% 10% auto;background:#244433e8;border:1px solid #f3e5b966;border-radius:12px;box-shadow:0 5px 15px #13311d40}
#ar-shepherds-sheep .ss-ending{position:absolute;inset:5% 5% auto;display:flex;align-items:center;flex-direction:column;gap:2px;padding:7px 9px;text-align:center;background:#fff3ddeb;color:#283d2b;border:2px solid #806341;border-radius:12px;box-shadow:0 6px 16px #23402435;max-height:73%;overflow:auto;margin:0}
#ar-shepherds-sheep .ss-ending-kicker{font:800 8px/1.2 ui-sans-serif,system-ui,sans-serif;letter-spacing:.18em;color:#577347}
#ar-shepherds-sheep .ss-ending h3{font:700 17px/1.12 Georgia,serif;color:#31472e;margin:2px 0}
#ar-shepherds-sheep .ss-ending-message{font:500 11px/1.4 ui-sans-serif,system-ui,sans-serif;max-width:47ch;margin:3px 0;color:#31432c}
#ar-shepherds-sheep .ss-ending-reference{font:600 8px/1.35 ui-sans-serif,system-ui,sans-serif;max-width:55ch;margin:0;color:#536f42}
#ar-shepherds-sheep button.ss-ending-next{flex:0;min-height:44px;padding:4px 9px;font-size:10px;border-color:#8a9b5e;background:#e4e8bb;color:#304429;margin:4px 0 0;box-shadow:none}
#ar-shepherds-sheep button.ss-ending-next:disabled{opacity:1;cursor:default;background:transparent;border-color:transparent}
#ar-shepherds-sheep.ss-expanded .ss-guide{flex:0 0 auto;margin-top:0}
#ar-shepherds-sheep.ss-expanded .ss-guide[open]{max-height:28vh;overflow:auto}
#ar-shepherds-sheep.ss-expanded .ss-guide .ss-legend{display:block}
#ar-shepherds-sheep.ss-expanded .ss-volume-label{flex:0 0 auto;margin:0}
#ar-shepherds-sheep.ss-expanded .ss-ending{inset:7% auto auto;left:50%;transform:translateX(-50%);width:min(600px,86%);padding:clamp(10px,2vw,24px);max-height:64%}
#ar-shepherds-sheep.ss-expanded .ss-ending h3{font-size:clamp(22px,3vw,36px)}
#ar-shepherds-sheep.ss-expanded .ss-ending-message{font-size:clamp(12px,1.6vw,20px)}
#ar-shepherds-sheep.ss-expanded .ss-ending-reference{font-size:clamp(10px,1vw,13px)}
@media(max-width:380px){#ar-shepherds-sheep .ss-ending{inset:3% 3% auto;padding:7px 8px;gap:2px}#ar-shepherds-sheep .ss-ending h3{font-size:15px}#ar-shepherds-sheep .ss-ending-message{font-size:10px}#ar-shepherds-sheep .ss-ending-reference{font-size:8px}}

/* v24: quiet, game-scoped scoring stays outside the Scripture/reunion panel. */
#ar-shepherds-sheep .ss-scoreboard{display:flex;align-items:center;gap:10px;min-height:20px;margin:0 0 5px;color:#c9d7be;font:600 11px/1.4 ui-sans-serif,system-ui,sans-serif;font-variant-numeric:tabular-nums}
#ar-shepherds-sheep .ss-scoreboard strong{margin-left:3px;color:#f5e5b6;font-weight:750}
#ar-shepherds-sheep .ss-best-wrap{margin-left:auto}
#ar-shepherds-sheep .ss-multiplier{padding:1px 6px;border:1px solid #9d8d56;border-radius:8px;color:#f7df91;font-size:10px;line-height:1.3}
#ar-shepherds-sheep.ss-expanded .ss-scoreboard{flex:0 0 auto;margin:0}

/* v23: range track endpoints coincide with thumb centres, independent of site text-field styles. */
#ar-shepherds-sheep .ss-volume-rail{position:relative;display:block;flex:1 1 160px;max-width:180px;min-width:64px;height:36px;--ss-volume:55%}
#ar-shepherds-sheep .ss-volume-rail::before{content:'';position:absolute;left:9px;right:9px;top:15px;height:6px;border-radius:3px;background:linear-gradient(to right,#e9c889 0%,#e9c889 var(--ss-volume),#52705a var(--ss-volume),#52705a 100%);box-shadow:0 0 0 1px #112c20;pointer-events:none}
#ar-shepherds-sheep input.ss-volume{display:block;box-sizing:border-box!important;appearance:none!important;-webkit-appearance:none!important;width:100%!important;min-width:0!important;max-width:100%!important;height:36px!important;min-height:36px!important;padding:0!important;margin:0!important;border:0!important;border-radius:5px;background:transparent!important;box-shadow:none!important;direction:ltr;writing-mode:horizontal-tb;cursor:pointer;touch-action:pan-y}
#ar-shepherds-sheep input.ss-volume::-webkit-slider-runnable-track{height:6px;border:0;background:transparent;box-shadow:none}
#ar-shepherds-sheep input.ss-volume::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:18px;height:18px;margin-top:-6px;border:2px solid #233e2c;border-radius:50%;background:#fff0c5;box-shadow:0 1px 0 #0004}
#ar-shepherds-sheep input.ss-volume::-moz-range-track{height:6px;border:0;background:transparent;box-shadow:none}
#ar-shepherds-sheep input.ss-volume::-moz-range-progress{height:6px;background:transparent}
#ar-shepherds-sheep input.ss-volume::-moz-range-thumb{box-sizing:border-box;width:18px;height:18px;border:2px solid #233e2c;border-radius:50%;background:#fff0c5;box-shadow:0 1px 0 #0004}
#ar-shepherds-sheep input.ss-volume:focus-visible{outline:2px solid #f4dea0!important;outline-offset:2px}
#ar-shepherds-sheep .ss-volume-value{width:4ch;min-width:4ch;text-align:right;font-variant-numeric:tabular-nums}
#ar-shepherds-sheep .ss-ability{font-size:10px;line-height:1.2;color:#f7df91;margin-left:auto;text-align:right;max-width:12ch}
#ar-shepherds-sheep .ss-ending{inset:4.5% 6% auto;gap:3px;padding:9px 12px 8px;border:2px solid #364d2b;border-bottom-width:4px;border-radius:18px 18px 15px 15px;background:#fff1cc;color:#2f442e;box-shadow:0 3px 0 #d4b780,0 8px 0 #28462924;max-height:70%;scrollbar-width:thin;animation:ss-home-arrive .65s cubic-bezier(.2,.8,.2,1) both}
#ar-shepherds-sheep .ss-ending::before{content:'✦';position:absolute;top:7px;left:11px;font-size:16px;line-height:1;color:#ba934a}
#ar-shepherds-sheep .ss-ending-kicker{font:800 9px/1.1 ui-rounded,"Trebuchet MS",system-ui,sans-serif;letter-spacing:.13em;color:#6c7e43}
#ar-shepherds-sheep .ss-ending h3{font:800 clamp(18px,1.6vw,25px)/1.08 ui-rounded,"Trebuchet MS",system-ui,sans-serif;letter-spacing:-.04em;color:#304829;margin:1px 0 2px;text-shadow:0 1px #fffaf0}
#ar-shepherds-sheep .ss-ending-message{font:600 12px/1.4 "Trebuchet MS",ui-sans-serif,system-ui,sans-serif;max-width:47ch;margin:2px 0;color:#354832}
#ar-shepherds-sheep .ss-ending-reference{font:600 9px/1.35 ui-sans-serif,system-ui,sans-serif;max-width:55ch;margin:1px 0;color:#677746}
#ar-shepherds-sheep button.ss-ending-next{flex:0;min-height:44px;padding:5px 13px;margin:3px 0 0;border:2px solid #4d6838;border-radius:18px;background:#d8e3a4;color:#354c2c;font:800 11px/1.2 "Trebuchet MS",system-ui,sans-serif;box-shadow:0 2px 0 #4d6838}
#ar-shepherds-sheep button.ss-ending-next:hover{background:#e6efbc}
#ar-shepherds-sheep button.ss-ending-next:disabled{background:transparent;border-color:transparent;box-shadow:none;color:#657a48}
#ar-shepherds-sheep .ss-ending[data-page="1"] :is(h3,.ss-ending-message,.ss-ending-reference){animation:ss-page-a .4s ease-out both}
#ar-shepherds-sheep .ss-ending[data-page="2"] :is(h3,.ss-ending-message,.ss-ending-reference){animation:ss-page-b .4s ease-out both}
#ar-shepherds-sheep.ss-expanded .ss-ending{inset:5% auto auto;left:50%;width:min(580px,86%);padding:clamp(12px,2vw,23px);max-height:65%;animation:ss-home-wide .65s cubic-bezier(.2,.8,.2,1) both}
#ar-shepherds-sheep.ss-expanded .ss-ending h3{font-size:clamp(23px,3vw,37px)}
#ar-shepherds-sheep.ss-expanded .ss-ending-message{font-size:clamp(13px,1.6vw,19px)}
#ar-shepherds-sheep.ss-expanded .ss-ending-reference{font-size:clamp(10px,1vw,13px)}
#ar-shepherds-sheep.ss-expanded button.ss-ending-next{min-height:44px;font-size:13px}
@keyframes ss-home-arrive{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes ss-home-wide{from{opacity:0;transform:translate(-50%,8px) scale(.98)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@keyframes ss-page-a{from{opacity:.1;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes ss-page-b{from{opacity:.1;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:380px){#ar-shepherds-sheep .ss-ending{inset:3% 4% auto;padding:7px 9px;gap:2px}#ar-shepherds-sheep .ss-ending h3{font-size:18px}#ar-shepherds-sheep .ss-ending-message{font-size:11px}#ar-shepherds-sheep .ss-ending-reference{font-size:9px}}
@media(forced-colors:active){#ar-shepherds-sheep .ss-volume-rail::before{background:ButtonText}#ar-shepherds-sheep input.ss-volume::-webkit-slider-thumb{background:ButtonFace;border-color:ButtonText}#ar-shepherds-sheep input.ss-volume::-moz-range-thumb{background:ButtonFace;border-color:ButtonText}}

/* v25: a self-contained little sheep world. These tokens never read site themes. */
@font-face{font-family:SheepCloud;src:url('./e565bd7bffd895ca64f8d1cb.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
#ar-shepherds-sheep{
 --ss-ink:#304d41;--ss-rim:#46664e;--ss-sky:#d6f0f5;--ss-wool:#fff8e6;--ss-grass:#d7e9b2;--ss-body-font:ui-rounded,"Trebuchet MS",system-ui,-apple-system,sans-serif;
 color-scheme:light;isolation:isolate;position:relative;min-width:0;border:3px solid var(--ss-rim)!important;border-radius:24px 24px 20px 20px!important;
 background:linear-gradient(180deg,#c9ebf4 0%,#e5f4ea 44%,#dceabf 100%)!important;color:var(--ss-ink)!important;
 box-shadow:0 5px 0 #283f36,0 9px 0 #bdce9066!important;font:600 14px/1.5 var(--ss-body-font);text-shadow:none;letter-spacing:0;text-transform:none;accent-color:#6d974d;
}
#ar-shepherds-sheep :is(button,summary,input,output,canvas){font-family:var(--ss-body-font);letter-spacing:0;text-transform:none;clip-path:none;filter:none}
#ar-shepherds-sheep>summary{position:relative;isolation:isolate;gap:10px;padding:12px 14px;min-height:86px;background:linear-gradient(180deg,#9ed7ed,#c8e9ed)!important;border:0;border-bottom:3px solid #70986c;color:var(--ss-ink)!important;overflow:hidden}
#ar-shepherds-sheep>summary::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('./sheep-ui-v25/cloud.svg') right 32px top -7px/108px 78px no-repeat,url('./sheep-ui-v25/cloud.svg') left 65px bottom -28px/145px 92px no-repeat;opacity:.65}
#ar-shepherds-sheep>summary::after{content:'+';display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;margin-left:auto;border:2px solid #537c60;border-radius:50%;background:#fff8e6;color:#385b4c;font:800 23px/1 var(--ss-body-font);box-shadow:0 2px 0 #638a6d}
#ar-shepherds-sheep[open]>summary::after{content:'−'}
#ar-shepherds-sheep .ss-mark{display:block;flex:0 0 45px;width:45px;height:50px;border:0;border-radius:0;background:url('./sheep-ui-v54/sheep-mark.svg') center/contain no-repeat;filter:drop-shadow(0 2px 0 #ffffffa6)}
#ar-shepherds-sheep .ss-title{display:flex;flex-direction:column;min-width:0;gap:3px}
#ar-shepherds-sheep .ss-title-name{font:400 clamp(29px,3vw,37px)/1.05 SheepCloud,var(--ss-body-font);letter-spacing:.01em;color:#fffdf2;-webkit-text-stroke:1px #385d55;paint-order:stroke fill;text-shadow:0 2px 0 #739eaa,0 3px 0 #385d55,2px 0 0 #fffdf2,-2px 0 0 #fffdf2;white-space:normal;overflow-wrap:normal}
#ar-shepherds-sheep .ss-title-subtitle{font:800 10px/1.2 var(--ss-body-font);letter-spacing:.12em;text-transform:uppercase;color:#345442}
#ar-shepherds-sheep .ss-body{position:relative;padding:12px 11px 14px;min-width:0}
#ar-shepherds-sheep .ss-friends{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 8px;padding:7px 9px;min-height:45px;border:2px solid #88aa7a;border-radius:17px;background:#fff9e7;color:#3d5948;font:700 12px/1.3 var(--ss-body-font);box-shadow:0 2px 0 #c0d9a0}
#ar-shepherds-sheep .ss-friends strong{font-size:12px;color:#3d5948}
#ar-shepherds-sheep canvas.ss-friend-icons{flex:0 0 87px;width:87px;height:26px}
#ar-shepherds-sheep .ss-friend-label{margin-left:auto;color:#527040;font-size:10px;max-width:7ch;text-align:right}
#ar-shepherds-sheep .ss-ability{margin-left:auto;max-width:13ch;padding:4px 6px;border:1px solid #b69349;border-radius:9px;background:#fae8ad;color:#645025;font-size:10px;line-height:1.25}
#ar-shepherds-sheep .ss-scoreboard{gap:6px;flex-wrap:wrap;margin:0 1px 9px;min-height:27px;color:#405c43;font:700 11px/1.4 var(--ss-body-font)}
#ar-shepherds-sheep .ss-scoreboard>span:first-child{display:flex;align-items:center;gap:4px}
#ar-shepherds-sheep .ss-scoreboard>span:first-child::before{content:'';display:block;flex:0 0 23px;width:23px;height:23px;background:url('./sheep-ui-v25/orb.svg') center/contain no-repeat}
#ar-shepherds-sheep .ss-scoreboard strong{font-weight:900;color:#2e513a;font-size:13px}
#ar-shepherds-sheep .ss-best-wrap{margin-left:auto;background:#fff8e2;border:1px solid #9cb675;border-radius:12px;padding:3px 8px}
#ar-shepherds-sheep .ss-multiplier{border:1px solid #a2803d;border-radius:11px;padding:3px 6px;background:#fff1bf;color:#725022;font-size:10px}
#ar-shepherds-sheep .ss-stage{border:3px solid #527449!important;border-radius:19px!important;background:#94d7ee!important;box-shadow:0 4px 0 #a1bd6b,0 0 0 2px #f5fae4!important;margin-top:0}
#ar-shepherds-sheep .ss-canvas{border-radius:14px}
#ar-shepherds-sheep .ss-status{position:relative;color:#39583f;font:700 12px/1.55 var(--ss-body-font);min-height:1.5em;margin:12px 3px 8px;overflow-wrap:break-word}
#ar-shepherds-sheep .ss-controls{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 4px;padding-bottom:3px}
#ar-shepherds-sheep button{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:48px;padding:9px 10px;flex:1 1 calc(50% - 8px);border:2px solid #52754f!important;border-radius:16px!important;background:#fff8e6!important;color:#34513e!important;box-shadow:0 3px 0 #709154,inset 0 2px 0 #fffff4!important;font:800 12px/1.25 var(--ss-body-font)!important;white-space:normal;word-break:normal;overflow-wrap:break-word;clip-path:none!important;filter:none!important;text-shadow:none!important;transition:background-color .15s,transform .15s,box-shadow .15s;touch-action:manipulation}
#ar-shepherds-sheep button::before{content:'';display:block;position:static;flex:0 0 25px;width:25px;height:25px;background:var(--ss-button-art,none) center/contain no-repeat;opacity:1;pointer-events:none}
#ar-shepherds-sheep button::after{content:none!important}
#ar-shepherds-sheep .ss-start{--ss-button-art:url('./sheep-ui-v25/play.svg')}
#ar-shepherds-sheep .ss-jump{--ss-button-art:url('./sheep-ui-v25/jump.svg')}
#ar-shepherds-sheep .ss-pause{--ss-button-art:url('./sheep-ui-v25/pause.svg')}
#ar-shepherds-sheep .ss-sound{--ss-button-art:url('./sheep-ui-v25/muted.svg')}
#ar-shepherds-sheep .ss-sound[aria-pressed="true"]{--ss-button-art:url('./sheep-ui-v25/sound.svg')}
#ar-shepherds-sheep .ss-fullscreen{--ss-button-art:url('./sheep-ui-v25/expand.svg')}
#ar-shepherds-sheep .ss-ending-next{--ss-button-art:url('./sheep-ui-v25/leaf.svg')}
#ar-shepherds-sheep button.ss-primary,#ar-shepherds-sheep button.ss-jump{background:#d7e9ab!important;color:#304e35!important;border-color:#507345!important;box-shadow:0 3px 0 #557440,inset 0 2px 0 #f0fad9!important}
#ar-shepherds-sheep button:hover:not(:disabled){background:#fffdf1!important;transform:translateY(-1px)}
#ar-shepherds-sheep button.ss-primary:hover:not(:disabled),#ar-shepherds-sheep button.ss-jump:hover:not(:disabled){background:#e5f1bf!important}
#ar-shepherds-sheep button:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #557440,inset 0 1px 0 #f9ffec!important}
#ar-shepherds-sheep button:disabled{opacity:.65;cursor:default;transform:none}
#ar-shepherds-sheep :is(button,summary,canvas,input,a):focus-visible{outline:3px solid #1d6b88!important;outline-offset:3px!important;box-shadow:0 0 0 6px #fffdf0!important}
#ar-shepherds-sheep>summary:focus-visible,#ar-shepherds-sheep .ss-canvas:focus-visible{outline-offset:-5px!important;box-shadow:none!important}
#ar-shepherds-sheep .ss-volume-label{gap:8px;margin:10px 1px 7px;color:#416147;font:700 11px/1.3 var(--ss-body-font)}
#ar-shepherds-sheep .ss-volume-rail{height:44px;max-width:none}
#ar-shepherds-sheep .ss-volume-rail::before{top:18px;height:8px;left:12px;right:12px;border-radius:7px;background:linear-gradient(to right,#7ba34e 0%,#7ba34e var(--ss-volume),#fff8df var(--ss-volume),#fff8df 100%);box-shadow:0 0 0 2px #6b8a55,0 2px 0 #bdd19a}
#ar-shepherds-sheep input.ss-volume{height:44px!important;min-height:44px!important}
#ar-shepherds-sheep input.ss-volume::-webkit-slider-runnable-track{height:8px}
#ar-shepherds-sheep input.ss-volume::-webkit-slider-thumb{width:24px;height:24px;margin-top:-8px;border:2px solid #4a6b49;border-radius:45% 45% 42% 42%;background:#fff7df;box-shadow:0 2px 0 #8dac65}
#ar-shepherds-sheep input.ss-volume::-moz-range-track{height:8px}
#ar-shepherds-sheep input.ss-volume::-moz-range-thumb{width:24px;height:24px;border:2px solid #4a6b49;border-radius:45% 45% 42% 42%;background:#fff7df;box-shadow:0 2px 0 #8dac65}
#ar-shepherds-sheep .ss-guide{margin:8px 0 0;padding:0;border:2px solid #89a972;border-radius:16px;background:#f8f8df;overflow:hidden}
#ar-shepherds-sheep .ss-guide>summary{position:relative;gap:8px;min-height:48px;padding:8px 11px;background:#eef3d0;color:#426145;font:800 13px/1.3 var(--ss-body-font)}
#ar-shepherds-sheep .ss-guide>summary::before{content:'';flex:0 0 28px;width:28px;height:28px;background:url('./sheep-ui-v25/book.svg') center/contain no-repeat}
#ar-shepherds-sheep .ss-guide>summary::after{content:'+';margin-left:auto;font-size:20px;color:#50714d}
#ar-shepherds-sheep .ss-guide[open]>summary::after{content:'−'}
#ar-shepherds-sheep .ss-guide>p,#ar-shepherds-sheep .ss-guide>.ss-scripture{margin:10px 12px;color:#3e5943}
#ar-shepherds-sheep p.ss-note{font:500 12px/1.6 var(--ss-body-font);color:#405e47;opacity:1}
#ar-shepherds-sheep .ss-audio-status{padding:7px 9px;border:1px solid #97b77c;border-radius:10px;background:#e7edc6}
#ar-shepherds-sheep .ss-legend{margin:10px;padding:2px 10px;border:1px solid #a6be83;border-radius:13px;background:#fffbe9}
#ar-shepherds-sheep .ss-legend-row{color:#436045;font:500 12px/1.55 var(--ss-body-font)}
#ar-shepherds-sheep .ss-legend-row strong{font:800 12px/1.4 var(--ss-body-font);color:#34513c}
#ar-shepherds-sheep .ss-legend canvas{background:#d9edbf;border:1px solid #8aad74;border-radius:8px}
#ar-shepherds-sheep .ss-scripture{border-top:1px solid #a8bd84}
#ar-shepherds-sheep .ss-scripture strong{color:#4e6837}
#ar-shepherds-sheep .ss-scripture p{font:14px/1.7 Georgia,serif;color:#3f583e}
#ar-shepherds-sheep .ss-scene-caption{background:#fff8e9f5;border:2px solid #557c65;border-bottom-width:4px;border-radius:24px;color:#355441;box-shadow:0 4px 0 #638d674d;padding:10px 12px;inset:8% 8% auto}
#ar-shepherds-sheep .ss-scene-eyebrow{color:#526e46;font:800 9px/1.3 var(--ss-body-font);letter-spacing:.12em}
#ar-shepherds-sheep .ss-scene-title{font:400 clamp(26px,2.8vw,40px)/1.06 SheepCloud,var(--ss-body-font);color:#345743;letter-spacing:0}
#ar-shepherds-sheep .ss-scene-subtitle{color:#4d664a;font:600 11px/1.45 var(--ss-body-font);max-width:35ch}
#ar-shepherds-sheep .ss-ending{inset:4% 4% auto;max-height:76%;padding:10px 11px 11px;border:3px solid #4c704d;border-bottom-width:5px;border-radius:25px 25px 21px 21px;background:#fff7df;color:#35533d;box-shadow:0 3px 0 #c5d898,0 8px 0 #35573d26;scrollbar-gutter:stable;scroll-padding:10px}
#ar-shepherds-sheep .ss-ending::before{content:'';top:9px;left:10px;width:21px;height:21px;background:url('./sheep-ui-v25/leaf.svg') center/contain no-repeat}
#ar-shepherds-sheep .ss-ending-kicker{font:800 9px/1.2 var(--ss-body-font);letter-spacing:.12em;color:#63783e;margin-top:2px}
#ar-shepherds-sheep .ss-ending h3{font:400 clamp(24px,2.1vw,33px)/1.08 SheepCloud,var(--ss-body-font);letter-spacing:0;color:#36563c;margin:3px 0;text-shadow:none}
#ar-shepherds-sheep .ss-ending-message{font:600 12px/1.5 var(--ss-body-font);color:#3f593e;margin:4px 0;max-width:47ch}
#ar-shepherds-sheep .ss-ending-reference{font:600 10px/1.45 var(--ss-body-font);color:#556b3b;margin:2px 0;max-width:55ch}
#ar-shepherds-sheep .ss-ending-reference a{color:#46652f!important;text-decoration:underline;text-underline-offset:3px}
#ar-shepherds-sheep button.ss-ending-next{position:relative;z-index:1;flex:0 0 auto;min-height:44px;padding:7px 12px;font-size:11px!important;margin:5px 0 1px;background:#dcebad!important;border:2px solid #597747!important;border-radius:18px!important;box-shadow:0 3px 0 #6f8b4e!important}
#ar-shepherds-sheep button.ss-ending-next::before{width:21px;height:21px;flex-basis:21px}
#ar-shepherds-sheep button.ss-ending-next:disabled{background:#edf2d4!important;border-color:#a6bb82!important;box-shadow:none!important;color:#526b3d!important;opacity:1}
/* The ending copy scrolls while its next/rest action keeps its own row. */
#ar-shepherds-sheep .ss-ending{overflow:hidden}
#ar-shepherds-sheep .ss-ending-copy{display:flex;flex-direction:column;align-items:center;gap:3px;flex:1 1 auto;min-height:0;width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding:6px;padding:2px 3px}
#ar-shepherds-sheep .ss-ending-copy:focus-visible{outline:3px solid #1d6b88!important;outline-offset:-3px!important}
/* Override inherited Cyber/Monochrome scrollbar !important rules, locally only. */
#ar-shepherds-sheep,#ar-shepherds-sheep *{scrollbar-width:thin!important;scrollbar-color:#608b47 #eef5d7!important}
#ar-shepherds-sheep::-webkit-scrollbar,#ar-shepherds-sheep *::-webkit-scrollbar{width:12px!important;height:12px!important}
#ar-shepherds-sheep::-webkit-scrollbar-track,#ar-shepherds-sheep *::-webkit-scrollbar-track{background:#eef5d7!important;border-radius:12px!important;border:1px solid #c5d6a4!important}
#ar-shepherds-sheep::-webkit-scrollbar-thumb,#ar-shepherds-sheep *::-webkit-scrollbar-thumb{background:#608b47!important;border:3px solid #eef5d7!important;border-radius:12px!important;box-shadow:none!important}
#ar-shepherds-sheep::-webkit-scrollbar-thumb:hover,#ar-shepherds-sheep *::-webkit-scrollbar-thumb:hover{background:#476e34!important}
#ar-shepherds-sheep::-webkit-scrollbar-button,#ar-shepherds-sheep *::-webkit-scrollbar-button{display:none!important;width:0!important;height:0!important;background:#eef5d7!important}
#ar-shepherds-sheep::-webkit-scrollbar-corner,#ar-shepherds-sheep *::-webkit-scrollbar-corner{background:#eef5d7!important}
/* Native and fallback fullscreen retain this exact world, including its HUD. */
#ar-shepherds-sheep.ss-expanded{border:4px solid #50704a!important;border-radius:0!important;background:linear-gradient(#c6eaf5,#e1f0ce)!important;overflow:auto}
#ar-shepherds-sheep.ss-expanded::backdrop{background:#82bdd0}
#ar-shepherds-sheep.ss-expanded>summary{min-height:66px;height:66px;padding:7px max(16px,env(safe-area-inset-right)) 7px max(16px,env(safe-area-inset-left));flex:0 0 auto}
#ar-shepherds-sheep.ss-expanded .ss-mark{width:40px;height:44px;flex-basis:40px}
#ar-shepherds-sheep.ss-expanded .ss-title-name{font-size:30px}
#ar-shepherds-sheep.ss-expanded .ss-title-subtitle{font-size:9px}
#ar-shepherds-sheep.ss-expanded .ss-body{height:calc(100% - 66px);min-height:360px;gap:7px;padding:8px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
#ar-shepherds-sheep.ss-expanded .ss-friends{position:static;margin:0;min-height:37px;padding:4px 10px;border-radius:14px;flex-wrap:nowrap}
#ar-shepherds-sheep.ss-expanded .ss-friend-label{display:block;max-width:none;margin-left:0}
#ar-shepherds-sheep.ss-expanded .ss-scoreboard{margin:0 3px;min-height:25px}
#ar-shepherds-sheep.ss-expanded .ss-stage{min-height:100px;border-radius:20px!important;background:#a4d9df!important;box-shadow:0 3px 0 #9cb976!important}
#ar-shepherds-sheep.ss-expanded .ss-status{margin:2px 3px 0;font-size:12px}
#ar-shepherds-sheep.ss-expanded .ss-controls{position:relative;bottom:auto;margin:0;padding:3px 0 5px;background:transparent!important;gap:8px;flex-wrap:wrap}
#ar-shepherds-sheep.ss-expanded .ss-controls button{flex:0 1 auto;min-width:98px;min-height:46px}
#ar-shepherds-sheep.ss-expanded .ss-fullscreen{margin-left:auto}
#ar-shepherds-sheep.ss-expanded .ss-volume-label{align-self:center;width:min(360px,100%);margin:0}
#ar-shepherds-sheep.ss-expanded .ss-guide{margin:0;min-height:48px;max-height:none;flex-shrink:0}
#ar-shepherds-sheep.ss-expanded .ss-guide[open]{max-height:28vh;overflow:auto;flex-shrink:0}
#ar-shepherds-sheep.ss-expanded .ss-ending{inset:5% auto auto;left:50%;width:min(600px,88%);max-height:76%;padding:clamp(12px,2vw,23px)}
#ar-shepherds-sheep.ss-expanded .ss-ending h3{font-size:clamp(28px,3vw,43px)}
#ar-shepherds-sheep.ss-expanded .ss-ending-message{font-size:clamp(13px,1.5vw,18px)}
#ar-shepherds-sheep.ss-expanded .ss-ending-reference{font-size:clamp(11px,1vw,13px)}
#ar-shepherds-sheep.ss-expanded button.ss-ending-next{font-size:13px!important}
#ar-shepherds-sheep.ss-expanded .ss-scene-caption{width:min(460px,86%);padding:16px 18px}
#ar-shepherds-sheep.ss-expanded .ss-scene-title{font-size:clamp(32px,3vw,44px)}
#ar-shepherds-sheep.ss-expanded .ss-scene-subtitle{font-size:14px}
@media(min-width:850px) and (min-height:620px){#ar-shepherds-sheep.ss-expanded .ss-body{padding-left:18px;padding-right:18px}#ar-shepherds-sheep.ss-expanded .ss-controls button{min-width:125px;font-size:13px!important}#ar-shepherds-sheep.ss-expanded .ss-friends{font-size:13px}}
@media(max-width:380px){#ar-shepherds-sheep>summary{padding:10px 9px;gap:7px}#ar-shepherds-sheep .ss-mark{width:36px;flex-basis:36px}#ar-shepherds-sheep .ss-title-name{font-size:29px}#ar-shepherds-sheep .ss-body{padding:9px 8px 12px}#ar-shepherds-sheep .ss-friends{padding:5px 7px;gap:5px}#ar-shepherds-sheep .ss-friend-label{font-size:9px}#ar-shepherds-sheep button{font-size:11px!important;padding:8px 6px}#ar-shepherds-sheep button::before{flex-basis:22px;width:22px;height:22px}#ar-shepherds-sheep .ss-ending{padding:8px 9px;inset:3% 3% auto}#ar-shepherds-sheep .ss-ending h3{font-size:23px}#ar-shepherds-sheep .ss-ending-message{font-size:11px}#ar-shepherds-sheep .ss-ending-reference{font-size:10px}#ar-shepherds-sheep.ss-expanded .ss-controls button{flex:1 1 calc(33% - 8px);min-width:0}#ar-shepherds-sheep.ss-expanded .ss-fullscreen{margin-left:0}}
@media(max-height:600px) and (orientation:landscape){#ar-shepherds-sheep.ss-expanded>summary{height:52px;min-height:52px}#ar-shepherds-sheep.ss-expanded .ss-title-name{font-size:26px}#ar-shepherds-sheep.ss-expanded .ss-title-subtitle{display:none}#ar-shepherds-sheep.ss-expanded .ss-mark{height:35px;flex-basis:35px}#ar-shepherds-sheep.ss-expanded .ss-body{height:calc(100% - 52px);min-height:290px;gap:4px;padding-top:5px;padding-bottom:7px}#ar-shepherds-sheep.ss-expanded .ss-friends{position:static;min-height:32px;padding:2px 8px}#ar-shepherds-sheep.ss-expanded .ss-scoreboard{min-height:22px}#ar-shepherds-sheep.ss-expanded .ss-controls{gap:6px;padding:2px 0 4px}#ar-shepherds-sheep.ss-expanded .ss-controls button{min-height:44px;min-width:86px;padding:6px 8px}#ar-shepherds-sheep.ss-expanded .ss-guide{min-height:44px}#ar-shepherds-sheep.ss-expanded .ss-guide>summary{min-height:44px}#ar-shepherds-sheep.ss-expanded .ss-ending{max-height:86%;inset:4% auto auto;padding:9px 14px}#ar-shepherds-sheep.ss-expanded .ss-ending h3{font-size:28px}#ar-shepherds-sheep.ss-expanded .ss-ending-message{font-size:13px}#ar-shepherds-sheep.ss-expanded .ss-ending-reference{font-size:11px}}
@media(prefers-reduced-motion:reduce){#ar-shepherds-sheep *,#ar-shepherds-sheep *::before,#ar-shepherds-sheep *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}#ar-shepherds-sheep button:hover:not(:disabled),#ar-shepherds-sheep button:active:not(:disabled){transform:none}}
@media(forced-colors:active){#ar-shepherds-sheep,#ar-shepherds-sheep.ss-expanded,#ar-shepherds-sheep :is(button,summary,.ss-friends,.ss-guide,.ss-stage,.ss-ending,.ss-scene-caption,.ss-best-wrap,.ss-multiplier,.ss-ability){background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important}#ar-shepherds-sheep *{color:CanvasText!important;text-shadow:none!important;scrollbar-color:auto!important}#ar-shepherds-sheep .ss-title-name{-webkit-text-stroke:0}#ar-shepherds-sheep :is(button,summary,canvas,input,a):focus-visible{outline-color:Highlight!important}#ar-shepherds-sheep .ss-volume-rail::before{background:ButtonText}#ar-shepherds-sheep input.ss-volume::-webkit-slider-thumb{background:ButtonFace;border-color:ButtonText}#ar-shepherds-sheep input.ss-volume::-moz-range-thumb{background:ButtonFace;border-color:ButtonText}}
/* v25: the final Rest here unfolds a small, self-contained parchment reader. */
#ar-shepherds-sheep.ss-reading .ss-stage{min-height:540px}
#ar-shepherds-sheep.ss-reading .ss-canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
#ar-shepherds-sheep .ss-scripture-scroll{position:absolute;inset:13px 10px;z-index:2;box-sizing:border-box;display:flex;flex-direction:column;gap:9px;max-height:calc(100% - 26px);min-height:0;padding:18px 12px 14px;border:3px solid #4c704d;border-radius:20px 17px 18px 20px;background:linear-gradient(90deg,#f2e3b8 0,#fff7df 7%,#fff7df 93%,#ecddb2 100%);color:#35533d;box-shadow:0 4px 0 #8d9f62,0 9px 18px #294f4433;font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;text-align:left;overscroll-behavior:contain;overflow:auto;isolation:isolate}
#ar-shepherds-sheep .ss-scripture-scroll[hidden]{display:none!important}
#ar-shepherds-sheep .ss-scripture-scroll::before,#ar-shepherds-sheep .ss-scripture-scroll::after{content:'';position:absolute;left:3px;right:3px;height:9px;border:2px solid #4c704d;border-radius:10px;background:linear-gradient(#fdf2d0,#e7d49d 70%,#c2c28a);box-shadow:0 2px 0 #46674622;pointer-events:none}
#ar-shepherds-sheep .ss-scripture-scroll::before{top:2px}
#ar-shepherds-sheep .ss-scripture-scroll::after{bottom:2px}
#ar-shepherds-sheep .ss-scroll-header{position:relative;flex:0 0 auto;text-align:center;padding:0 1px}
#ar-shepherds-sheep .ss-scroll-ornament{display:block;width:32px;height:27px;margin:0 auto 2px;background:url('./sheep-ui-v25/book.svg') center/contain no-repeat}
#ar-shepherds-sheep #ss-scroll-title{margin:0;font:800 22px/1.15 ui-rounded,"Trebuchet MS",system-ui,sans-serif;letter-spacing:-.025em;color:#35533d;text-shadow:none}
#ar-shepherds-sheep .ss-scroll-intro{margin:5px 0 7px;font:600 10px/1.4 ui-rounded,"Trebuchet MS",system-ui,sans-serif;color:#516742}
#ar-shepherds-sheep button.ss-scroll-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-width:0;min-height:44px;margin:0;padding:6px 11px!important;border:2px solid #597747!important;border-radius:16px!important;background:#e2edb8!important;color:#35533d!important;box-shadow:0 2px 0 #91a76d!important;font:800 11px/1.25 ui-rounded,"Trebuchet MS",system-ui,sans-serif!important;--ss-button-art:url('./sheep-ui-v25/leaf.svg')}
#ar-shepherds-sheep button.ss-scroll-close::before{width:20px;height:20px;flex-basis:20px}
#ar-shepherds-sheep .ss-scroll-picker{display:flex;flex:0 0 auto;flex-direction:column;gap:3px;margin:0;color:#516742;font:800 10px/1.3 ui-rounded,"Trebuchet MS",system-ui,sans-serif}
#ar-shepherds-sheep select.ss-scroll-select{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;margin:0;padding:8px 10px;border:2px solid #809462!important;border-radius:10px!important;background:#fffcf0!important;color:#35533d!important;box-shadow:none!important;font:700 13px/1.25 ui-rounded,"Trebuchet MS",system-ui,sans-serif;letter-spacing:normal;text-transform:none;cursor:pointer;color-scheme:light}
#ar-shepherds-sheep .ss-scroll-reading{flex:1 1 auto;min-height:90px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#617744 #f2eacb;scrollbar-gutter:stable;scroll-padding:8px;padding:10px 7px;border-top:1px solid #becc9e;border-bottom:1px solid #becc9e;border-radius:6px;background:#fffbee80;overflow-wrap:anywhere}
#ar-shepherds-sheep #ss-scroll-reference{margin:0 0 5px;color:#35533d;font:800 17px/1.3 ui-rounded,"Trebuchet MS",system-ui,sans-serif;letter-spacing:normal}
#ar-shepherds-sheep .ss-scroll-theme{margin:0 0 7px;color:#506742;font:700 12px/1.4 ui-rounded,"Trebuchet MS",system-ui,sans-serif}
#ar-shepherds-sheep .ss-scroll-context{margin:0 0 13px;padding:0 0 10px;border-bottom:1px dashed #c6cea5;color:#57684b;font:400 12px/1.5 ui-rounded,"Trebuchet MS",system-ui,sans-serif}
#ar-shepherds-sheep .ss-scroll-verse{margin:0 0 13px;color:#354b37;font:400 14px/1.65 ui-rounded,"Trebuchet MS",system-ui,sans-serif;text-align:left;letter-spacing:normal}
#ar-shepherds-sheep .ss-scroll-verse:last-child{margin-bottom:4px}
#ar-shepherds-sheep .ss-scroll-verse-number{display:inline;color:#6c7d43;font-size:.8em;font-weight:800;vertical-align:super}
#ar-shepherds-sheep .ss-scroll-nav{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:5px;margin:0;padding:0}
#ar-shepherds-sheep .ss-scroll-count{flex:0 0 auto;color:#516742;font:800 11px/1.3 ui-rounded,"Trebuchet MS",system-ui,sans-serif;white-space:nowrap}
#ar-shepherds-sheep .ss-scroll-nav button{display:inline-flex;align-items:center;justify-content:center;flex:0 1 auto;min-width:0;min-height:44px;margin:0;padding:7px 8px!important;border:2px solid #658451!important;border-radius:14px!important;background:#e1ecb7!important;color:#35533d!important;box-shadow:0 2px 0 #91a76d!important;font:800 11px/1.25 ui-rounded,"Trebuchet MS",system-ui,sans-serif!important;letter-spacing:normal}
#ar-shepherds-sheep .ss-scroll-nav button::before,#ar-shepherds-sheep .ss-scroll-nav button::after{display:none!important}
#ar-shepherds-sheep .ss-scroll-nav button:disabled{opacity:.55;cursor:default;box-shadow:none!important}
#ar-shepherds-sheep .ss-scroll-nav button:not(:disabled):hover,#ar-shepherds-sheep button.ss-scroll-close:hover{background:#eef4d2!important}
#ar-shepherds-sheep .ss-scroll-select:focus{border-color:#397b8a!important;box-shadow:none!important}
#ar-shepherds-sheep .ss-scripture-scroll :is(button,select,[tabindex]):focus-visible{outline:3px solid #397b8a!important;outline-offset:3px}
#ar-shepherds-sheep.ss-expanded.ss-reading .ss-stage{min-height:400px}
#ar-shepherds-sheep.ss-expanded .ss-scripture-scroll{inset:14px auto;left:50%;transform:translateX(-50%);width:min(750px,94%);max-height:calc(100% - 28px);padding:19px clamp(13px,3vw,32px) 16px;gap:10px}
#ar-shepherds-sheep.ss-expanded .ss-scroll-header{padding-right:130px;text-align:left;min-height:52px;padding-left:44px}
#ar-shepherds-sheep.ss-expanded .ss-scroll-ornament{position:absolute;left:0;top:5px;width:35px;height:38px;margin:0}
#ar-shepherds-sheep.ss-expanded #ss-scroll-title{font-size:clamp(22px,2.5vw,30px)}
#ar-shepherds-sheep.ss-expanded .ss-scroll-intro{font-size:11px;margin-bottom:0}
#ar-shepherds-sheep.ss-expanded button.ss-scroll-close{position:absolute;right:0;top:4px}
#ar-shepherds-sheep.ss-expanded .ss-scroll-picker{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;font-size:12px}
#ar-shepherds-sheep.ss-expanded select.ss-scroll-select{font-size:14px}
#ar-shepherds-sheep.ss-expanded .ss-scroll-reading{min-height:110px;padding:14px 18px}
#ar-shepherds-sheep.ss-expanded #ss-scroll-reference{font-size:21px}
#ar-shepherds-sheep.ss-expanded .ss-scroll-theme{font-size:14px}
#ar-shepherds-sheep.ss-expanded .ss-scroll-context{font-size:14px}
#ar-shepherds-sheep.ss-expanded .ss-scroll-verse{font-size:17px;line-height:1.7;margin-bottom:17px}
#ar-shepherds-sheep.ss-expanded .ss-scroll-nav button{font-size:13px!important;min-width:110px}
#ar-shepherds-sheep.ss-expanded .ss-scroll-count{font-size:13px}
@media(max-width:480px){#ar-shepherds-sheep.ss-expanded.ss-reading .ss-stage{min-height:520px}#ar-shepherds-sheep.ss-expanded .ss-scroll-header{padding:0;text-align:center;min-height:0}#ar-shepherds-sheep.ss-expanded .ss-scroll-ornament{display:none}#ar-shepherds-sheep.ss-expanded button.ss-scroll-close{position:static;margin-top:8px}#ar-shepherds-sheep.ss-expanded .ss-scroll-picker{display:flex;gap:3px;align-items:stretch}#ar-shepherds-sheep.ss-expanded .ss-scripture-scroll{padding:17px 10px 12px;gap:8px}#ar-shepherds-sheep.ss-expanded .ss-scroll-reading{padding:10px 8px}#ar-shepherds-sheep.ss-expanded .ss-scroll-verse{font-size:15px}}
@media(max-height:600px){#ar-shepherds-sheep.ss-reading .ss-stage{min-height:540px}#ar-shepherds-sheep .ss-scroll-ornament{display:none}#ar-shepherds-sheep.ss-expanded .ss-scroll-header{padding-left:0}#ar-shepherds-sheep.ss-expanded.ss-reading .ss-stage{min-height:400px}}
@media(forced-colors:active){#ar-shepherds-sheep .ss-scripture-scroll,#ar-shepherds-sheep .ss-scripture-scroll::before,#ar-shepherds-sheep .ss-scripture-scroll::after,#ar-shepherds-sheep .ss-scroll-reading,#ar-shepherds-sheep select.ss-scroll-select{background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important}#ar-shepherds-sheep .ss-scripture-scroll :is(button,select,[tabindex]):focus-visible{outline-color:Highlight!important}#ar-shepherds-sheep .ss-scroll-nav button:disabled{opacity:1;color:GrayText!important}}
@media(max-width:480px) and (max-height:600px){#ar-shepherds-sheep.ss-expanded.ss-reading .ss-stage{min-height:520px}}
/* v25 mobile: game-only tap feedback, reversible compact controls and landscape help. */
#ar-shepherds-sheep :is(.ss-canvas,button,summary,input.ss-volume){-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
#ar-shepherds-sheep .ss-canvas{touch-action:none}
#ar-shepherds-sheep .ss-canvas:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
#ar-shepherds-sheep :is(button,summary,.ss-canvas,input.ss-volume):focus-visible{outline:3px solid #1d6b88!important;outline-offset:-4px!important}
#ar-shepherds-sheep .ss-options-panel{display:contents}
#ar-shepherds-sheep .ss-options-audio{display:flex;flex-wrap:wrap;gap:8px}
#ar-shepherds-sheep .ss-options-audio:empty{display:none}
#ar-shepherds-sheep .ss-options-header{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#35533d;font:800 16px/1.3 var(--ss-body-font)}
#ar-shepherds-sheep .ss-options-header button{flex:0 0 auto;min-height:44px;min-width:72px}
#ar-shepherds-sheep button.ss-options-toggle,#ar-shepherds-sheep button.ss-options-close{--ss-button-art:url('./sheep-ui-v25/book.svg')}
#ar-shepherds-sheep .ss-turn-phone{position:absolute;z-index:10;top:50%;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));transform:translateY(-50%);max-height:calc(100% - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:20px 16px;background:#fff7df;border:3px solid #50704a;border-radius:22px;color:#35533d;text-align:center;box-shadow:0 5px 0 #9caf71}
#ar-shepherds-sheep .ss-turn-phone h3{font:800 24px/1.2 var(--ss-body-font);color:#35533d;margin:0 0 12px}
#ar-shepherds-sheep .ss-turn-phone p{font:600 14px/1.5 var(--ss-body-font);color:#405e47;margin:0 0 16px}
#ar-shepherds-sheep .ss-turn-actions{display:flex;flex-wrap:wrap;gap:10px}
#ar-shepherds-sheep .ss-turn-actions button{min-height:48px;flex:1 1 140px}
#ar-shepherds-sheep.ss-turn-required>.ss-body{visibility:hidden}
/* A single compact row remains below a flexible scene. No gameplay scrolling. */
#ar-shepherds-sheep.ss-expanded.ss-compact{overflow:hidden;border-width:2px!important}
#ar-shepherds-sheep.ss-expanded.ss-compact>summary{display:none}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-body{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:32px minmax(0,1fr) 48px;grid-template-areas:"friends score" "stage stage" "controls controls";height:100%;min-height:0;gap:4px;padding:max(4px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-friends{grid-area:friends;min-width:0;min-height:0;max-height:32px;gap:6px;padding:0 6px;border-radius:10px;overflow:hidden;justify-content:flex-start}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-friends>strong{font-size:11px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-friend-icons{flex:0 0 72px;width:72px;height:21px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-friend-label{font-size:10px;white-space:nowrap}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-ability{font-size:10px;padding:2px 4px;white-space:nowrap}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scoreboard{grid-area:score;align-self:center;min-height:0;margin:0;gap:6px;font-size:11px;white-space:nowrap}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-best-wrap{padding:2px 5px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-stage{grid-area:stage;min-width:0;min-height:0;height:100%;margin:0;border-radius:12px!important;box-shadow:none!important;overflow:hidden}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:100%;object-fit:contain;aspect-ratio:auto}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-status{position:absolute;width:1px;height:1px;min-height:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-controls{grid-area:controls;position:relative;display:flex;flex-wrap:nowrap;align-items:stretch;gap:7px;min-height:0;min-width:0;margin:0;padding:0 0 3px;z-index:4}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-controls button{flex:1 1 0;min-width:0;min-height:44px;max-height:45px;margin:0;padding:4px 8px;font-size:12px!important;line-height:1.2!important;border-radius:15px!important;box-shadow:0 2px 0 #829f61!important}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-controls button.ss-jump{flex-grow:1.65}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-controls button::before{width:21px;height:21px;flex-basis:21px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-controls button.ss-fullscreen{flex-grow:1.4;margin-left:0}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-options-panel{display:flex;position:absolute;z-index:5;inset:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) calc(62px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));flex-direction:column;gap:8px;min-height:0;padding:10px 12px;overflow:auto;overscroll-behavior:contain;border:3px solid #597747;border-radius:18px;background:#fff7df;box-shadow:0 4px 0 #91a76d}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-options-header{position:sticky;top:-10px;z-index:1;margin:-2px -2px 0;padding:2px;background:#fff7df}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-options-panel>.ss-options-audio{flex:0 0 auto}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-options-panel .ss-volume-label{width:100%;align-self:stretch;min-height:44px;margin:0;flex:0 0 auto}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-options-panel .ss-guide{overflow:visible;max-height:none;min-height:44px;flex:0 0 auto;margin:0}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-options-panel .ss-note{display:block}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-options-panel .ss-legend{display:block}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scene-caption{inset:5% auto auto;padding:6px 12px;gap:2px;max-height:82%;overflow:auto;pointer-events:none}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scene-title{font-size:26px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scene-subtitle{font-size:11px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-ending{inset:3% auto auto;max-height:94%;width:min(600px,92%);padding:5px 12px;border-width:2px;gap:0}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-ending h3{font-size:23px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-ending-message{font-size:12px;line-height:1.4}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-ending-reference{font-size:10px;line-height:1.3}
#ar-shepherds-sheep.ss-expanded.ss-compact button.ss-ending-next{margin:2px 0;min-height:44px;padding:3px 10px;font-size:11px!important}
/* The reading panel has its own scrolling area at short landscape heights. */
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-reading .ss-stage{min-height:0}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scripture-scroll{inset:3px auto;left:50%;width:min(850px,98%);max-height:calc(100% - 6px);padding:9px 10px 7px;gap:4px;overflow:auto}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scroll-header{min-height:44px;padding:0 140px 0 0}
#ar-shepherds-sheep.ss-expanded.ss-compact #ss-scroll-title{font-size:19px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scroll-intro{font-size:10px;margin:2px 0 0}
#ar-shepherds-sheep.ss-expanded.ss-compact button.ss-scroll-close{top:0;margin:0}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scroll-picker{gap:8px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scroll-reading{min-height:60px;padding:5px 8px;flex:1 0 60px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scroll-verse{font-size:15px;line-height:1.6}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scroll-nav{position:sticky;bottom:-7px;background:#fff7df;padding:2px 0}
/* Quiet reading uses the HUD row too; score/lives stay in state and return on Back. */
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-reading .ss-body{grid-template-rows:minmax(0,1fr) 48px;grid-template-areas:"stage stage" "controls controls"}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-reading .ss-friends,#ar-shepherds-sheep.ss-expanded.ss-compact.ss-reading .ss-scoreboard{display:none}
@media(max-width:600px){#ar-shepherds-sheep.ss-expanded.ss-compact .ss-friends>strong,#ar-shepherds-sheep.ss-expanded.ss-compact .ss-friend-label{display:none}#ar-shepherds-sheep.ss-expanded.ss-compact .ss-controls{gap:5px}#ar-shepherds-sheep.ss-expanded.ss-compact .ss-controls button{padding:4px 5px;font-size:11px!important}#ar-shepherds-sheep.ss-expanded.ss-compact .ss-controls button::before{display:none}#ar-shepherds-sheep.ss-expanded.ss-compact .ss-ability{font-size:9px}}
@media(forced-colors:active){#ar-shepherds-sheep :is(.ss-options-panel,.ss-options-header,.ss-turn-phone){background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important}#ar-shepherds-sheep :is(button,summary,.ss-canvas,input.ss-volume):focus-visible{outline-color:Highlight!important}}

/* v26: the website category stays ordinary; only its game has the painted sky. */
#ss-game-container{margin:14px 0 0;border:1px solid var(--line,#51412c);border-radius:7px;overflow:hidden;background:var(--surface,#10110e)}
#ss-game-container>summary{display:flex;align-items:center;gap:11px;min-height:49px;padding:9px 13px;list-style:none;cursor:pointer;color:var(--gold-light,#ead09b);font:700 14px/1.4 Arial,sans-serif;letter-spacing:.11em;text-transform:none}
#ss-game-container>summary::-webkit-details-marker{display:none}
#ss-game-container>summary::after{content:'';display:block;flex:0 0 8px;width:8px;height:8px;margin-left:auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .15s ease}
#ss-game-container[open]>summary::after{transform:rotate(225deg)}
#ss-game-container>summary:focus-visible{outline:2px solid var(--gold-light,#f7dda6);outline-offset:-3px}
#ss-game-container .ss-category-icon{display:block;flex:0 0 29px;width:29px;height:32px;color:inherit;filter:none}
#ss-game-container>.ss-game-list{padding:0 8px 13px}
#ss-game-container:not([open])>.ss-game-list{display:none}
#ar-shepherds-sheep:not(.ss-expanded){margin:3px 0 0}
#ar-shepherds-sheep:not(.ss-expanded)>summary{min-height:112px;padding:12px 10px;gap:8px}
#ar-shepherds-sheep:not(.ss-expanded) .ss-mark{flex-basis:37px;width:37px;height:48px}
#ar-shepherds-sheep:not(.ss-expanded)>summary::after{flex-basis:26px;width:26px;height:26px;font-size:21px}
#ar-shepherds-sheep:not(.ss-expanded) .ss-title-name{font-size:28px;line-height:1.06;letter-spacing:0}
#ar-shepherds-sheep:not(.ss-expanded) .ss-title-subtitle{font-size:9px;letter-spacing:.06em}
/* The positioned range is a higher paint layer than its decorative track. */
#ar-shepherds-sheep .ss-volume-rail{isolation:isolate}
#ar-shepherds-sheep .ss-volume-rail::before{z-index:0}
#ar-shepherds-sheep input.ss-volume{position:relative;z-index:1}
#ar-shepherds-sheep input.ss-volume::-webkit-slider-thumb{position:relative;z-index:2}
#ar-shepherds-sheep input.ss-volume::-moz-range-thumb{position:relative;z-index:2}
/* Give the stage a definite, shrinkable grid cell. The canvas cannot contribute
   its intrinsic height or a 100%-height flex loop to desktop/phone layout. */
#ar-shepherds-sheep.ss-expanded{overflow:hidden;min-height:0;max-height:100dvh}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact)>summary{height:66px;min-height:66px;max-height:66px;padding:7px max(12px,env(safe-area-inset-right)) 7px max(12px,env(safe-area-inset-left))}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-title-name{font-size:27px;line-height:1.05}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-title-subtitle{font-size:9px}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact)>.ss-body{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:42px minmax(0,1fr) auto auto 44px 50px;grid-template-areas:'friends score' 'stage stage' 'status status' 'controls controls' 'volume volume' 'guide guide';height:calc(100% - 66px);min-height:0;min-width:0;gap:6px;padding:max(6px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow:hidden}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-friends{grid-area:friends;position:static;align-self:stretch;min-width:0;min-height:0;height:42px;max-height:42px;margin:0;padding:4px 8px;gap:7px;overflow:hidden}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-scoreboard{grid-area:score;align-self:center;margin:0;min-height:0;gap:7px;white-space:nowrap;flex-wrap:nowrap}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-stage{grid-area:stage;min-width:0;min-height:0;height:100%;margin:0;box-shadow:none!important}
#ar-shepherds-sheep.ss-expanded .ss-stage{position:relative;overflow:hidden}
#ar-shepherds-sheep.ss-expanded .ss-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center;aspect-ratio:auto;border-radius:0}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-status{grid-area:status;min-width:0;min-height:0;margin:0 3px;font-size:12px;line-height:1.5}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-controls{grid-area:controls;position:relative;min-width:0;min-height:0;margin:0;padding:0 0 3px;gap:8px;flex-wrap:wrap;align-items:stretch}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-controls button{flex:0 1 auto;min-width:100px;min-height:46px;margin:0;padding:7px 10px}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-controls button.ss-fullscreen{margin-left:auto}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-volume-label{grid-area:volume;justify-self:center;align-self:center;min-height:44px;width:min(360px,100%);margin:0}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-guide{grid-area:guide;align-self:stretch;min-height:0;height:50px;margin:0}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-guide>summary{min-height:46px}
/* Opening help overlays a bounded, scrollable sheet; it cannot enlarge the
   game grid or push controls offscreen. Closing it returns the same stage. */
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-guide[open]{position:absolute;grid-area:auto;z-index:5;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));height:auto;max-height:min(420px,70%);overflow:auto;box-shadow:0 4px 18px #294f4433}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-guide[open]>summary{position:sticky;top:0;z-index:1}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact).ss-reading .ss-stage{min-height:0}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact).ss-reading>.ss-body{grid-template-rows:minmax(0,1fr) auto 44px 50px;grid-template-areas:'stage stage' 'controls controls' 'volume volume' 'guide guide'}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact).ss-reading :is(.ss-friends,.ss-scoreboard,.ss-status){display:none}
/* Compact landscape keeps the complete 5:3 scene within its available row.
   All four controls remain above the viewport edge, including at 568 × 320. */
#ar-shepherds-sheep.ss-expanded.ss-compact>.ss-body{min-height:0;min-width:0;overflow:hidden}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-canvas{min-width:0;min-height:0;object-position:center;border-radius:0}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-controls button{overflow-wrap:normal;word-break:normal}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-options-panel{max-height:calc(100% - 74px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scene-caption{max-height:90%;padding:6px 10px}
@media(max-width:700px){
 #ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-friends>strong,#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-friend-label{display:none}
 #ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-friends{gap:4px;padding:4px}
 #ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-friend-icons{flex:0 0 72px;width:72px;height:21px}
 #ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-ability{max-width:8ch;font-size:9px;padding:2px}
 #ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-scoreboard{gap:4px;font-size:10px}
 #ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-controls button{flex:1 1 calc(50% - 8px);min-width:0;min-height:46px;padding:7px 6px}
 #ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-controls button.ss-fullscreen{margin-left:0}
 #ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-title-name{font-size:23px}
 #ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-title-subtitle{display:none}
 #ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-mark{width:32px;flex-basis:32px}
}
@media(max-width:360px){#ar-shepherds-sheep:not(.ss-expanded) .ss-title-name{font-size:25px}#ar-shepherds-sheep:not(.ss-expanded) .ss-mark{width:30px;flex-basis:30px}}
@media(prefers-reduced-motion:reduce){#ss-game-container>summary::after{transition:none}}
@media(forced-colors:active){#ss-game-container{border-color:CanvasText;background:Canvas}#ss-game-container>summary{color:CanvasText}#ss-game-container>summary:focus-visible{outline-color:Highlight}}
@media print{#ss-game-container{display:none!important}}
/* Modern native details adds a content box. Flatten it in the expanded game
   so the explicitly sized body resolves against the fixed fullscreen root. */
#ar-shepherds-sheep[open].ss-expanded::details-content{display:contents}
/* v27: keep the cloud artwork, with one clean, high-contrast title impression. */
#ar-shepherds-sheep>summary::before{opacity:.24}
#ar-shepherds-sheep .ss-title{flex:1 1 auto}
#ar-shepherds-sheep .ss-title-name{color:#20382c!important;-webkit-text-stroke:0!important;text-shadow:none!important;filter:none!important;paint-order:normal;line-height:1.12;letter-spacing:.015em;word-break:normal;overflow-wrap:normal;text-wrap:balance}

/* Natural block flow prevents flex-shrunk paragraphs from overlapping or
   dropping lines. Only this copy region scrolls; the action keeps its own row. */
#ar-shepherds-sheep .ss-ending{align-items:stretch;min-width:0;max-height:90%;gap:5px;scrollbar-gutter:auto}
#ar-shepherds-sheep .ss-ending-copy{display:block;flex:1 1 auto;min-width:0;min-height:0;width:100%;max-width:100%;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-gutter:stable both-edges;scroll-padding:8px;padding:3px 5px 8px}
#ar-shepherds-sheep .ss-ending-copy>.ss-ending-kicker{display:block;margin:1px auto 7px;padding-inline:18px}
#ar-shepherds-sheep .ss-ending-copy>h3{display:block;width:100%;max-width:100%;height:auto;max-height:none;margin:0 auto 10px;line-height:1.15;white-space:normal;word-break:normal;overflow-wrap:normal;text-wrap:balance}
#ar-shepherds-sheep .ss-ending-copy>p{display:block;width:100%;height:auto;max-height:none;padding:0;white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:none;text-overflow:clip;-webkit-line-clamp:unset;overflow:visible;letter-spacing:0;text-transform:none}
#ar-shepherds-sheep .ss-ending-copy>.ss-ending-message{max-width:56ch;margin:0 auto 10px;line-height:1.55;text-wrap:balance}
#ar-shepherds-sheep .ss-ending-copy>.ss-ending-reference{max-width:64ch;margin:0 auto;line-height:1.5;text-wrap:pretty}
/* The site's reference linker runs after the copy is inserted. Keep each
   citation together while the surrounding explanation remains normal prose. */
#ar-shepherds-sheep .ss-ending-reference a{display:inline;white-space:nowrap;word-break:normal;overflow-wrap:normal;font:inherit;letter-spacing:inherit;text-transform:none}
#ar-shepherds-sheep button.ss-ending-next{align-self:center;flex:0 0 auto;max-width:100%;min-height:44px;margin:0 0 2px}
#ar-shepherds-sheep.ss-expanded .ss-ending{width:min(720px,92%);max-height:90%;padding:clamp(12px,2vw,23px)}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-ending{width:min(720px,94%);max-height:94%;padding:6px 12px;gap:3px}
#ar-shepherds-sheep.ss-expanded.ss-compact button.ss-ending-next{margin:0 0 2px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-ending-copy{padding:2px 4px 5px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-ending-copy>.ss-ending-kicker{margin-bottom:4px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-ending-copy>h3{margin-bottom:6px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-ending-copy>.ss-ending-message{margin-bottom:6px;line-height:1.45}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-ending-copy>.ss-ending-reference{line-height:1.4}
@media(forced-colors:active){#ar-shepherds-sheep .ss-title-name{color:CanvasText!important}}
/* v27: one short, game-clock celebration beside the rescued sheep. */
#ar-shepherds-sheep .ss-rescue-popup{position:absolute;z-index:2;display:flex;flex-direction:column;align-items:center;gap:2px;max-width:calc(100% - 12px);padding:7px 10px;transform:translate(-50%,-100%);border:1.5px solid #7b652f;border-radius:12px 12px 12px 3px;background:#fff7d7;color:#34482c;box-shadow:0 3px 0 #34482c25;pointer-events:none;text-align:center;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0;line-height:1.25;text-shadow:none;white-space:nowrap}
#ar-shepherds-sheep .ss-rescue-title{font:800 clamp(12px,1.65vw,17px)/1.25 ui-sans-serif,system-ui,sans-serif;letter-spacing:.015em;color:#34482c}
#ar-shepherds-sheep .ss-rescue-points{font:700 11px/1.3 ui-sans-serif,system-ui,sans-serif;letter-spacing:.035em;color:#5b512c}
#ar-shepherds-sheep[data-phase="paused"] .ss-rescue-popup{visibility:hidden}
@media(forced-colors:active){#ar-shepherds-sheep .ss-rescue-popup{border-color:CanvasText;background:Canvas;color:CanvasText;box-shadow:none}#ar-shepherds-sheep :is(.ss-rescue-title,.ss-rescue-points){color:CanvasText}}
/* v27: seven run-local dove scrolls, independent of the Sheep & Shepherds reader. */
#ar-shepherds-sheep .ss-dove-progress{font:700 11px/1.3 var(--ss-body-font);white-space:nowrap;color:#455e3a}
#ar-shepherds-sheep button.ss-dove-open{--ss-button-art:url('./sheep-ui-v25/book.svg')}
#ar-shepherds-sheep .ss-dove-reader{position:absolute;inset:12px 10px;z-index:3;display:flex;flex-direction:column;gap:10px;box-sizing:border-box;min-width:0;min-height:0;max-height:calc(100% - 24px);padding:17px 12px 14px;border:3px solid #587147;border-radius:20px;background:linear-gradient(90deg,#f0e2bd,#fff8e3 6%,#fff8e3 94%,#efe0b7);color:#344c36;box-shadow:0 4px 0 #9aac73,0 8px 18px #294f4433;overflow:auto;overscroll-behavior:contain;text-align:left;font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;isolation:isolate}
#ar-shepherds-sheep .ss-dove-reader[hidden],#ar-shepherds-sheep .ss-dove-passage[hidden],#ar-shepherds-sheep .ss-dove-instruction[hidden]{display:none!important}
#ar-shepherds-sheep .ss-dove-header{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;min-width:0}
#ar-shepherds-sheep .ss-dove-header>div{min-width:0;flex:1 1 160px}
#ar-shepherds-sheep #ss-dove-title{margin:0;color:#344c36;font:800 21px/1.2 ui-rounded,"Trebuchet MS",system-ui,sans-serif;letter-spacing:0;text-transform:none;text-shadow:none;overflow-wrap:normal}
#ar-shepherds-sheep .ss-dove-count{margin:5px 0 0;color:#536446;font:600 11px/1.4 ui-rounded,"Trebuchet MS",system-ui,sans-serif}
#ar-shepherds-sheep .ss-dove-reader button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:6px 8px!important;border:2px solid #738955!important;border-radius:12px!important;background:#e5edc7!important;color:#344c36!important;box-shadow:0 2px 0 #9cac70!important;font:800 12px/1.25 ui-rounded,"Trebuchet MS",system-ui,sans-serif!important;letter-spacing:0;white-space:normal;word-break:normal;text-transform:none}
#ar-shepherds-sheep .ss-dove-reader button::before,#ar-shepherds-sheep .ss-dove-reader button::after{display:none!important}
#ar-shepherds-sheep .ss-dove-close{flex:0 0 auto;max-width:100%}
#ar-shepherds-sheep .ss-dove-slots{display:grid;flex:0 0 auto;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;min-width:0}
#ar-shepherds-sheep button.ss-dove-slot{padding:6px 3px!important;font-size:11px!important}
#ar-shepherds-sheep button.ss-dove-slot:disabled{background:#eee7d2!important;color:#777364!important;border-color:#b3ad94!important;box-shadow:none!important;opacity:1;cursor:default}
#ar-shepherds-sheep button.ss-dove-slot[aria-current="true"]{background:#d7eac0!important;border-color:#345e38!important;box-shadow:inset 0 0 0 1px #345e38!important}
#ar-shepherds-sheep .ss-dove-reading{display:block;flex:1 1 auto;min-width:0;min-height:100px;overflow:auto;padding:11px 8px;border-top:1px solid #c3cca4;border-bottom:1px solid #c3cca4;border-radius:5px;background:#fffdf480;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#74835a #f1ead3;scrollbar-gutter:stable;scroll-padding:8px;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text}
#ar-shepherds-sheep .ss-dove-instruction{margin:0;color:#536446;font:400 14px/1.6 ui-rounded,"Trebuchet MS",system-ui,sans-serif}
#ar-shepherds-sheep #ss-dove-reference{margin:0 0 5px;color:#344c36;text-shadow:none;filter:none;-webkit-text-stroke:0;font:800 18px/1.35 ui-rounded,"Trebuchet MS",system-ui,sans-serif;letter-spacing:0;text-transform:none}
#ar-shepherds-sheep .ss-dove-theme{margin:0 0 8px;color:#4c6241;font:700 13px/1.45 ui-rounded,"Trebuchet MS",system-ui,sans-serif}
#ar-shepherds-sheep .ss-dove-context{margin:0 0 14px;padding:0 0 12px;border-bottom:1px dashed #c3cca4;color:#536446;font:400 13px/1.6 ui-rounded,"Trebuchet MS",system-ui,sans-serif}
#ar-shepherds-sheep .ss-dove-verse{margin:0 0 14px;color:#344c36;font:400 15px/1.7 ui-rounded,"Trebuchet MS",system-ui,sans-serif;letter-spacing:0;text-align:left}
#ar-shepherds-sheep .ss-dove-verse-number{font-size:.78em;font-weight:800;color:#687940;vertical-align:super}
#ar-shepherds-sheep .ss-dove-reader :is(button,[tabindex]):focus-visible{outline:3px solid #1d6b88!important;outline-offset:-3px!important}
#ar-shepherds-sheep.ss-expanded .ss-dove-reader{inset:12px auto;left:50%;transform:translateX(-50%);width:min(850px,96%);padding:18px clamp(12px,3vw,28px)}
#ar-shepherds-sheep.ss-expanded .ss-dove-slots{grid-template-columns:repeat(7,minmax(0,1fr))}
#ar-shepherds-sheep.ss-expanded .ss-dove-verse{font-size:17px}
#ar-shepherds-sheep.ss-expanded .ss-dove-context{font-size:14px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-dove-reader{inset:3px auto;max-height:calc(100% - 6px);width:min(850px,98%);padding:8px 10px;gap:5px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-dove-header{flex-wrap:nowrap;gap:8px}
#ar-shepherds-sheep.ss-expanded.ss-compact #ss-dove-title{font-size:18px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-dove-count{font-size:10px;margin-top:2px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-dove-reading{flex:1 0 60px;min-height:60px;padding:7px 8px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-dove-verse{font-size:15px}
#ar-shepherds-sheep.ss-expanded.ss-compact button.ss-dove-open{flex-grow:1.05}
/* Two short HUD lines share the existing 32px row, leaving room for the staff badge. */
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scoreboard{display:grid;grid-template-columns:auto auto;grid-template-rows:16px 14px;gap:1px 8px;min-width:0;max-width:100%;font-size:10px;line-height:1.2}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scoreboard>span:first-child{grid-column:1;grid-row:1;gap:3px;min-width:0}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scoreboard>span:first-child::before{display:none}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-scoreboard strong{font-size:11px;line-height:1.2;margin-left:2px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-best-wrap{grid-column:2;grid-row:1;margin:0;padding:0 4px;min-width:0;line-height:1.2}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-multiplier{grid-column:1;grid-row:2;justify-self:start;font-size:9px;line-height:1.2;padding:0 4px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-dove-progress{grid-column:2;grid-row:2;justify-self:end;font-size:10px;line-height:1.2}
@media(max-width:480px){#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-dove-slots{grid-template-columns:repeat(4,minmax(0,1fr))}#ar-shepherds-sheep .ss-scoreboard{flex-wrap:wrap}#ar-shepherds-sheep.ss-expanded .ss-dove-progress{font-size:9px}}
@media(forced-colors:active){#ar-shepherds-sheep .ss-dove-reader,#ar-shepherds-sheep .ss-dove-reading{background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important}#ar-shepherds-sheep .ss-dove-reader button:disabled{color:GrayText!important;background:Canvas!important;border-color:GrayText!important}#ar-shepherds-sheep .ss-dove-reader :is(button,[tabindex]):focus-visible{outline-color:Highlight!important}#ar-shepherds-sheep .ss-dove-reader button[aria-current="true"]{outline:2px solid Highlight!important}#ar-shepherds-sheep :is(#ss-dove-title,#ss-dove-reference,.ss-dove-context,.ss-dove-theme,.ss-dove-verse,.ss-dove-count,.ss-dove-progress){color:CanvasText!important}}

/* v28: satchel and field notes occupy measured letterbox space only. */
#ar-shepherds-sheep .ss-trail-panel{margin:8px 0;border:1px solid #acb67a;border-radius:15px;background:#fff4d8;color:#354b31;font:12px/1.4 var(--ss-body-font,system-ui);overflow:hidden}
#ar-shepherds-sheep .ss-trail-panel>summary{padding:10px;min-height:44px;cursor:pointer;color:#354b31;font:800 15px/1.3 Georgia,serif}
#ar-shepherds-sheep .ss-inventory-content,#ar-shepherds-sheep .ss-field-entries{padding:0 10px 10px}
#ar-shepherds-sheep .ss-trail-panel p{font-size:11px;line-height:1.45;margin:7px 0;color:#526444}
#ar-shepherds-sheep .ss-inventory-scrolls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#ar-shepherds-sheep .ss-trail-panel button{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:44px;width:100%;padding:6px!important;margin:5px 0;background:#e5e4c9!important;color:#56624b!important;border:1px solid #b0b18e!important;border-radius:9px!important;box-shadow:none!important;font:700 11px/1.3 var(--ss-body-font,system-ui)!important;text-transform:none;letter-spacing:0}
#ar-shepherds-sheep .ss-trail-panel button::before,#ar-shepherds-sheep .ss-trail-panel button::after{display:none!important}
#ar-shepherds-sheep .ss-trail-panel button:disabled{opacity:.62}
#ar-shepherds-sheep .ss-trail-panel button.ss-collected{background:#d9eab9!important;border-color:#779d56!important;color:#344d2b!important;opacity:1}
#ar-shepherds-sheep .ss-inventory-scroll span{font-size:27px;color:#987439;line-height:1}
#ar-shepherds-sheep .ss-inventory-message{min-height:16px;color:#566429;font-weight:700}
#ar-shepherds-sheep .ss-new-item{animation:ss-satchel-pickup .65s ease-out 2}
@keyframes ss-satchel-pickup{50%{box-shadow:0 0 0 4px #dcb96680;transform:translateY(-2px)}}
#ar-shepherds-sheep .ss-field-entry{display:flex;align-items:center;gap:7px;margin:9px 0}
#ar-shepherds-sheep .ss-field-entry canvas{width:42px;height:32px;flex:0 0 42px;aspect-ratio:auto;cursor:default;pointer-events:none}
#ar-shepherds-sheep .ss-field-entry strong,#ar-shepherds-sheep .ss-field-entry small{display:block;font-size:11px;line-height:1.35}
#ar-shepherds-sheep .ss-field-entry small{font-size:10px;color:#626d4e;margin-top:2px}
#ar-shepherds-sheep.ss-expanded .ss-stage{background:linear-gradient(#a4d9df 0%,#c9e5cd 48%,#96bd67 76%,#779448 79%,#adba70 80%,#8ea45b 100%)!important}
#ar-shepherds-sheep.ss-gutter-panels .ss-stage>.ss-trail-panel{position:absolute;top:12px;bottom:12px;width:calc(var(--ss-gutter) - 42px);max-width:270px;margin:0;z-index:2;overflow:auto;scrollbar-width:thin;background:#fff4d8ed;box-shadow:0 3px 0 #5a754a44}
#ar-shepherds-sheep.ss-gutter-panels .ss-stage>.ss-inventory{left:12px}
#ar-shepherds-sheep.ss-gutter-panels .ss-stage>.ss-field-guide{right:12px}
#ar-shepherds-sheep.ss-gutter-panels .ss-stage>.ss-trail-panel>summary{pointer-events:none;list-style:none}
#ar-shepherds-sheep .ss-item-study{position:absolute;z-index:3;inset:8px;max-height:calc(100% - 16px);padding:20px;overflow:auto;background:#fff4d8;border:2px solid #678150;border-radius:18px;color:#354b31;overscroll-behavior:contain;touch-action:pan-y}
#ar-shepherds-sheep .ss-item-study h3{font:800 24px/1.2 Georgia,serif;color:#354b31;margin:0 0 16px}
#ar-shepherds-sheep .ss-item-study p{font:15px/1.65 Georgia,serif;color:#354b31;margin:0 0 14px}
#ar-shepherds-sheep .ss-item-study a{color:#245d62;text-decoration:underline}
#ar-shepherds-sheep.ss-gutter-panels .ss-item-study{left:calc(var(--ss-gutter) + 12px);right:calc(var(--ss-gutter) + 12px)}
#ar-shepherds-sheep.ss-gutter-panels :is(.ss-dove-reader,.ss-scripture-scroll){left:50%;width:calc(100% - 2 * var(--ss-gutter) - 24px);max-width:none}
#ar-shepherds-sheep:not(.ss-expanded).ss-item-reading .ss-stage{min-height:420px}
#ar-shepherds-sheep .ss-item-study[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){#ar-shepherds-sheep .ss-new-item{animation:none}}
@media(forced-colors:active){#ar-shepherds-sheep :is(.ss-trail-panel,.ss-item-study){background:Canvas;color:CanvasText;border-color:CanvasText}#ar-shepherds-sheep .ss-trail-panel button.ss-collected{outline:2px solid Highlight}}
#ar-shepherds-sheep .ss-trail-panel button canvas{width:28px;height:28px;flex:0 0 28px;aspect-ratio:auto;pointer-events:none;cursor:default}
#ar-shepherds-sheep .ss-scroll-history{flex:0 0 auto;font:12px/1.5 var(--ss-body-font,system-ui);color:#526444}
#ar-shepherds-sheep .ss-scroll-history summary{min-height:44px;padding:10px 4px;cursor:pointer}
#ar-shepherds-sheep .ss-scroll-history[open]{max-height:180px;overflow:auto}
#ar-shepherds-sheep .ss-scroll-history p{font-size:12px;margin:5px 0}
#ar-shepherds-sheep .ss-scroll-history a{font-size:11px;color:#245d62;text-decoration:underline}
#ar-shepherds-sheep.ss-gutter-panels .ss-ending{width:calc(100% - 2 * var(--ss-gutter) - 24px);max-width:720px}
/* v30 panel contents only. The v28 panel boxes, gutters and playfield are
   deliberately untouched. Explicit child sizing wins the generic game-canvas
   rule; readable defaults work before/without container-query support. */
#ar-shepherds-sheep .ss-trail-panel{container-type:inline-size;container-name:ss-panel}
#ar-shepherds-sheep .ss-trail-panel>summary{font-size:22px;line-height:1.25;padding:16px 12px 12px;overflow-wrap:anywhere}
#ar-shepherds-sheep .ss-inventory-content,#ar-shepherds-sheep .ss-field-entries{min-width:0;padding:0 12px 14px}
#ar-shepherds-sheep .ss-trail-panel p{font-size:14px;line-height:1.5;margin:10px 0;overflow-wrap:anywhere}
#ar-shepherds-sheep .ss-inventory-friends{font-weight:700;padding-bottom:8px;border-bottom:1px solid #b9bf92}
#ar-shepherds-sheep .ss-inventory-message:empty{display:none}
/* Intrinsic 76px card minimums produce 3/2/1 columns from the actual available
   width, including scrollbar space, without depending on container queries.
   Numbers and states have their own row below the parchment artwork. */
#ar-shepherds-sheep .ss-inventory-scrolls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,76px),1fr));gap:8px;min-width:0}
#ar-shepherds-sheep .ss-trail-panel button.ss-inventory-scroll{position:relative;display:grid;grid-template-columns:16px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;justify-items:center;gap:5px 2px;min-width:0;min-height:94px;width:100%;height:auto;padding:8px 4px!important;margin:0!important;border-color:#b9aa80!important;background:#f1e9d0!important;font:700 12px/1.25 var(--ss-body-font,system-ui)!important;opacity:1;overflow-wrap:anywhere}
#ar-shepherds-sheep .ss-trail-panel button.ss-inventory-scroll canvas{grid-column:1/-1;display:block;width:100%;max-width:96px;height:auto;aspect-ratio:12/7;min-width:0;flex:none;filter:grayscale(.55);opacity:.72}
#ar-shepherds-sheep .ss-inventory-scroll b{position:static;transform:none;display:grid;place-items:center;width:16px;height:20px;border-radius:5px;background:#fff5d9;color:#635339;border:1px solid #b69a61;font:800 13px/1 var(--ss-body-font,system-ui)}
#ar-shepherds-sheep .ss-inventory-scroll .ss-scroll-state{display:block;min-width:0;max-width:100%;font:700 12px/1.25 var(--ss-body-font,system-ui);color:#5c5848;overflow-wrap:anywhere;text-align:center}
#ar-shepherds-sheep .ss-trail-panel button.ss-inventory-scroll.ss-collected{background:#e1edc5!important;border-color:#859d59!important}
#ar-shepherds-sheep .ss-trail-panel button.ss-inventory-scroll.ss-collected canvas{filter:none;opacity:1}
#ar-shepherds-sheep .ss-inventory-scroll.ss-collected b{background:#fff3c8;color:#4d5633;border-color:#8d9e5c}
#ar-shepherds-sheep .ss-inventory-scroll.ss-collected .ss-scroll-state{color:#3f5a30}
#ar-shepherds-sheep .ss-trail-panel button:is(.ss-item-staff,.ss-item-fig,.ss-item-pomegranate,.ss-item-grape){display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:98px;height:auto;margin:10px 0;padding:10px!important;font:700 16px/1.35 var(--ss-body-font,system-ui)!important;text-align:left;opacity:1}
#ar-shepherds-sheep .ss-trail-panel button:is(.ss-item-staff,.ss-item-fig,.ss-item-pomegranate,.ss-item-grape) canvas{display:block;width:76px;height:76px;max-width:100%;aspect-ratio:1;flex:0 0 76px}
#ar-shepherds-sheep .ss-trail-panel button:is(.ss-item-staff,.ss-item-fig,.ss-item-pomegranate,.ss-item-grape)>span{min-width:0;max-width:100%;overflow-wrap:anywhere}
#ar-shepherds-sheep .ss-trail-panel button:disabled:not(.ss-collected){color:#59624c!important}
#ar-shepherds-sheep .ss-trail-panel button:is(.ss-item-staff,.ss-item-fig,.ss-item-pomegranate,.ss-item-grape):disabled:not(.ss-collected) canvas{filter:grayscale(.3);opacity:.8}
#ar-shepherds-sheep .ss-field-entry{display:flex;align-items:center;gap:10px;min-height:88px;margin:0;padding:7px 0;border-bottom:1px solid #c8ceaa}
#ar-shepherds-sheep .ss-field-entry canvas{display:block;width:96px;height:auto;max-width:100%;aspect-ratio:21/16;flex:0 0 96px}
#ar-shepherds-sheep .ss-field-entry span{min-width:0;flex:1 1 0;overflow-wrap:anywhere}
#ar-shepherds-sheep .ss-field-entry strong{display:block;font-size:16px;line-height:1.3}
#ar-shepherds-sheep .ss-field-entry small{display:block;font-size:13px;line-height:1.4;margin-top:5px}
/* Narrow panels stack illustration and copy. Existing overflow:auto handles
   height without pushing the unchanged panel borders or playfield. */
@container ss-panel (max-width:240px){#ar-shepherds-sheep .ss-field-entry{flex-direction:column;gap:5px;text-align:center;padding:10px 0}#ar-shepherds-sheep .ss-field-entry canvas{flex:0 0 auto}#ar-shepherds-sheep .ss-field-entry span{flex:0 0 auto;width:100%}#ar-shepherds-sheep .ss-trail-panel button:is(.ss-item-staff,.ss-item-fig,.ss-item-pomegranate,.ss-item-grape){flex-direction:column;gap:6px;text-align:center}#ar-shepherds-sheep .ss-trail-panel button:is(.ss-item-staff,.ss-item-fig,.ss-item-pomegranate,.ss-item-grape) canvas{flex:0 0 auto}}
/* Preserve the already-reviewed larger post-journey reading content. */
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-item-study{padding:28px}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-item-study h3{font-size:32px;margin-bottom:22px}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-item-study p{max-width:68ch;font-size:21px;line-height:1.75;margin-bottom:22px}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) :is(.ss-dove-verse,.ss-scroll-verse){font-size:21px;line-height:1.75}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) :is(.ss-dove-context,.ss-scroll-context,.ss-dove-theme,.ss-scroll-theme){font-size:17px;line-height:1.6}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) :is(.ss-scroll-history,.ss-scroll-history p,.ss-scroll-history a){font-size:15px;line-height:1.6}
@media(forced-colors:active){#ar-shepherds-sheep .ss-inventory-scroll b{background:Canvas;color:CanvasText;border-color:CanvasText}#ar-shepherds-sheep .ss-inventory-scroll .ss-scroll-state{color:CanvasText}#ar-shepherds-sheep .ss-inventory-scroll.ss-collected .ss-scroll-state{color:Highlight}#ar-shepherds-sheep .ss-trail-panel button canvas{filter:none;opacity:1}}

/* v29: weather colors only. Geometry and readable panel surfaces stay unchanged. */
#ar-shepherds-sheep.ss-expanded .ss-stage{background:var(--ss-weather-frame,linear-gradient(#182235,#526275))!important}

/* v29: the inline game has one action row and a full-width expand control. */
#ar-shepherds-sheep:not(.ss-expanded) .ss-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"primary sound" "fullscreen fullscreen";gap:8px}
#ar-shepherds-sheep:not(.ss-expanded) .ss-controls>.ss-start{grid-area:primary}
#ar-shepherds-sheep:not(.ss-expanded) .ss-controls>.ss-sound{grid-area:sound}
#ar-shepherds-sheep:not(.ss-expanded) .ss-controls>.ss-fullscreen{grid-area:fullscreen;width:100%;min-height:50px;margin-left:0}
#ar-shepherds-sheep:not(.ss-expanded) .ss-controls>.ss-dove-open{display:none!important}
#ar-shepherds-sheep:not(.ss-expanded)[data-phase="running"] .ss-controls{grid-template-areas:"jump pause" "sound sound" "fullscreen fullscreen"}
#ar-shepherds-sheep:not(.ss-expanded) .ss-controls>.ss-jump{grid-area:jump}
#ar-shepherds-sheep:not(.ss-expanded) .ss-controls>.ss-pause{grid-area:pause}
#ar-shepherds-sheep:not(.ss-expanded) .ss-controls>button{min-width:0;min-height:46px}

/* v30: one illustrated border box. Pure decoration; no panel, stage, or
   canvas sizing rules. The controller measures the existing 5:3 paint box. */
#ar-shepherds-sheep .ss-game-border{
  --ss-rim:10px;
  position:absolute;
  box-sizing:border-box;
  display:block;
  z-index:1;
  margin:0;
  padding:0;
  border:2px solid #39452f;
  border-radius:calc(var(--ss-rim) + 3px);
  background:none;
  box-shadow:inset 0 0 0 1px #fff2c4,
    inset 0 0 0 calc(var(--ss-rim) - 4px) #d4b778,
    inset 0 0 0 calc(var(--ss-rim) - 2px) #5c5639;
  pointer-events:none!important;
  user-select:none;
  -webkit-user-select:none;
  transition:none;
  animation:none;
}
/* Four small fittings keep the rounded rim in the game's inked, cel-painted
   visual language. Each is drawn locally, without a stretched/repeated image. */
#ar-shepherds-sheep .ss-game-border::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none!important;
  background:
    radial-gradient(circle at 5px 5px,#fff1c2 0 1px,#c8a665 1.5px 3px,#51492f 3.5px 4.5px,transparent 5px),
    radial-gradient(circle at calc(100% - 5px) 5px,#fff1c2 0 1px,#c8a665 1.5px 3px,#51492f 3.5px 4.5px,transparent 5px),
    radial-gradient(circle at 5px calc(100% - 5px),#fff1c2 0 1px,#c8a665 1.5px 3px,#51492f 3.5px 4.5px,transparent 5px),
    radial-gradient(circle at calc(100% - 5px) calc(100% - 5px),#fff1c2 0 1px,#c8a665 1.5px 3px,#51492f 3.5px 4.5px,transparent 5px);
}
#ar-shepherds-sheep .ss-game-border[hidden]{display:none!important}
/* Preserve a clear keyboard-focus cue above the decorative rim. */
#ar-shepherds-sheep .ss-stage:has(>.ss-canvas:focus-visible)>.ss-game-border{
  outline:2px solid #fff9de;
  outline-offset:calc(-1 * var(--ss-rim) - 3px);
}
@media(forced-colors:active){
  #ar-shepherds-sheep .ss-game-border{border-color:CanvasText;box-shadow:none;background:none}
  #ar-shepherds-sheep .ss-game-border::before{display:none}
  #ar-shepherds-sheep .ss-stage:has(>.ss-canvas:focus-visible)>.ss-game-border{outline-color:Highlight}
}

/* v31: one Audio entry point with a bounded, game-local channel mixer. */
#ar-shepherds-sheep .ss-controls{position:relative}
#ar-shepherds-sheep button.ss-audio-toggle,
#ar-shepherds-sheep.ss-expanded .ss-controls button.ss-audio-toggle{flex:0 0 48px;width:48px;min-width:48px;min-height:44px;padding:8px}
#ar-shepherds-sheep .ss-audio-toggle::before,
#ar-shepherds-sheep .ss-audio-panel button::before{display:none!important}
#ar-shepherds-sheep .ss-audio-toggle svg{display:block;flex:none;pointer-events:none}
#ar-shepherds-sheep .ss-audio-toggle[aria-expanded="true"]{background:#d7e9ab!important}
#ar-shepherds-sheep .ss-audio-panel{position:absolute;z-index:12;inset:auto 0 calc(100% + 8px) auto;box-sizing:border-box;width:340px;max-width:100%;max-height:min(390px,var(--ss-audio-available,calc(100dvh - 24px)));margin:0;padding:13px 14px 10px;overflow:auto;overscroll-behavior:contain;background:#fff7df;border:3px solid #597747;border-radius:19px;color:#35533d;box-shadow:0 4px 0 #91a76d,0 8px 22px #19342e38;text-align:left;cursor:default}
#ar-shepherds-sheep .ss-audio-panel[hidden],
#ar-shepherds-sheep .ss-audio-muted-mark[hidden]{display:none!important}
#ar-shepherds-sheep .ss-audio-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px;font:800 18px/1.3 var(--ss-body-font)}
#ar-shepherds-sheep .ss-audio-panel button,
#ar-shepherds-sheep.ss-expanded .ss-controls .ss-audio-panel button{flex:0 0 auto;min-width:70px;min-height:44px;max-height:none;padding:7px 12px;margin:0}
#ar-shepherds-sheep .ss-audio-panel .ss-sound{width:100%;margin-bottom:8px}
#ar-shepherds-sheep .ss-audio-panel .ss-volume-label{display:grid;grid-template-columns:46px minmax(0,1fr) 4ch;align-items:center;gap:9px;width:100%;min-height:44px;margin:0;color:#416147;font:700 12px/1.3 var(--ss-body-font)}
#ar-shepherds-sheep .ss-audio-panel .ss-volume-rail{width:100%;min-width:0;max-width:none}
#ar-shepherds-sheep .ss-audio-panel .ss-volume-value{width:4ch;margin:0;font-variant-numeric:tabular-nums;text-align:right}
#ar-shepherds-sheep .ss-audio-panel .ss-audio-status,
#ar-shepherds-sheep .ss-audio-panel .ss-audio-save-note{display:block;margin:9px 0 0;padding:0;color:#496449;font:600 11px/1.4 var(--ss-body-font)}
#ar-shepherds-sheep .ss-audio-panel .ss-audio-save-note{font-size:10px;color:#617251}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-audio-panel{max-height:min(var(--ss-audio-available,390px),calc(100dvh - 76px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));padding:9px 12px 8px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-audio-header{margin-bottom:4px}
#ar-shepherds-sheep.ss-expanded.ss-compact .ss-audio-panel .ss-sound{margin-bottom:3px}
@media(forced-colors:active){#ar-shepherds-sheep .ss-audio-panel{background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none}}

#ar-shepherds-sheep.ss-expanded .ss-audio-panel .ss-volume-label{grid-area:auto;justify-self:auto;align-self:auto;width:100%;min-height:44px;margin:0}

/* Reuse the former inline Sound cell without creating an implicit row. */
#ar-shepherds-sheep:not(.ss-expanded) .ss-controls>.ss-audio-toggle{grid-area:sound;justify-self:end;min-width:48px}

#ar-shepherds-sheep .ss-audio-panel{top:var(--ss-audio-top,auto);bottom:var(--ss-audio-bottom,calc(100% + 8px))}
/* Keep the original desktop scene/footer budget; use the former Volume row. */
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-controls>button.ss-audio-toggle{position:absolute;top:calc(100% + 6px);left:calc(50% - 24px);height:44px;min-height:44px;max-height:44px}

/* v31 mobile repair: use the visible viewport, preserve the whole 5:3 scene,
   and anchor overlays to the painted image instead of its letterbox bars.
   Desktop panel, stage and canvas geometry is deliberately unchanged. */
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit{
  inset:var(--ss-viewport-top,0px) auto auto var(--ss-viewport-left,0px);
  width:var(--ss-viewport-width,100vw);height:var(--ss-viewport-height,100dvh);
  max-width:none;max-height:var(--ss-viewport-height,100dvh);min-height:0;
}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit>div.ss-body{
  height:100%;min-height:0;min-width:0;box-sizing:border-box;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:minmax(36px,auto) minmax(0,1fr) auto 44px;
  grid-template-areas:'friends score' 'stage stage' 'controls controls' 'guide guide';
  gap:5px;padding:max(5px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-friends{
  position:static;display:flex;flex-wrap:wrap;align-self:stretch;
  height:auto;min-height:36px;max-height:none;margin:0;padding:3px 6px;gap:3px 6px;overflow:visible;
}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-friends>strong{display:block;font-size:12px;flex:0 0 auto}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit canvas.ss-friend-icons{flex:0 0 58px;width:58px;height:22px;aspect-ratio:auto}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-friend-label{display:block;max-width:none;margin-left:0;font-size:11px;line-height:1.3;white-space:normal;text-align:left}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-ability{max-width:14ch;margin-left:auto;white-space:normal;font-size:10px;padding:2px 4px}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-scoreboard{align-self:center;min-height:32px;max-width:100%;gap:2px 6px}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-stage{min-height:0;min-width:0;isolation:isolate}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-canvas{object-fit:contain;object-position:center;aspect-ratio:auto}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls{display:flex;flex-wrap:wrap;align-items:stretch;min-height:48px;height:auto;gap:6px;padding:0 0 3px;z-index:4}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls>button:not(.ss-audio-toggle){min-width:64px;min-height:44px;max-height:none;flex:1 1 0;padding:5px 7px;font-size:12px!important;line-height:1.25!important}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls>button::before{display:none}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls>.ss-jump{flex-grow:1.4}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls>.ss-fullscreen{margin-left:0;flex-grow:1.3}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-mission{height:44px;min-height:44px;margin:0}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit button.ss-mission-toggle{max-width:calc(100% - 30px);min-height:44px;font-size:12px!important}
/* Explicit physical sides prevent a later inset shorthand from clearing the
   center anchor. Paint-box variables are refreshed after every layout change. */
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-scene-caption{
  top:var(--ss-caption-top,8px);right:auto;bottom:auto;left:var(--ss-paint-center,50%);
  transform:translateX(-50%);width:min(460px,var(--ss-overlay-width,86%));
  max-width:calc(100% - 16px);max-height:var(--ss-caption-height,90%);
  margin:0;padding:6px 10px;gap:3px;border-radius:16px;z-index:2;
  overflow:auto;overscroll-behavior:contain;
}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-scene-eyebrow{font-size:9px;line-height:1.3}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-scene-title{font-size:clamp(20px,3.5vw,28px);line-height:1.15;max-width:100%;overflow-wrap:normal}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-scene-subtitle{font-size:12px;line-height:1.35;max-width:35ch}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-ending{
  top:var(--ss-caption-top,8px);right:auto;bottom:auto;left:var(--ss-paint-center,50%);
  transform:translateX(-50%);width:min(720px,var(--ss-overlay-width,94%));
  max-width:calc(100% - 16px);max-height:var(--ss-caption-height,94%);margin:0;z-index:3;
}
/* Portrait has a naturally sized scene with controls immediately below it.
   Extra phone height is no longer painted as a huge empty game stage. */
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait>div.ss-body{
  grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto 44px;
  grid-template-areas:'friends' 'score' 'stage' 'controls' 'guide';
  align-content:start;gap:8px;overflow:auto;overscroll-behavior:contain;scroll-padding:8px;
}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-stage{width:100%;height:auto;min-height:0;aspect-ratio:5/3;align-self:start}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-scoreboard{display:flex;flex-wrap:wrap;gap:5px 10px;margin:0;min-height:28px;font-size:12px;line-height:1.4}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-scoreboard strong{font-size:13px}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-best-wrap{margin-left:auto;padding:3px 7px}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-dove-progress{font-size:11px}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(48px,auto);gap:7px}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>button:not(.ss-audio-toggle){width:100%;min-width:0;min-height:48px;max-height:none}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-start{grid-column:1/3;grid-row:1}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-jump{grid-column:1;grid-row:1}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-pause{grid-column:2;grid-row:1}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-audio-toggle{grid-column:3;grid-row:1;justify-self:end;align-self:stretch}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-fullscreen{grid-column:1/3;grid-row:2}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-options-toggle{grid-column:3;grid-row:2}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-dove-open{grid-column:1/-1;grid-row:3}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-options-panel{inset:8px;max-height:calc(100% - 16px)}
/* Each reader uses the available viewport height, with independent scrolling.
   This also repairs the compact dove reader's inherited translateX anchor. */
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit:is(.ss-reading,.ss-item-reading)>div.ss-body{
  grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto 44px;
  grid-template-areas:'stage' 'controls' 'guide';align-content:stretch;overflow:hidden;
}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit:is(.ss-reading,.ss-item-reading) :is(.ss-friends,.ss-scoreboard){display:none}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit:is(.ss-reading,.ss-item-reading) .ss-stage{height:100%;min-height:0;aspect-ratio:auto;align-self:stretch}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit :is(.ss-scripture-scroll,.ss-dove-reader){top:4px;right:auto;bottom:4px;left:50%;transform:translateX(-50%);width:calc(100% - 8px);max-height:calc(100% - 8px);min-height:0;padding:9px 10px;overflow:auto}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-item-study{inset:4px;max-height:calc(100% - 8px);padding:14px;overflow:auto}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-item-study h3{font-size:22px}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-item-study p{font-size:16px;line-height:1.6}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit :is(.ss-scroll-reading,.ss-dove-reading){min-height:60px;flex:1 0 60px;font-size:16px;line-height:1.6}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit :is(.ss-scroll-verse,.ss-dove-verse){font-size:16px;line-height:1.6}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-scroll-header{padding:0;min-height:0;text-align:center}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-scroll-ornament{display:none}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait button.ss-scroll-close{position:static;margin-top:6px}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-scroll-picker{display:flex;flex-direction:column;align-items:stretch;gap:4px}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-dove-slots{grid-template-columns:repeat(4,minmax(0,1fr))}
/* With an onscreen keyboard or very short viewport, keep the reader larger
   than the footer; its own Back button and the fullscreen exit remain usable. */
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-short-view:is(.ss-reading,.ss-item-reading)>div.ss-body{grid-template-rows:minmax(0,1fr) auto;grid-template-areas:'stage' 'controls'}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-short-view:is(.ss-reading,.ss-item-reading) .ss-mission{display:none}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-short-view:is(.ss-reading,.ss-item-reading) .ss-controls>:is(.ss-start,.ss-jump,.ss-pause,.ss-dove-open,.ss-options-toggle){display:none}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-short-view:is(.ss-reading,.ss-item-reading) .ss-controls{display:flex;min-height:44px}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-short-view:is(.ss-reading,.ss-item-reading) .ss-controls>.ss-fullscreen{flex:1 1 auto}

/* v32: geometry-only Audio repair; all readable dialog/control fills remain. */
#ar-shepherds-sheep .ss-audio-panel[data-ss-anchor-v32="true"] {
  position:absolute;
  left:var(--ss-audio-anchor-left-v32,0px)!important;
  right:auto!important;
  top:var(--ss-audio-anchor-top-v32,auto)!important;
  bottom:var(--ss-audio-anchor-bottom-v32,calc(100% + 8px))!important;
  width:var(--ss-audio-anchor-width-v32,340px)!important;
  max-width:none!important;
  max-height:var(--ss-audio-anchor-height-v32,390px)!important;
  margin:0!important;
  transform:none!important;
}
/* The panel previously inherited a z-index:1 controls stacking context, behind
   the field guide. Lift that context only while its Audio dialog is open. */
#ar-shepherds-sheep .ss-controls:has(>.ss-audio-panel:not([hidden])) {
  z-index:16!important;
}
/* Only decorative falling verse-code cards had the unwanted black boxes.
   Keep their text, reference, color, motion and subtle margin rule intact. */
#ar-cyber-rain .cy-verse-code,
#ar-cyber-rain .cy-verse-code[data-side="right"] {
  background:none!important;
  box-shadow:none!important;
}
/* v33: quiet, game-scoped feedback. No extra overlays or animation clocks. */
#ar-shepherds-sheep .ss-scene-subtitle{color:#3f5b43;font-size:12px;line-height:1.45;text-wrap:pretty}
#ar-shepherds-sheep .ss-controls>button.ss-jump{font-variant-numeric:tabular-nums;white-space:nowrap}
/* A warm face means the staff's second jump is ready. Keep the same label,
   footprint and hit target while its accessible name explains the change. */
#ar-shepherds-sheep .ss-controls>button.ss-jump[data-jump-state="air-ready"]{
  background:#ffe3a0!important;color:#3b4c2f!important;border-color:#87672c!important;
  box-shadow:0 3px 0 #796136,inset 0 2px 0 #fff5d5!important;
}
#ar-shepherds-sheep .ss-controls>button.ss-jump[data-jump-state="landing"]{
  background:#e2e8ce!important;color:#496047!important;border-color:#708167!important;
  box-shadow:0 2px 0 #738267,inset 0 1px 0 #f7f9ec!important;
}
/* Do not disable the native button: keeping focus stable matters when the
   available midair action changes. The controller rejects ineligible input. */
#ar-shepherds-sheep .ss-controls>button.ss-jump[aria-disabled="true"]{cursor:default;transform:none}
#ar-shepherds-sheep .ss-controls>button.ss-jump:focus-visible{box-shadow:0 0 0 6px #fffdf0!important}
#ar-shepherds-sheep .ss-canvas{-webkit-user-select:none;user-select:none}
@media(forced-colors:active){
  #ar-shepherds-sheep .ss-controls>button.ss-jump[data-jump-state]{background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText!important;box-shadow:none!important}
  #ar-shepherds-sheep .ss-controls>button.ss-jump[data-jump-state="air-ready"]{border-color:Highlight!important}
  #ar-shepherds-sheep .ss-controls>button.ss-jump[aria-disabled="true"]{color:GrayText!important}
}

/* v34: the same authored ribbon scroll accompanies every collected reading. */
/* v35: visible shared parchment, stacked above labels so narrow slots fit. */
#ar-shepherds-sheep button.ss-dove-slot{flex-direction:column;gap:3px}
#ar-shepherds-sheep button.ss-dove-slot::before{content:"";display:inline-block!important;flex:0 0 16px;vertical-align:middle;width:30px;height:16px;margin-right:0;background:url('./sheep-v34/scroll.png') center/contain no-repeat}
#ar-shepherds-sheep button.ss-dove-slot:disabled::before{filter:grayscale(.65);opacity:.65}
#ar-shepherds-sheep .ss-dove-header h3::before{content:"";display:inline-block;vertical-align:middle;width:40px;height:22px;margin-right:7px;background:url('./sheep-v34/scroll.png') center/contain no-repeat}
#ar-shepherds-sheep .ss-scroll-ornament{background-image:url('./sheep-v34/scroll.png')}
/* v35: one painted-world HUD and in-scene feedback; no new game clock. */
#ar-shepherds-sheep .ss-stage{container-type:inline-size}
#ar-shepherds-sheep .ss-stage .ss-hud{
 position:absolute;z-index:3;left:var(--ss-paint-center,50%);top:calc(var(--ss-paint-top,0px) + 12px);transform:translateX(-50%);
 width:calc(var(--ss-paint-width,100%) - 28px);display:grid;grid-template-columns:minmax(0,1fr) minmax(50px,.58fr) minmax(0,1fr);gap:7px;align-items:start;
 pointer-events:none;color:#fff2cd;font:600 12px/1.2 Arial,sans-serif;isolation:isolate;
}
#ar-shepherds-sheep .ss-stage .ss-hud>div{grid-area:auto!important;position:static!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;align-self:start;gap:2px!important;min-width:0;min-height:44px!important;height:auto!important;max-height:none!important;margin:0!important;padding:5px 7px!important;border:1px solid #dab976!important;border-radius:12px;background:linear-gradient(160deg,#354737f5,#172d27f5)!important;box-shadow:0 2px 0 #112c27, inset 0 1px 0 #fff3c42b!important;color:#fff2cd!important;overflow:hidden;white-space:normal!important}
#ar-shepherds-sheep .ss-stage .ss-hud .ss-friends{flex-direction:row;flex-wrap:wrap;column-gap:4px!important}
#ar-shepherds-sheep .ss-stage .ss-hud .ss-friends>strong{display:block!important;flex:0 0 100%;text-align:center;font:700 11px/1.1 Arial,sans-serif;color:#ffedbd}
#ar-shepherds-sheep .ss-stage .ss-hud canvas.ss-friend-icons{display:block;flex:0 0 48px;width:48px!important;height:14px!important;max-width:48px;margin:0;aspect-ratio:auto}
#ar-shepherds-sheep .ss-stage .ss-hud .ss-friend-label{display:block!important;width:auto;max-width:100%;margin:0;color:#fff2cd;font:600 10px/1.2 Arial,sans-serif;text-align:center}
#ar-shepherds-sheep .ss-stage .ss-hud :is(.ss-ability,.ss-multiplier,.ss-dove-progress,.ss-best-wrap){display:none!important}
#ar-shepherds-sheep .ss-stage .ss-hud .ss-scoreboard>span:first-child{display:flex;flex-direction:column;gap:2px;min-width:0;max-width:100%;grid-area:auto}
#ar-shepherds-sheep .ss-stage .ss-hud .ss-scoreboard>span:first-child::before{display:none}
#ar-shepherds-sheep .ss-stage .ss-hud :is(.ss-time,.ss-score){display:block;margin:0;color:#fff6db;font:800 clamp(15px,3cqw,25px)/1.05 Arial,sans-serif;font-variant-numeric:tabular-nums;text-align:center;max-width:100%;overflow-wrap:anywhere}
#ar-shepherds-sheep .ss-stage .ss-hud .ss-score{font-size:clamp(12px,2.7cqw,23px)}
#ar-shepherds-sheep .ss-stage .ss-hud :is(.ss-score-label,.ss-countdown>span){font:700 10px/1.2 Arial,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:#ead5a8}
#ar-shepherds-sheep .ss-stage .ss-status{position:absolute!important;z-index:2;left:var(--ss-paint-center,50%);top:auto;bottom:calc(100% - var(--ss-paint-top,0px) - var(--ss-paint-height,100%) + 12px);transform:translateX(-50%);width:calc(var(--ss-paint-width,100%) - 34px)!important;max-width:640px;height:auto!important;min-height:0!important;max-height:30%;margin:0!important;padding:5px 10px;border:1px solid #ecd7a26b;border-radius:10px;background:#142c25eb!important;color:#fff1cc!important;font:600 clamp(10px,1.8cqw,14px)/1.35 Arial,sans-serif!important;text-align:center;white-space:normal!important;clip-path:none!important;overflow:hidden;pointer-events:none}
#ar-shepherds-sheep:is([data-phase="over"],[data-phase="won"],[data-phase="ready"],[data-phase="paused"],.ss-reading,.ss-item-reading) .ss-stage .ss-status{display:none!important}
#ar-shepherds-sheep .ss-stage .ss-loss-panel{position:absolute;z-index:4;left:var(--ss-paint-center,50%);top:calc(var(--ss-paint-top,0px) + var(--ss-paint-height,100%)/2);transform:translate(-50%,-50%);width:min(560px,calc(var(--ss-paint-width,100%) - 30px));max-height:calc(var(--ss-paint-height,100%) - 20px);box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:0;padding:clamp(8px,2cqw,18px);border:2px solid #9d7b41;border-radius:18px;background:linear-gradient(135deg,#fff2ce,#dfd7ad);box-shadow:0 5px 0 #33482d99,inset 0 0 0 3px #fff8dc8a;color:#304832;text-align:center;overflow:hidden}
#ar-shepherds-sheep .ss-stage .ss-loss-copy{min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
#ar-shepherds-sheep .ss-stage .ss-loss-kicker{display:block;font:700 9px/1.3 Arial,sans-serif;letter-spacing:.12em;color:#77623c}
#ar-shepherds-sheep .ss-stage .ss-loss-panel h3{margin:5px 0;font:700 clamp(18px,4cqw,30px)/1.1 Georgia,serif;color:#304832;text-transform:none;letter-spacing:0}
#ar-shepherds-sheep .ss-stage .ss-loss-panel p{margin:5px auto;max-width:52ch;font:500 clamp(12px,2cqw,17px)/1.45 Georgia,serif;color:#304832;letter-spacing:0;text-transform:none;white-space:normal}
#ar-shepherds-sheep .ss-stage .ss-loss-panel .ss-loss-reference{font:700 11px/1.3 Arial,sans-serif;color:#685632}
#ar-shepherds-sheep .ss-stage .ss-loss-panel .ss-retry{align-self:center;flex:0 0 auto;min-height:44px;padding:6px 16px;margin:0;max-width:100%}
#ar-shepherds-sheep .ss-stage .ss-hud[hidden],#ar-shepherds-sheep .ss-stage .ss-loss-panel[hidden]{display:none!important}
/* Reclaim the old outside Friends/Score/status rows in every fullscreen mode. */
#ar-shepherds-sheep.ss-expanded:not(.ss-compact)>div.ss-body{grid-template-rows:minmax(0,1fr) auto 44px 50px;grid-template-areas:'stage stage' 'controls controls' 'volume volume' 'guide guide'}
#ar-shepherds-sheep.ss-expanded.ss-compact>div.ss-body{grid-template-rows:minmax(0,1fr) 48px;grid-template-areas:'stage stage' 'controls controls'}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit>div.ss-body{grid-template-rows:minmax(0,1fr) auto 44px;grid-template-areas:'stage stage' 'controls controls' 'guide guide'}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait>div.ss-body{grid-template-rows:auto auto 44px;grid-template-areas:'stage' 'controls' 'guide'}
/* Reading retains a flexible full-height stage after the HUD's portrait rows. */
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit:is(.ss-reading,.ss-item-reading)>div.ss-body{grid-template-rows:minmax(0,1fr) auto 44px;grid-template-areas:'stage' 'controls' 'guide'}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-short-view:is(.ss-reading,.ss-item-reading)>div.ss-body{grid-template-rows:minmax(0,1fr) auto;grid-template-areas:'stage' 'controls'}
/* Caption remains click-through; the actual loss/reading panels own input. */
#ar-shepherds-sheep#ar-shepherds-sheep .ss-stage .ss-scene-caption{pointer-events:none;top:calc(var(--ss-paint-top,0px) + 67px);max-height:calc(var(--ss-paint-height,100%) - 78px)}
#ar-shepherds-sheep:is(.ss-reading,.ss-item-reading) .ss-stage :is(.ss-hud,.ss-loss-panel){display:none!important}
@media(forced-colors:active){#ar-shepherds-sheep .ss-stage :is(.ss-hud>div,.ss-loss-panel,.ss-status){background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important}}

#ar-shepherds-sheep .ss-stage .ss-status.ss-status-quiet{opacity:0}

/* v39: three simple cream clouds; the label appears once. */
#ar-shepherds-sheep .ss-stage .ss-hud>div{
 position:relative!important;isolation:isolate;overflow:visible;border:0!important;border-radius:0!important;
 background:none!important;box-shadow:none!important;min-height:60px!important;padding:8px 9px 12px!important;color:#344f3c!important;
}
#ar-shepherds-sheep .ss-stage .ss-hud>div::after{
 content:"";position:absolute;inset:-2px -3px 0;z-index:-1;pointer-events:none;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 84' preserveAspectRatio='none'%3E%3Cpath d='M23 74C4 74 0 57 10 45C0 29 13 17 29 19C33 3 52 2 63 12C77 0 96 4 104 13C118 1 138 4 145 16C165 4 183 15 181 31C203 32 203 53 191 61C195 75 177 82 161 76C142 84 125 80 111 77C91 85 72 79 62 76C47 83 29 81 23 74Z' fill='%23fff5d9' stroke='%236a7954' stroke-width='2'/%3E%3Cpath d='M18 58Q11 43 26 38M35 23Q47 12 60 20M151 23Q171 14 174 34' fill='none' stroke='%23fffdf0' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
#ar-shepherds-sheep .ss-stage .ss-hud .ss-friends{display:grid!important;grid-template-columns:auto auto;justify-content:center;align-content:center;column-gap:5px!important;row-gap:2px!important}
#ar-shepherds-sheep .ss-stage .ss-hud .ss-friends>strong{grid-column:1/-1;font-size:clamp(9px,1.6cqw,12px);letter-spacing:.02em}
#ar-shepherds-sheep .ss-stage .ss-hud canvas.ss-friend-icons{width:64px!important;height:28px!important;max-width:64px;flex:none}
#ar-shepherds-sheep .ss-stage .ss-hud .ss-friend-label{font:800 clamp(15px,3cqw,25px)/1.05 Arial,sans-serif;white-space:nowrap;font-variant-numeric:tabular-nums;color:#fff6db}
#ar-shepherds-sheep .ss-stage .ss-hud .ss-friend-icons{justify-self:end}
#ar-shepherds-sheep .ss-stage .ss-point-streak{
 position:absolute;z-index:3;pointer-events:none;left:auto;right:calc(50% - var(--ss-paint-center,50%) + (100% - var(--ss-paint-width,100%))/2 + 18px);
 top:calc(var(--ss-paint-top,0px) + 78px);transform:none;text-align:right;
 display:block;padding:4px 12px;color:#fff3aa;font:900 clamp(22px,4cqw,42px)/1.08 Georgia,serif;
 letter-spacing:-.02em;text-shadow:-2px -2px 0 #243b2c,2px -2px 0 #243b2c,-2px 2px 0 #243b2c,2px 2px 0 #243b2c,0 4px 0 #243b2c;
 -webkit-text-stroke:.6px #243b2c;white-space:nowrap;max-width:60%;
}
#ar-shepherds-sheep .ss-stage .ss-point-streak[data-kind="negative"]{color:#ffd7a8;text-shadow:-2px -2px 0 #632e27,2px -2px 0 #632e27,-2px 2px 0 #632e27,2px 2px 0 #632e27,0 4px 0 #632e27;-webkit-text-stroke:.6px #632e27}
#ar-shepherds-sheep .ss-stage .ss-point-streak[hidden]{display:none!important}
#ar-shepherds-sheep .ss-stage .ss-loss-panel h3{white-space:normal;text-wrap:balance}
#ar-shepherds-sheep .ss-stage .ss-loss-panel p{text-wrap:pretty}
#ar-shepherds-sheep .ss-stage .ss-loss-panel .ss-retry{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;width:auto!important;margin-inline:auto!important;position:static!important;inset:auto!important;text-indent:0!important}
#ar-shepherds-sheep .ss-stage .ss-loss-panel .ss-retry::before,#ar-shepherds-sheep .ss-stage .ss-loss-panel .ss-retry::after{display:none!important}
/* A single attached action strip returns the former Audio row to the scene. */
#ar-shepherds-sheep.ss-expanded:not(.ss-compact)>div.ss-body,
#ar-shepherds-sheep.ss-expanded:not(.ss-compact).ss-reading>div.ss-body{grid-template-rows:minmax(0,1fr) auto 50px;grid-template-areas:'stage stage' 'controls controls' 'guide guide';row-gap:4px}
#ar-shepherds-sheep.ss-expanded .ss-controls{justify-content:center!important;align-items:center!important;align-content:center;gap:8px;margin:0!important;padding:1px 0 3px!important}
#ar-shepherds-sheep.ss-expanded .ss-controls>button{flex:0 1 auto!important;align-self:center!important;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;margin:0!important}
#ar-shepherds-sheep.ss-expanded .ss-controls>button[hidden]{display:none!important}
#ar-shepherds-sheep.ss-expanded:not(.ss-compact) .ss-controls>button.ss-audio-toggle{position:static!important;top:auto!important;left:auto!important;height:46px;min-height:46px;max-height:none}
#ar-shepherds-sheep:not(.ss-expanded)[data-phase="paused"] .ss-controls{grid-template-areas:'primary restart' 'sound sound' 'fullscreen fullscreen'}
#ar-shepherds-sheep:not(.ss-expanded) .ss-controls>.ss-start-over{grid-area:restart}
@container(max-width:440px){
 #ar-shepherds-sheep .ss-stage .ss-hud{gap:5px;width:calc(var(--ss-paint-width,100%) - 22px)}
 #ar-shepherds-sheep .ss-stage .ss-hud .ss-friends{column-gap:2px!important}
 #ar-shepherds-sheep .ss-stage .ss-hud canvas.ss-friend-icons{width:48px!important;height:21px!important;max-width:48px}
}
@media(forced-colors:active){
 #ar-shepherds-sheep .ss-stage .ss-hud>div{background:Canvas!important;border:1px solid CanvasText!important;color:CanvasText!important}
 #ar-shepherds-sheep .ss-stage .ss-hud>div::after{display:none}
 #ar-shepherds-sheep .ss-stage .ss-point-streak{color:CanvasText!important;background:Canvas;text-shadow:none!important;-webkit-text-stroke:0!important}
}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait[data-phase="paused"] .ss-controls>.ss-start{grid-column:1;grid-row:1}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-start-over{grid-column:2;grid-row:1}
#ar-shepherds-sheep .ss-stage:has(.ss-point-streak:not([hidden])) .ss-status{opacity:0}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-stage .ss-scene-caption{top:calc(var(--ss-paint-top,0px) + 85px);max-height:calc(var(--ss-paint-height,100%) - 96px)}


/* Cloud lettering stays legible without the former dark grass panel. */
#ar-shepherds-sheep .ss-stage .ss-hud :is(.ss-friends>strong,.ss-friend-label,.ss-time,.ss-score,.ss-score-label,.ss-countdown>span){color:#344f3c!important;text-shadow:none!important}
/* Remove the empty generic icon slot: it pushed Start over off center. */
#ar-shepherds-sheep .ss-controls>.ss-start-over{display:flex;align-items:center;justify-content:center;text-align:center;text-indent:0;gap:0}
#ar-shepherds-sheep .ss-controls>.ss-start-over::before{display:none!important;content:none!important}
#ar-shepherds-sheep .ss-controls>.ss-start-over[hidden]{display:none!important}
/* Stable parchment cards, including disabled/collected/pointer states. These
   local constants cannot inherit the surrounding site's animated theme. */
#ar-shepherds-sheep#ar-shepherds-sheep .ss-inventory-content>button,
#ar-shepherds-sheep#ar-shepherds-sheep .ss-inventory-scrolls>button{background:#f1e9d0!important;background-image:none!important;border-color:#b4a27b!important;color:#45563a!important;transition:none!important;filter:none!important;animation:none;transform:none;opacity:1}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-inventory-content button.ss-collected{border-color:#80975a!important}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-inventory-content button.ss-new-item{animation:ss-satchel-found-v39 1s ease-out 1}
@keyframes ss-satchel-found-v39{35%{outline:3px solid #d9b864;outline-offset:2px}100%{outline:0 solid transparent;outline-offset:4px}}
@media(prefers-reduced-motion:reduce){#ar-shepherds-sheep#ar-shepherds-sheep .ss-inventory-content button.ss-new-item{animation:none}}
@media(forced-colors:active){#ar-shepherds-sheep .ss-stage .ss-hud :is(.ss-friends>strong,.ss-friend-label,.ss-time,.ss-score,.ss-score-label,.ss-countdown>span){color:CanvasText!important}#ar-shepherds-sheep#ar-shepherds-sheep .ss-inventory-content button{background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText!important}}

/* v40: the brief staff notice borrows the approved scoreboard cloud artwork. */
#ar-shepherds-sheep[data-phase="running"] .ss-stage .ss-status.ss-event-notice{
 isolation:isolate;overflow:visible;width:max-content!important;max-width:calc(var(--ss-paint-width,100%) - 40px);padding:12px 22px 15px;
 border:0;border-radius:0;background:none!important;color:#344f3c!important;box-shadow:none;text-shadow:none;font-weight:800!important;
}
#ar-shepherds-sheep[data-phase="running"] .ss-stage .ss-status.ss-event-notice::before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 84' preserveAspectRatio='none'%3E%3Cpath d='M23 74C4 74 0 57 10 45C0 29 13 17 29 19C33 3 52 2 63 12C77 0 96 4 104 13C118 1 138 4 145 16C165 4 183 15 181 31C203 32 203 53 191 61C195 75 177 82 161 76C142 84 125 80 111 77C91 85 72 79 62 76C47 83 29 81 23 74Z' fill='%23fff5d9' stroke='%236a7954' stroke-width='2'/%3E%3Cpath d='M18 58Q11 43 26 38M35 23Q47 12 60 20M151 23Q171 14 174 34' fill='none' stroke='%23fffdf0' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
@media(forced-colors:active){
 #ar-shepherds-sheep[data-phase="running"] .ss-stage .ss-status.ss-event-notice{background:Canvas!important;color:CanvasText!important;border:1px solid CanvasText}
 #ar-shepherds-sheep .ss-stage .ss-status.ss-event-notice::before{display:none}
}

/* Reserve the lower 17% of the painted world for the death-scene soil verse.
   Copy remains scrollable; Retry stays reachable outside that scroll region. */
#ar-shepherds-sheep[data-phase="over"] .ss-stage .ss-loss-panel{
 top:calc(var(--ss-paint-top,0px) + var(--ss-paint-height,100%) * .415);
 max-height:calc(var(--ss-paint-height,100%) * .83 - 20px);
}
#ar-shepherds-sheep[data-phase="over"] .ss-stage .ss-loss-copy{flex:1 1 auto;min-height:0;overflow:auto}

/* v36: one keyboard/touch-native replay control, centered beneath the grass.
   Its anchor follows the measured image, including fullscreen letterboxing. */
#ar-shepherds-sheep .ss-ending-dock{position:absolute;z-index:4;left:var(--ss-paint-center,50%);bottom:calc(100% - var(--ss-paint-top,0px) - var(--ss-paint-height,100%) + 12px);transform:translateX(-50%);display:flex;justify-content:center;width:min(200px,calc(var(--ss-paint-width,100%) - 40px));max-width:calc(100% - 24px);min-height:44px;margin:0;padding:0}
#ar-shepherds-sheep .ss-ending-dock>button.ss-start{flex:0 1 auto;width:100%;min-width:0;min-height:44px;max-height:none;max-width:180px;margin:0;padding:8px 14px;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation}
#ar-shepherds-sheep .ss-ending-dock[hidden],#ar-shepherds-sheep:is(.ss-reading,.ss-item-reading,.ss-shop-open) .ss-ending-dock{display:none!important}
/* On small scenes the frame gains a real action row rather than laying the
   button over the flock, Scripture, grass, or bottom-right AR artwork. */
#ar-shepherds-sheep.ss-ending-footer:not(.ss-expanded) .ss-stage{padding-bottom:58px}
#ar-shepherds-sheep.ss-ending-footer.ss-expanded .ss-canvas{height:calc(100% - 58px);bottom:58px}
#ar-shepherds-sheep.ss-ending-footer .ss-ending-dock{top:calc(var(--ss-paint-top,0px) + var(--ss-paint-height,100%));bottom:auto;width:calc(var(--ss-paint-width,100%) - 16px);max-width:calc(100% - 16px);height:58px;box-sizing:border-box;padding:6px 4px 8px;align-items:flex-start;background:linear-gradient(#685039,#4a392c);border-radius:0 0 7px 7px}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-ending-footer .ss-ending{max-height:calc(var(--ss-paint-height,100%) - 12px);overflow:auto;overscroll-behavior:contain}
#ar-shepherds-sheep.ss-ending-footer .ss-ending-copy{flex-shrink:0}

#ar-shepherds-sheep.ss-ending-footer .ss-ending-dock>button::before{display:none}

/* v41: keep the same Pause/Resume node and geometry through the transition.
   Restart has a reserved, separate slot; double tapping Pause cannot reset. */
#ar-shepherds-sheep[data-phase="running"] .ss-controls>.ss-start-over{visibility:hidden;pointer-events:none}
#ar-shepherds-sheep[data-phase="paused"] .ss-controls>.ss-pause{--ss-button-art:url('./sheep-ui-v25/play.svg')}
#ar-shepherds-sheep[data-phase="paused"] .ss-controls>.ss-jump{visibility:hidden;pointer-events:none}
#ar-shepherds-sheep:not(.ss-expanded):is([data-phase="running"],[data-phase="paused"]) .ss-controls{grid-template-areas:'jump pause' 'restart restart' 'sound sound' 'fullscreen fullscreen'}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-start-over{grid-column:1/3;grid-row:3}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-dove-open{grid-row:4}
/* v45: the embedded dock sizes to its visible controls. There is no empty
   Start slot on the title screen, and Keeper shares the same centered group.
   Playing/paused keep three stable action slots. Fullscreen is untouched. */
#ar-shepherds-sheep:not(.ss-expanded)>.ss-body{container-type:inline-size;container-name:ss-inline-controls}
#ar-shepherds-sheep:not(.ss-expanded) .ss-controls{
 display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
 width:fit-content;max-width:100%;box-sizing:border-box;gap:8px;
 margin:12px auto 4px;padding:9px;border:1px solid #91aa72;border-radius:21px;
 background:#d8e7bd;box-shadow:inset 0 1px 0 #f8fbed;
}
#ar-shepherds-sheep:not(.ss-expanded) .ss-controls>button{
 flex:0 1 auto;width:auto;min-width:0;min-height:48px;max-width:100%;margin:0;
 box-sizing:border-box;align-self:center;justify-self:center;padding:8px 12px;
}
#ar-shepherds-sheep:not(.ss-expanded) .ss-controls>.ss-fullscreen{width:auto;min-width:136px;min-height:48px;margin:0}
#ar-shepherds-sheep:not(.ss-expanded) .ss-controls>.ss-audio-toggle{flex:0 0 48px;width:48px;min-width:48px;height:48px;justify-self:center}
#ar-shepherds-sheep:not(.ss-expanded) .ss-controls>.ss-shop-open-button{grid-column:auto;flex:0 1 auto;width:auto;min-width:150px;justify-self:center}
#ar-shepherds-sheep:not(.ss-expanded):is([data-phase="running"],[data-phase="paused"]) .ss-controls{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 48px minmax(136px,1.25fr);
 grid-template-areas:'jump pause restart sound fullscreen';grid-auto-rows:minmax(48px,auto);
 width:100%;max-width:720px;align-items:stretch;
}
#ar-shepherds-sheep:not(.ss-expanded):is([data-phase="running"],[data-phase="paused"]) .ss-controls>button{width:100%;align-self:stretch;justify-self:stretch;padding:8px}
#ar-shepherds-sheep:not(.ss-expanded)[data-phase="running"] .ss-controls>.ss-start-over,
#ar-shepherds-sheep:not(.ss-expanded)[data-phase="paused"] .ss-controls>.ss-jump{visibility:visible;pointer-events:none;opacity:.45}
#ar-shepherds-sheep:not(.ss-expanded)[data-phase="paused"] .ss-controls>.ss-pause{background:#d7e9ab!important;border-color:#507345!important}
@container ss-inline-controls (max-width:620px){
 #ar-shepherds-sheep:not(.ss-expanded):is([data-phase="running"],[data-phase="paused"]) .ss-controls{
  max-width:440px;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:'jump pause restart' 'fullscreen fullscreen sound';gap:8px;padding:8px;
 }
 #ar-shepherds-sheep:not(.ss-expanded):is([data-phase="running"],[data-phase="paused"]) .ss-controls>button{padding:7px 5px}
 #ar-shepherds-sheep:not(.ss-expanded):is([data-phase="running"],[data-phase="paused"]) .ss-controls>.ss-audio-toggle{width:100%;justify-self:stretch}
 #ar-shepherds-sheep:not(.ss-expanded) .ss-controls>:is(.ss-jump,.ss-pause)::before{display:none}
}
@media(forced-colors:active){#ar-shepherds-sheep:not(.ss-expanded) .ss-controls{background:Canvas;border-color:CanvasText}}

/* V43: approved painted game illustrations replace the flat ending controls. */
#ar-shepherds-sheep button.ss-ending-next{--ss-button-art:url('./sheep-v34/birds/dove-mid.png')}
#ar-shepherds-sheep button.ss-start{--ss-button-art:url('./sheep-v34/shop-white.png')}
#ar-shepherds-sheep button.ss-ending-next::before,#ar-shepherds-sheep button.ss-start::before{width:34px;height:29px;flex-basis:34px;filter:drop-shadow(0 1px 0 #6c54294d)}
#ar-shepherds-sheep .ss-keeper-art{display:block;width:42px;height:34px;object-fit:contain;flex:none;filter:drop-shadow(0 1px 0 #6c54294d)}
#ar-shepherds-sheep .ss-shop header>.ss-keeper-art{width:52px;height:42px}
#ar-shepherds-sheep .ss-shop-open-button::before{display:none;content:none}

/* v45: a little cloud-lettered title card lives entirely in the measured
   painted world. Every size follows the 5:3 canvas, never its side panels. */
#ar-shepherds-sheep .ss-main-menu{
 position:absolute;z-index:7;top:calc(var(--ss-paint-top,0px) + var(--ss-paint-height,360px)*.055);
 left:var(--ss-paint-center,50%);right:auto;bottom:auto;transform:translateX(-50%);
 width:min(860px,calc(var(--ss-paint-width,100%) - 36px));max-width:calc(100% - 24px);
 display:flex;flex-direction:column;align-items:center;gap:0;margin:0;padding:0;
 color:#2e5146;text-align:center;pointer-events:none;text-shadow:none;
 container-type:inline-size;container-name:ss-title-card;
}
#ar-shepherds-sheep .ss-main-menu h3{
 margin:3px 0 1px;font:400 clamp(27px,calc(var(--ss-paint-width,600px)*.075),84px)/1.08 SheepCloud,var(--ss-body-font);
 letter-spacing:.012em;word-spacing:.015em;text-transform:none;color:#fff9e8;white-space:nowrap;
 -webkit-text-stroke:clamp(1.2px,calc(var(--ss-paint-width,600px)*.0025),2.8px) #36584d;
 paint-order:stroke fill;text-shadow:0 3px 0 #36584d,0 6px 0 #37695b45;
}
#ar-shepherds-sheep .ss-main-menu p{
 margin:5px 0 clamp(7px,calc(var(--ss-paint-height,360px)*.022),18px);
 font:800 clamp(11px,calc(var(--ss-paint-width,600px)*.018),21px)/1.25 var(--ss-body-font);
 color:#315346;letter-spacing:.015em;text-shadow:0 1px 0 #fff9;
}
#ar-shepherds-sheep .ss-menu-kicker{
 display:block;font:800 clamp(8px,calc(var(--ss-paint-width,600px)*.009),11px)/1.3 var(--ss-body-font);
 letter-spacing:.13em;color:#315346;text-shadow:0 1px 0 #fff9;
}
#ar-shepherds-sheep .ss-main-menu>div{display:flex;flex:0 0 auto;justify-content:center;align-items:center;gap:clamp(8px,calc(var(--ss-paint-width,600px)*.018),22px);width:auto;max-width:100%;pointer-events:none}
/* The scalloped art is a button background, never a stretched generic icon.
   Native text, focus, click targets and all existing listeners are retained. */
#ar-shepherds-sheep .ss-main-menu button{
 position:relative;isolation:isolate;display:flex;flex:0 1 auto;
 width:clamp(104px,calc(var(--ss-paint-width,600px)*.19),204px);max-width:calc(50% - 4px);min-width:0;
 min-height:48px;height:clamp(48px,calc(var(--ss-paint-width,600px)*.078),78px);
 margin:0;padding:10px 20px 13px;gap:0;border:0!important;border-radius:24px!important;
 background:none!important;box-shadow:none!important;color:#35533e!important;
 font:400 clamp(18px,calc(var(--ss-paint-width,600px)*.029),29px)/1 SheepCloud,var(--ss-body-font)!important;
 letter-spacing:.015em;white-space:nowrap;overflow:visible;pointer-events:auto;
 transition:transform .15s ease;
}
#ar-shepherds-sheep .ss-main-menu button::before{
 content:'';display:block;position:absolute;inset:0;z-index:-1;width:auto;height:auto;flex:none;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 84' preserveAspectRatio='none'%3E%3Cpath d='M22 70C7 70 2 57 11 47C1 34 10 20 26 21C29 7 45 4 56 14C66 2 86 3 96 13C109 3 124 4 134 14C148 4 168 7 174 20C191 14 207 23 205 36C222 42 216 59 205 64C200 78 184 80 171 74C157 82 140 78 130 75C115 82 99 80 87 75C72 82 56 79 48 74C35 80 25 77 22 70Z' fill='%23647e54'/%3E%3Cpath d='M22 66C7 66 2 53 11 43C1 30 10 16 26 17C29 3 45 0 56 10C66 -2 86 -1 96 9C109 -1 124 0 134 10C148 0 168 3 174 16C191 10 207 19 205 32C222 38 216 55 205 60C200 74 184 76 171 70C157 78 140 74 130 71C115 78 99 76 87 71C72 78 56 75 48 70C35 76 25 73 22 66Z' transform='translate(0 3)' fill='%23fff6df' stroke='%23526f50' stroke-width='2.2'/%3E%3Cpath d='M19 39Q14 29 28 26M35 16Q44 9 54 17M142 15Q154 10 165 20' fill='none' stroke='%23fffdf4' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
#ar-shepherds-sheep .ss-main-menu .ss-menu-play{color:#4c5928!important}
#ar-shepherds-sheep .ss-main-menu .ss-menu-play::before{
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 84' preserveAspectRatio='none'%3E%3Cpath d='M22 70C7 70 2 57 11 47C1 34 10 20 26 21C29 7 45 4 56 14C66 2 86 3 96 13C109 3 124 4 134 14C148 4 168 7 174 20C191 14 207 23 205 36C222 42 216 59 205 64C200 78 184 80 171 74C157 82 140 78 130 75C115 82 99 80 87 75C72 82 56 79 48 74C35 80 25 77 22 70Z' fill='%23818a48'/%3E%3Cpath d='M22 66C7 66 2 53 11 43C1 30 10 16 26 17C29 3 45 0 56 10C66 -2 86 -1 96 9C109 -1 124 0 134 10C148 0 168 3 174 16C191 10 207 19 205 32C222 38 216 55 205 60C200 74 184 76 171 70C157 78 140 74 130 71C115 78 99 76 87 71C72 78 56 75 48 70C35 76 25 73 22 66Z' transform='translate(0 3)' fill='%23fff0b9' stroke='%236b7441' stroke-width='2.2'/%3E%3Cpath d='M19 39Q14 29 28 26M35 16Q44 9 54 17M142 15Q154 10 165 20' fill='none' stroke='%23fffbe7' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
#ar-shepherds-sheep .ss-main-menu button:hover:not(:disabled){background:none!important;transform:translateY(-2px) rotate(-1deg)}
#ar-shepherds-sheep .ss-main-menu button:active:not(:disabled){background:none!important;transform:translateY(2px);box-shadow:none!important}
#ar-shepherds-sheep .ss-main-menu button:disabled{opacity:.62}
#ar-shepherds-sheep .ss-main-menu button:focus-visible{outline:3px solid #175b76!important;outline-offset:2px!important;box-shadow:0 0 0 5px #fff9e8!important}
/* Quiet subtitles sit on a cream story ribbon; Skip stays a small, native
   action in the painted lower corner. Measured bottom math also covers
   horizontal letterboxing, where --ss-paint-bottom was never defined. */
#ar-shepherds-sheep .ss-intro-controls{
 position:absolute;z-index:8;left:var(--ss-paint-center,50%);right:auto;top:auto;
 bottom:calc(100% - var(--ss-paint-top,0px) - var(--ss-paint-height,100%) + clamp(12px,calc(var(--ss-paint-height,360px)*.035),26px));
 transform:translateX(-50%);display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;
 width:calc(var(--ss-paint-width,100%) - 36px);max-width:calc(100% - 24px);gap:8px;
 margin:0;padding:0;pointer-events:none;container-type:inline-size;container-name:ss-intro-card;
}
#ar-shepherds-sheep .ss-intro-caption{
 flex:1 1 250px;min-width:0;max-width:640px;margin:0 auto;
 padding:8px 15px;border:1px solid #8b9864;border-radius:18px 20px 17px 19px;
 background:#fff5dcf2;color:#3e523c;box-shadow:0 2px 0 #4c694c40;
 font:700 clamp(11px,calc(var(--ss-paint-width,600px)*.018),18px)/1.4 var(--ss-body-font);
 text-align:center;text-wrap:balance;letter-spacing:0;text-shadow:none;
}
#ar-shepherds-sheep .ss-intro-caption:empty{display:none}
#ar-shepherds-sheep .ss-intro-controls button{
 flex:0 0 auto;width:auto;min-width:0;min-height:44px;height:auto;max-width:100%;margin:0;padding:8px 15px;gap:0;
 border:2px solid #647b53!important;border-radius:19px!important;background:#fff6e0!important;color:#40563e!important;
 box-shadow:0 2px 0 #829365!important;font:800 12px/1.2 var(--ss-body-font)!important;pointer-events:auto;
}
#ar-shepherds-sheep .ss-intro-controls button::before{display:none!important;content:none!important}
#ar-shepherds-sheep .ss-intro-controls button:focus-visible{outline:3px solid #175b76!important;outline-offset:2px!important}
#ar-shepherds-sheep .ss-intro-preference{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 0;color:inherit;font:700 13px/1.4 var(--ss-body-font);cursor:pointer}
#ar-shepherds-sheep .ss-intro-preference input{width:20px;height:20px;flex:0 0 20px;margin:0;accent-color:#7b9e52}
#ar-shepherds-sheep .ss-main-menu[hidden],#ar-shepherds-sheep .ss-intro-controls[hidden]{display:none!important}
@container ss-title-card (max-width:430px){
 #ar-shepherds-sheep .ss-menu-kicker{display:none}
 #ar-shepherds-sheep .ss-main-menu h3{margin-top:0;font-size:clamp(23px,7.7cqw,35px);text-shadow:0 2px 0 #36584d,0 4px 0 #37695b45}
 #ar-shepherds-sheep .ss-main-menu p{margin:4px 0 6px}
 #ar-shepherds-sheep .ss-main-menu button{padding:9px 12px 12px}
}
@container ss-intro-card (max-width:480px){
 #ar-shepherds-sheep .ss-intro-controls{gap:5px}
 #ar-shepherds-sheep .ss-intro-caption{flex-basis:100%;max-width:100%;padding:5px 10px;font-size:11px;line-height:1.25;border-radius:12px}
 #ar-shepherds-sheep .ss-intro-controls button{padding:7px 11px;font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){#ar-shepherds-sheep .ss-main-menu button:hover:not(:disabled),#ar-shepherds-sheep .ss-main-menu button:active:not(:disabled){transform:none}}
@media(forced-colors:active){
 #ar-shepherds-sheep .ss-main-menu h3{color:CanvasText!important;-webkit-text-stroke:0;text-shadow:none}
 #ar-shepherds-sheep .ss-main-menu button{border:2px solid ButtonText!important;background:ButtonFace!important;color:ButtonText!important}
 #ar-shepherds-sheep .ss-main-menu button::before{display:none}
 #ar-shepherds-sheep .ss-intro-caption{background:Canvas!important;color:CanvasText!important;border-color:CanvasText;box-shadow:none}
 #ar-shepherds-sheep .ss-intro-controls button{background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText!important;box-shadow:none!important}
}

/* v41 mobile-only ergonomics. Desktop world, physics and renderer stay intact. */
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls{
 display:grid;grid-template-columns:1.4fr 1fr 1fr 48px 1.6fr 1fr;grid-template-rows:48px;grid-auto-rows:48px;gap:6px;align-items:stretch!important;
}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls>button:not(.ss-audio-toggle){
 width:100%;min-width:0;min-height:48px;max-height:none;align-self:stretch!important;padding:5px 6px;font-size:12px!important;line-height:1.2!important;white-space:normal;
}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls>.ss-start{grid-column:1/4;grid-row:1}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls>button.ss-jump{grid-column:1;grid-row:1;touch-action:none;white-space:nowrap}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls>.ss-pause{grid-column:2;grid-row:1}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls>.ss-start-over{grid-column:3;grid-row:1}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls>.ss-audio-toggle{grid-column:4;grid-row:1;min-width:44px;min-height:48px;width:48px;height:48px;max-height:none;justify-self:center}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls>.ss-fullscreen{grid-column:5;grid-row:1}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls>.ss-options-toggle{grid-column:6;grid-row:1}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls>.ss-dove-open{grid-column:1/4;grid-row:2}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls{
 grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:56px 48px;grid-auto-rows:48px;gap:7px;
}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-start{grid-column:1/4;grid-row:1}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-jump{grid-column:1/3;grid-row:1;font-size:16px!important}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-pause{grid-column:3;grid-row:1}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-audio-toggle{grid-column:4;grid-row:1;height:56px;min-height:56px}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-fullscreen{grid-column:1/3;grid-row:2}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-options-toggle{grid-column:3;grid-row:2}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-start-over{grid-column:4;grid-row:2}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-dove-open{grid-column:1/3;grid-row:3}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-controls>.ss-shop-open-button{grid-column:4/7;grid-row:2}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit.ss-portrait .ss-controls>.ss-shop-open-button{grid-column:3/5;grid-row:3}
/* The world remains the full 5:3 image. Small clouds free the jumping skyline. */
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-stage .ss-hud{top:calc(var(--ss-paint-top,0px) + 7px);gap:5px;width:calc(var(--ss-paint-width,100%) - 22px)}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-stage .ss-hud>div{min-height:42px!important;padding:5px 5px 7px!important;gap:1px!important}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-stage .ss-hud canvas.ss-friend-icons{width:36px!important;height:16px!important;max-width:36px}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-stage .ss-hud :is(.ss-friend-label,.ss-time,.ss-score){font-size:15px!important;line-height:1.1!important}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-stage .ss-hud :is(.ss-friends>strong,.ss-score-label,.ss-countdown>span){font-size:9px!important}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-stage .ss-scene-caption{top:calc(var(--ss-paint-top,0px) + 56px);max-height:calc(var(--ss-paint-height,100%) - 66px);padding:5px 8px;gap:2px}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-scene-title{font-size:clamp(18px,4vw,24px);line-height:1.12}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-scene-subtitle{font-size:12px;line-height:1.3}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-stage .ss-point-streak{top:calc(var(--ss-paint-top,0px) + 53px);font-size:22px;padding:3px 7px}
/* A reader gets the whole stage, with its own Back control and one exit row. */
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit:is(.ss-reading,.ss-item-reading) .ss-controls{display:flex;flex-wrap:nowrap;min-height:48px;gap:8px}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit:is(.ss-reading,.ss-item-reading) .ss-controls>:is(.ss-start,.ss-jump,.ss-pause,.ss-start-over,.ss-dove-open,.ss-options-toggle,.ss-shop-open-button){display:none!important}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit:is(.ss-reading,.ss-item-reading) .ss-controls>.ss-fullscreen{flex:1 1 auto!important;width:auto}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit:is(.ss-reading,.ss-item-reading) .ss-controls>.ss-audio-toggle{min-height:48px;height:48px;flex:0 0 48px!important}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit :is(.ss-scripture-scroll,.ss-dove-reader,.ss-item-study,.ss-options-panel,.ss-audio-panel,.ss-mission-panel){touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-mission-panel{position:fixed;inset:calc(var(--ss-visible-top,0px) + max(8px,env(safe-area-inset-top))) auto auto calc(var(--ss-visible-left,0px) + max(8px,env(safe-area-inset-left)));width:calc(var(--ss-visible-width,100vw) - max(8px,env(safe-area-inset-left)) - max(8px,env(safe-area-inset-right)));max-height:calc(var(--ss-visible-height,100dvh) - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)))!important;z-index:15}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-mission-panel .ss-trail-panel>summary{font-size:20px;min-height:48px}
/* Shop follows the same visible viewport, including collapsed browser chrome. */
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-shop{inset:var(--ss-visible-top,0px) auto auto var(--ss-visible-left,0px);width:var(--ss-visible-width,100vw);height:var(--ss-visible-height,100dvh);padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit .ss-shop-card{max-height:100%;touch-action:pan-y;-webkit-overflow-scrolling:touch}
@media(max-width:600px){
 #ar-shepherds-sheep:not(.ss-expanded) .ss-stage .ss-hud{top:calc(var(--ss-paint-top,0px) + 7px);gap:4px}
 #ar-shepherds-sheep:not(.ss-expanded) .ss-stage .ss-hud>div{min-height:42px!important;padding:5px 4px 7px!important}
 #ar-shepherds-sheep:not(.ss-expanded) .ss-stage .ss-hud canvas.ss-friend-icons{width:30px!important;height:14px!important;max-width:30px}
 #ar-shepherds-sheep:not(.ss-expanded) .ss-stage .ss-hud :is(.ss-friend-label,.ss-time,.ss-score){font-size:13px!important}
 #ar-shepherds-sheep#ar-shepherds-sheep:not(.ss-expanded) .ss-stage .ss-scene-caption{top:calc(var(--ss-paint-top,0px) + 54px);max-height:calc(var(--ss-paint-height,100%) - 62px);padding:4px 6px;gap:2px}
 #ar-shepherds-sheep:not(.ss-expanded) .ss-scene-title{font-size:18px;line-height:1.1}
 #ar-shepherds-sheep:not(.ss-expanded) .ss-scene-subtitle{font-size:11px;line-height:1.25}
 #ar-shepherds-sheep:not(.ss-expanded) .ss-scene-eyebrow{font-size:8px}
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-shop{inset:var(--ss-visible-top,0px) auto auto var(--ss-visible-left,0px);width:var(--ss-visible-width,100vw);height:var(--ss-visible-height,100dvh);padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-shop-card{max-height:100%;touch-action:pan-y;-webkit-overflow-scrolling:touch}
 #ar-shepherds-sheep .ss-shop header{gap:6px}
 #ar-shepherds-sheep .ss-shop h3{font-size:19px}
}
/* v45: the vulture debit sits immediately under its Score cloud. */
#ar-shepherds-sheep#ar-shepherds-sheep .ss-stage .ss-scoreboard>.ss-point-streak[data-source="vulture"]{
 position:absolute;top:100%;right:0;left:auto;transform:none;max-width:none;
 margin:3px 0 0;padding:2px 5px;font-size:clamp(26px,4.5cqw,46px);line-height:1.1;
}
#ar-shepherds-sheep .ss-stage .ss-loss-hazard-message{margin-top:12px}
#ar-shepherds-sheep .ss-stage .ss-loss-copy{overflow-wrap:break-word}

/* v50: dialogue lives beside its speaker; this duplicate remains accessible. */
#ar-shepherds-sheep .ss-intro-caption{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
#ar-shepherds-sheep:has(.ss-guide[open]) .ss-intro-controls{display:none!important}
#ar-shepherds-sheep .ss-field-group h4{margin:16px 0 3px;color:#526342;font:800 12px/1.3 var(--ss-body-font);letter-spacing:.04em;text-transform:uppercase}
#ar-shepherds-sheep .ss-field-group:first-child h4{margin-top:7px}
#ar-shepherds-sheep .ss-field-entry canvas[data-ss-field="staff"]{aspect-ratio:7/8;height:110px;object-fit:contain}
/* Replay rests in the middle of the earth band rather than against its rim.
   Short viewports keep their existing protected 58px action row. */
#ar-shepherds-sheep:not(.ss-ending-footer) .ss-ending-dock{top:calc(var(--ss-paint-top,0px) + var(--ss-paint-height,100%) * .90);bottom:auto;transform:translate(-50%,-50%)}

/* Stable two-slot play/pause controls. The existing Jump element owns restart
   while paused; no replacement node, third control or label-dependent width. */
#ar-shepherds-sheep .ss-controls>.ss-start-over{display:none!important}
#ar-shepherds-sheep[data-phase="paused"] .ss-controls>button.ss-jump{visibility:visible!important;pointer-events:auto!important;opacity:1!important;touch-action:manipulation;--ss-button-art:url('./sheep-v44/play-button.png')}
#ar-shepherds-sheep.ss-expanded:not(.ss-mobile-fit) .ss-controls>:is(.ss-jump,.ss-pause){flex:0 0 132px!important;width:132px!important;min-width:132px;max-width:132px;box-sizing:border-box;min-height:48px;height:48px;padding:6px 10px!important;white-space:nowrap}
#ar-shepherds-sheep:not(.ss-expanded):is([data-phase="running"],[data-phase="paused"]) .ss-controls{grid-template-columns:repeat(2,minmax(0,1fr)) 48px minmax(136px,1.25fr);grid-template-areas:'jump pause sound fullscreen'}
@container ss-inline-controls (max-width:620px){
 #ar-shepherds-sheep:not(.ss-expanded):is([data-phase="running"],[data-phase="paused"]) .ss-controls{grid-template-columns:repeat(2,minmax(0,1fr)) 48px;grid-template-areas:'jump pause sound' 'fullscreen fullscreen fullscreen'}
}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit:not(.ss-portrait) .ss-controls{grid-template-columns:1.4fr 1fr 48px 1.6fr 1fr}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit:not(.ss-portrait) .ss-controls>.ss-audio-toggle{grid-column:3}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit:not(.ss-portrait) .ss-controls>.ss-fullscreen{grid-column:4}
#ar-shepherds-sheep.ss-expanded.ss-compact.ss-mobile-fit:not(.ss-portrait) .ss-controls>.ss-options-toggle{grid-column:5}
/* The one death retry keeps its native handler/focus target and borrows the
   existing green action treatment and exact illustrated sheep artwork. */
#ar-shepherds-sheep .ss-stage .ss-loss-panel .ss-loss-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(100%,370px);margin:4px auto 0;flex:0 0 auto;align-items:stretch}
#ar-shepherds-sheep .ss-stage .ss-loss-panel .ss-loss-actions>button{display:flex!important;align-items:center!important;justify-content:center!important;align-self:stretch!important;box-sizing:border-box;gap:7px;width:100%!important;max-width:none!important;min-width:0!important;min-height:52px!important;height:auto;margin:0!important;padding:7px 10px!important;border-width:2px!important;border-radius:16px!important;font:700 13px/1.2 var(--ss-body-font)!important;white-space:normal;overflow-wrap:normal}
#ar-shepherds-sheep .ss-stage .ss-loss-panel .ss-loss-actions>.ss-retry{--ss-button-art:url('./sheep-v44/play-button.png')}
#ar-shepherds-sheep .ss-stage .ss-loss-panel .ss-loss-actions>.ss-retry::before{content:''!important;display:block!important;position:static!important;flex:0 0 34px;width:34px;height:29px;background:var(--ss-button-art) center/contain no-repeat;filter:drop-shadow(0 1px 0 #6c54294d)}
#ar-shepherds-sheep .ss-stage .ss-loss-panel .ss-loss-actions .ss-keeper-art{width:34px;height:29px}

/* Three native cloud controls, with no rectangular button paint. The exact
   approved Play cloud/color is shared by both large choices and Settings. */
#ar-shepherds-sheep .ss-main-menu{--ss-menu-cloud:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 84' preserveAspectRatio='none'%3E%3Cpath d='M22 70C7 70 2 57 11 47C1 34 10 20 26 21C29 7 45 4 56 14C66 2 86 3 96 13C109 3 124 4 134 14C148 4 168 7 174 20C191 14 207 23 205 36C222 42 216 59 205 64C200 78 184 80 171 74C157 82 140 78 130 75C115 82 99 80 87 75C72 82 56 79 48 74C35 80 25 77 22 70Z' fill='%23818a48'/%3E%3Cpath d='M22 66C7 66 2 53 11 43C1 30 10 16 26 17C29 3 45 0 56 10C66 -2 86 -1 96 9C109 -1 124 0 134 10C148 0 168 3 174 16C191 10 207 19 205 32C222 38 216 55 205 60C200 74 184 76 171 70C157 78 140 74 130 71C115 78 99 76 87 71C72 78 56 75 48 70C35 76 25 73 22 66Z' transform='translate(0 3)' fill='%23fff0b9' stroke='%236b7441' stroke-width='2.2'/%3E%3Cpath d='M19 39Q14 29 28 26M35 16Q44 9 54 17M142 15Q154 10 165 20' fill='none' stroke='%23fffbe7' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E")}
#ar-shepherds-sheep .ss-main-menu>.ss-menu-primary-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(620px,100%);gap:clamp(8px,calc(var(--ss-paint-width,600px)*.016),18px);align-items:stretch}
#ar-shepherds-sheep .ss-main-menu>.ss-menu-settings-row{display:flex;justify-content:center;width:100%;margin-top:clamp(3px,calc(var(--ss-paint-height,360px)*.012),8px)}
#ar-shepherds-sheep .ss-main-menu>.ss-menu-primary-row>button,
#ar-shepherds-sheep .ss-main-menu>.ss-menu-settings-row>button{
 appearance:none!important;-webkit-appearance:none!important;display:flex;align-items:center;justify-content:center;position:relative;isolation:isolate;
 background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:none!important;
 margin:0!important;min-width:0;max-width:none;box-sizing:border-box;pointer-events:auto;overflow:visible;text-align:center;text-indent:0;
 color:#4c5928!important;font:400 clamp(14px,calc(var(--ss-paint-width,600px)*.024),25px)/1.05 SheepCloud,var(--ss-body-font)!important;letter-spacing:0;white-space:nowrap;
}
#ar-shepherds-sheep .ss-main-menu>.ss-menu-primary-row>button{width:100%;height:clamp(58px,calc(var(--ss-paint-width,600px)*.108),104px);min-height:58px;padding:10px clamp(12px,2cqw,22px) 14px;gap:clamp(5px,1cqw,10px);flex:initial}
#ar-shepherds-sheep .ss-main-menu>.ss-menu-settings-row>.ss-menu-settings{width:clamp(118px,calc(var(--ss-paint-width,600px)*.2),190px);height:clamp(44px,calc(var(--ss-paint-width,600px)*.062),62px);min-height:44px;padding:9px 14px 12px;flex:0 0 auto;font-size:clamp(15px,calc(var(--ss-paint-width,600px)*.022),23px)!important}
#ar-shepherds-sheep .ss-main-menu>.ss-menu-primary-row>button::before,
#ar-shepherds-sheep .ss-main-menu>.ss-menu-settings-row>button::before{content:''!important;display:block!important;position:absolute!important;inset:0!important;width:auto!important;height:auto!important;flex:none!important;z-index:-1;pointer-events:none;opacity:1!important;background:var(--ss-menu-cloud) center/100% 100% no-repeat!important;filter:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important}
#ar-shepherds-sheep .ss-main-menu>.ss-menu-primary-row>button::after,
#ar-shepherds-sheep .ss-main-menu>.ss-menu-settings-row>button::after{content:none!important;display:none!important}
#ar-shepherds-sheep .ss-main-menu>.ss-menu-primary-row>button:is(:hover,:active){background:transparent!important;box-shadow:none!important}
#ar-shepherds-sheep .ss-main-menu>.ss-menu-primary-row>button:focus-visible,
#ar-shepherds-sheep .ss-main-menu>.ss-menu-settings-row>button:focus-visible{outline:3px solid #175b76!important;outline-offset:3px!important;box-shadow:none!important}
#ar-shepherds-sheep .ss-main-menu>.ss-menu-primary-row :is(.ss-menu-sheep-art,.ss-keeper-art){display:block;object-fit:contain;width:clamp(28px,calc(var(--ss-paint-width,600px)*.048),48px);height:clamp(24px,calc(var(--ss-paint-width,600px)*.039),40px);flex:none;pointer-events:none;filter:drop-shadow(0 1px 0 #6c54294d)}
@media(forced-colors:active){
 #ar-shepherds-sheep .ss-main-menu>.ss-menu-primary-row>button,
 #ar-shepherds-sheep .ss-main-menu>.ss-menu-settings-row>button{outline:2px solid ButtonText!important;color:ButtonText!important;background:Canvas!important}
 #ar-shepherds-sheep .ss-main-menu>.ss-menu-primary-row>button::before,
 #ar-shepherds-sheep .ss-main-menu>.ss-menu-settings-row>button::before{display:none!important}
}

/* October late review: stable side panels, independent of host fullscreen.
   Real side columns protect the complete playfield; narrow views keep two
   visible disclosures in a bounded row, never inside the closed Game Guide. */
#ar-shepherds-sheep.ss-expanded.ss-reserved-panels .ss-canvas{
 left:var(--ss-side-rail);right:var(--ss-side-rail);width:calc(100% - 2 * var(--ss-side-rail));
}
#ar-shepherds-sheep.ss-reserved-panels .ss-stage>.ss-trail-panel{
 width:calc(var(--ss-side-rail) - 18px);max-width:none;left:8px;right:auto;top:8px;bottom:8px;
 scrollbar-gutter:stable;overscroll-behavior:contain;touch-action:pan-y;
}
#ar-shepherds-sheep.ss-reserved-panels .ss-stage>.ss-field-guide{left:auto;right:8px}
#ar-shepherds-sheep.ss-reserved-panels .ss-stage>.ss-trail-panel>summary{font-size:18px;padding:12px 10px}
#ar-shepherds-sheep.ss-reserved-panels .ss-trail-panel:focus-visible{outline:3px solid #416b4e;outline-offset:-3px}
#ar-shepherds-sheep .ss-trail-dock[hidden]{display:none!important}
#ar-shepherds-sheep .ss-trail-dock{
 position:absolute;inset:auto 0 0;z-index:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 align-items:stretch;gap:6px;height:var(--ss-trail-dock-height,44px);min-width:0;padding:0 5px;
}
#ar-shepherds-sheep .ss-trail-dock>.ss-trail-panel{min-width:0;min-height:0;max-height:100%;margin:0;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;touch-action:pan-y;border-radius:12px 12px 0 0;background:#f6efd9}
#ar-shepherds-sheep .ss-trail-dock>.ss-trail-panel>summary{position:sticky;top:0;z-index:2;min-height:42px;padding:11px 8px;font-size:14px;line-height:1.35;background:#edf0d3;list-style:inside;overflow-wrap:normal}
#ar-shepherds-sheep.ss-expanded.ss-docked-panels .ss-canvas{height:calc(100% - var(--ss-trail-dock-height,44px));bottom:var(--ss-trail-dock-height,44px)}
#ar-shepherds-sheep.ss-expanded.ss-docked-panels.ss-ending-footer .ss-canvas{height:calc(100% - var(--ss-trail-dock-height,44px) - 58px);bottom:calc(var(--ss-trail-dock-height,44px) + 58px)}
/* The dock remains separate from the original stage-coordinate readers. */
#ar-shepherds-sheep.ss-docked-panels :is(.ss-item-study,.ss-dove-reader,.ss-scripture-scroll){bottom:calc(var(--ss-trail-dock-height,44px) + 4px);max-height:calc(100% - var(--ss-trail-dock-height,44px) - 8px)}
@media(max-width:390px){#ar-shepherds-sheep .ss-trail-dock>.ss-trail-panel>summary{font-size:12px;padding-inline:5px}}
@media(forced-colors:active){#ar-shepherds-sheep .ss-trail-dock>.ss-trail-panel,#ar-shepherds-sheep .ss-trail-dock>.ss-trail-panel>summary{background:Canvas;color:CanvasText;border-color:CanvasText}}

/* October review: use the desktop shell's edge space for the two scrollable
   rails and scene. Keep the 5:3 image fully contained between those columns. */
#ar-shepherds-sheep.ss-expanded:not(.ss-compact)>div.ss-body{
 padding:max(2px,env(safe-area-inset-top)) max(2px,env(safe-area-inset-right)) max(3px,env(safe-area-inset-bottom)) max(2px,env(safe-area-inset-left));
}
#ar-shepherds-sheep.ss-reserved-panels .ss-stage{border-width:2px!important;border-radius:16px!important}
#ar-shepherds-sheep.ss-reserved-panels .ss-stage>.ss-trail-panel{
 width:calc(var(--ss-side-rail) - 4px);left:0;right:auto;top:0;bottom:0;
 border-radius:13px 9px 9px 13px;box-shadow:none;
}
#ar-shepherds-sheep.ss-reserved-panels .ss-stage>.ss-field-guide{left:auto;right:0;border-radius:9px 13px 13px 9px}
#ar-shepherds-sheep.ss-reserved-panels .ss-stage>.ss-trail-panel>summary{font-size:20px;padding:13px 11px}
#ar-shepherds-sheep.ss-reserved-panels .ss-field-entry strong{font-size:17px}
#ar-shepherds-sheep.ss-reserved-panels .ss-field-entry small{font-size:14px;line-height:1.45}
#ar-shepherds-sheep.ss-reserved-panels .ss-inventory-content>button>span{font-size:17px}

/* October sky/grass HUD: use the letterbox as part of the illustrated shell.
   These bands are outside the unchanged 5:3 world. Every action is its original
   native node; scene art, world dimensions and pointer mapping are untouched. */
#ar-shepherds-sheep.ss-scene-shell .ss-stage{
 --ss-shell-sky-min:82px;--ss-shell-floor-min:72px;--ss-side-rail:0px;--ss-trail-dock-height:0px;
 isolation:isolate;background:var(--ss-shell-sky,linear-gradient(#a8d9ed,#d7eaf0))!important;
}
/* One unbroken approved meadow landscape spans sky, side margins and floor. */
#ar-shepherds-sheep.ss-scene-shell .ss-scene-backdrop{
 position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none!important;user-select:none;
 background:#8fc7da url('./sheep-v45/overlook.webp') center center/cover no-repeat;
}
#ar-shepherds-sheep.ss-scene-shell .ss-scene-backdrop::before,
#ar-shepherds-sheep.ss-scene-shell .ss-scene-backdrop::after{content:'';position:absolute;inset:0;pointer-events:none}
#ar-shepherds-sheep.ss-scene-shell .ss-scene-backdrop::before{background:rgba(16,29,53,var(--ss-shell-shade,0))}
#ar-shepherds-sheep.ss-scene-shell .ss-scene-backdrop::after{background:rgba(227,154,67,var(--ss-shell-warm,0))}
/* A single expanded stage now owns both bands; no empty controls/volume row.
   The original guide keeps its own bounded desktop row and native disclosure. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded>div.ss-body{
 grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 50px;
 grid-template-areas:'stage' 'guide';align-content:stretch;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-compact>div.ss-body{
 grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);grid-template-areas:'stage';
 align-content:stretch;gap:0;overflow:hidden;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded .ss-stage{
 grid-area:stage;align-self:stretch;width:100%;height:100%;min-height:0;aspect-ratio:auto;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded .ss-canvas{
 --ss-replay-height:0px;
 position:absolute;top:var(--ss-shell-sky-min);left:var(--ss-side-rail);right:var(--ss-side-rail);
 bottom:calc(var(--ss-shell-floor-min) + var(--ss-trail-dock-height) + var(--ss-replay-height));
 width:calc(100% - 2 * var(--ss-side-rail));
 height:calc(100% - var(--ss-shell-sky-min) - var(--ss-shell-floor-min) - var(--ss-trail-dock-height) - var(--ss-replay-height));
 object-fit:contain;object-position:center;aspect-ratio:auto;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-ending-footer .ss-canvas{--ss-replay-height:58px}
/* Inline scenes gain only the two explicit bands, retaining natural 5:3 art. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell:not(.ss-expanded) .ss-stage{
 padding-top:var(--ss-shell-sky-min);padding-bottom:var(--ss-shell-floor-min);
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell:not(.ss-expanded).ss-ending-footer .ss-stage{padding-bottom:calc(var(--ss-shell-floor-min) + 58px)}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell:not(.ss-expanded) .ss-canvas{
 position:relative;inset:auto;width:100%;height:auto;aspect-ratio:5/3;object-fit:contain;
}
/* Bounded clouds float in the sky instead of stretching across the scenery. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-hud{
 top:var(--ss-hud-top,8px);left:50%;width:min(860px,calc(var(--ss-shell-width,100%) - 28px));
 grid-template-columns:minmax(0,1fr) minmax(65px,.8fr) minmax(0,1fr);gap:clamp(6px,1.2cqw,20px);
 align-items:center;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-hud>div{
 height:var(--ss-hud-card-height,66px)!important;min-height:var(--ss-hud-card-height,66px)!important;
 padding:7px 9px 10px!important;align-self:center;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-hud>div::after{inset:0 -2px;filter:drop-shadow(0 2px 1px #324b4e26)}
/* Native controls sit comfortably on the painted grass. Reset obsolete body
   grid areas so mobile and inline rules cannot create invisible grid slots. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-controls{
 position:absolute;grid-area:auto;top:var(--ss-control-top,auto);bottom:auto;left:50%;right:auto;
 transform:translateX(-50%);z-index:4;display:flex!important;flex-wrap:wrap!important;
 align-items:center!important;justify-content:center!important;align-content:center;
 width:min(900px,calc(var(--ss-shell-width,100%) - 24px));max-width:none;min-height:48px;height:auto;
 gap:8px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0;
 background:transparent!important;box-shadow:none!important;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-controls>button{
 grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;
 position:relative!important;inset:auto!important;flex:0 1 auto!important;
 width:auto;min-width:0;max-width:100%;min-height:48px;height:48px;max-height:none;
 margin:0!important;padding:7px 12px!important;align-self:center!important;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-controls>:is(.ss-jump,.ss-pause){
 flex:0 0 132px!important;width:132px!important;min-width:132px;max-width:132px;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-controls>.ss-audio-toggle{
 flex:0 0 48px!important;width:48px;min-width:48px;padding:8px!important;
}
/* The old HUD no longer claims the skyline above pause captions or rewards. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage .ss-scene-caption{
 top:calc(var(--ss-paint-top,0px) + 16px);max-height:calc(var(--ss-paint-height,100%) - 32px);
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-point-streak{top:calc(var(--ss-paint-top,0px) + 16px)}
/* Readers can use the sky, but keep the new controls and trail dock uncovered. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage :is(.ss-item-study,.ss-dove-reader,.ss-scripture-scroll){
 bottom:calc(var(--ss-ground-height,var(--ss-shell-floor-min)) + var(--ss-trail-dock-height) + 6px);
 max-height:calc(100% - var(--ss-ground-height,var(--ss-shell-floor-min)) - var(--ss-trail-dock-height) - 14px);
}
@container (max-width:640px){
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-hud>div{padding:4px 5px 6px!important;gap:1px!important}
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-hud canvas.ss-friend-icons{width:36px!important;height:19px!important;max-width:36px}
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-hud :is(.ss-friend-label,.ss-time,.ss-score){font-size:17px!important;line-height:1.05!important}
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-hud :is(.ss-friends>strong,.ss-score-label,.ss-countdown>span){font-size:9px!important}
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-controls{gap:6px!important}
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-controls>:is(.ss-jump,.ss-pause){flex:1 1 78px!important;width:auto!important;min-width:64px;max-width:132px;padding-inline:6px!important}
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-controls>.ss-options-toggle{padding-inline:8px!important}
}
@media(max-height:420px) and (orientation:landscape){
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-controls,
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-controls>button{min-height:44px;height:44px}
}
@media(forced-colors:active){
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage{background:Canvas!important}
 #ar-shepherds-sheep.ss-scene-shell .ss-scene-backdrop{background:Canvas;box-shadow:none}
 #ar-shepherds-sheep.ss-scene-shell .ss-scene-backdrop::before,
 #ar-shepherds-sheep.ss-scene-shell .ss-scene-backdrop::after{display:none}
}
/* A short, paused guide view gives its scrollable disclosures the sky row;
   closing either panel immediately restores the normal clouds and playfield. */
#ar-shepherds-sheep.ss-scene-shell.ss-sky-folded .ss-stage>.ss-hud{display:none!important}

/* Reunion card owns a measured row between cloud counters and game frame.
   Short screens can scroll the scene; no border or action is clipped. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-ending{
 inset:auto;top:var(--ss-ending-top,100px);left:var(--ss-paint-center,50%);transform:translateX(-50%);
 box-sizing:border-box;width:var(--ss-ending-width,calc(100% - 40px));max-width:none;
 max-height:var(--ss-ending-height,70%);min-height:0;margin:0;padding:12px 16px;gap:6px;
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;align-items:start;
 overflow:auto;overscroll-behavior:contain;z-index:3;animation:none;border-radius:20px;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-ending-copy{grid-column:1/-1;flex:none;overflow:visible;padding:0 2px}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-ending h3{font-size:clamp(23px,2.5vw,31px);line-height:1.08;margin:2px 0}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-ending-message{font-size:13px;line-height:1.4;margin:3px auto;max-width:46ch}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-ending-reference{font-size:10px;line-height:1.4;margin:2px auto}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-ending>:is(.ss-ending-next,.ss-shop-ending-button){width:100%;min-width:0;min-height:44px;margin:3px 0 0;padding:6px 8px!important;white-space:normal;font-size:12px!important;align-self:stretch}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-ending-tight .ss-stage>.ss-ending{padding:7px 10px;gap:3px;border-width:2px}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-ending-tight .ss-ending h3{font-size:23px}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-ending-tight .ss-ending-message{font-size:11px}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-ending-tight .ss-ending-reference{font-size:9px}
@media(forced-colors:active){#ar-shepherds-sheep.ss-scene-shell .ss-scene-backdrop::before,#ar-shepherds-sheep.ss-scene-shell .ss-scene-backdrop::after{display:none}}

#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-ending-layout>div.ss-body{overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-ending-layout .ss-stage{min-height:var(--ss-ending-stage-min,0px)}

/* Cinematic homecoming: one full-stage landscape, without a nested playfield.
   The overlay never reserves layout space, so winning cannot resize the game.
   Its real controls and current wardrobe are shared with play and Sheep Keeper. */
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema{
 position:absolute;inset:0;z-index:5;isolation:isolate;overflow:hidden;
 background:transparent;border-radius:inherit;
}
@keyframes ss-cinema-dissolve{from{opacity:0}to{opacity:1}}
/* Blend sibling surfaces once, without multiplying two parent/child fades or
   hiding utility controls. The arrival underneath is already in motion. */
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-entering>.ss-cinema-canvas{animation:ss-cinema-dissolve 650ms linear both}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema.ss-cinema-entering>.ss-ending{animation:ss-cinema-dissolve 650ms ease-out both}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-canvas{
 position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;
 aspect-ratio:auto;object-fit:fill;pointer-events:none;cursor:default;clip-path:none;
}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-ending{
 position:absolute;inset:auto;top:clamp(16px,4%,44px);left:50%;transform:translateX(-50%);
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto minmax(0,1fr) auto auto;align-content:start;align-items:stretch;
 width:min(580px,calc(100% - 32px));max-width:none;min-height:0;max-height:calc(100% - 180px);
 margin:0;padding:clamp(14px,2.1vw,24px);gap:10px 12px;overflow:hidden;overscroll-behavior:contain;
 background:#fff7e5f5;border:2px solid #617748;border-bottom-width:4px;border-radius:27px;
 box-shadow:0 4px 0 #c3d69c88,0 12px 36px #294e3233;scrollbar-gutter:auto;
 animation:none;
}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-score{
 grid-column:1/-1;display:grid;gap:1px;text-align:center;color:#35533d;
 padding:0 0 10px;border-bottom:1px solid #71885042;font-family:var(--ss-body-font);
}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-score>span{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-score>strong{font-size:clamp(32px,4.2vw,48px);line-height:1.05;font-variant-numeric:tabular-nums}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-score>small{font-size:11px;line-height:1.5;color:#607549}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending-copy{grid-column:1/-1;overflow:auto;padding:2px 0;min-height:0;scrollbar-width:thin}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending h3{font-size:clamp(25px,3vw,35px);line-height:1.1;margin:4px 0 7px}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending-message{font-size:14px;line-height:1.45;max-width:44ch;margin:5px auto}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending-reference{font-size:11px;line-height:1.45;max-width:58ch;margin:6px auto}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending>:is(.ss-start,.ss-shop-ending-button){
 grid-row:3;display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0;max-width:none;
 min-height:52px;height:auto;align-self:stretch;margin:2px 0 0;padding:9px 12px!important;font-size:14px!important;white-space:normal;
}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending>.ss-start{grid-column:1}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending>.ss-shop-ending-button{grid-column:2}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending>.ss-ending-next{
 grid-row:4;grid-column:1/-1;justify-self:center;align-self:center;display:flex;align-items:center;justify-content:center;gap:9px;
 width:min(100%,300px);min-width:0;min-height:46px;margin:2px 0 3px;
 padding:6px 16px!important;border:2px solid #967341!important;border-radius:16px!important;
 background:#f5e6bc!important;box-shadow:0 3px 0 #927341,inset 0 2px 0 #fff8de!important;color:#57462d!important;font-size:13px!important;
}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending-next::before{
 display:block!important;width:42px;height:32px;flex:0 0 42px;
 background-image:url('./sheep-v34/scroll.png'),url('./sheep-ui-v25/book.svg');
 background-position:right bottom,left top;background-size:29px 14px,32px 30px;background-repeat:no-repeat;
 filter:drop-shadow(0 1px 0 #6c542933);
}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending-next:hover:not(:disabled){background:#fff1cc!important}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending-next:active:not(:disabled){box-shadow:0 1px 0 #927341,inset 0 1px 0 #fff8de!important}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending-next:focus-visible{outline:3px solid #1d6b88!important;outline-offset:3px!important;box-shadow:0 0 0 6px #fffdf0!important}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-controls{
 position:absolute;inset:auto 14px 12px auto;z-index:6;display:flex!important;flex-wrap:wrap!important;
 align-items:center;justify-content:center;gap:8px!important;transform:none;grid-area:auto;
 width:auto;max-width:calc(100% - 28px);height:auto;min-height:44px;margin:0;padding:0;background:transparent;
 animation:none;
}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-controls>button{flex:0 0 auto!important;grid-area:auto!important;min-width:44px;min-height:44px;width:auto!important;height:44px;margin:0;padding:7px 10px!important;font-size:12px!important}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-controls>.ss-audio-toggle{width:44px!important;padding:7px!important}
/* Readers remain above the scene; returning reveals the same settled ending. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-cinematic-ending .ss-stage>:is(.ss-scripture-scroll,.ss-dove-reader,.ss-item-study){
 z-index:8;inset:12px auto;left:50%;transform:translateX(-50%);width:min(850px,calc(100% - 24px));max-height:calc(100% - 24px);
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-cinematic-ending .ss-guide[open]{z-index:12}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-cinematic-ending .ss-stage{min-height:0!important}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-landscape>.ss-ending{
 left:3%;top:50%;transform:translateY(-50%);width:46%;max-height:calc(100% - 24px);padding:12px 16px;gap:6px 8px;
}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-landscape .ss-cinema-score{padding-bottom:5px}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-landscape .ss-cinema-score>strong{font-size:32px}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-landscape .ss-ending h3{font-size:26px;margin:2px 0 4px}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-landscape .ss-ending-message{font-size:12px}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-landscape .ss-ending-reference{font-size:10px}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-landscape>.ss-controls{max-width:46%}
@media(max-width:600px){
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-ending{width:calc(100% - 24px);top:12px;padding:14px;gap:8px;max-height:calc(100% - 174px)}
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending-message{font-size:13px}
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending-reference{font-size:10px}
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending>:is(.ss-start,.ss-shop-ending-button){font-size:12px!important;padding:8px!important}
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-controls{left:12px;right:12px;bottom:10px;max-width:none}
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-landscape>.ss-ending{left:2%;top:50%;width:48%;max-height:calc(100% - 16px);padding:10px}
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-landscape>.ss-controls{left:auto;right:8px;max-width:46%}
}
@media(prefers-reduced-motion:reduce){
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema,
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-cinema-canvas,
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-ending,
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-controls{animation:none!important;opacity:1}
}
@media(forced-colors:active){
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-ending{background:Canvas;color:CanvasText;border-color:CanvasText}
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending>.ss-ending-next{border:1px solid ButtonText!important}
}

/* On short phones the message scrolls inside its own readable region while
   score, Shop and Play again remain in reach. The stage itself never grows. */
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-short>.ss-ending{padding:10px 12px;gap:4px 8px;max-height:calc(100% - 80px)}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-short.ss-cinema-landscape>.ss-ending{max-height:calc(100% - 16px)}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-short .ss-cinema-score{display:flex;align-items:baseline;justify-content:center;gap:8px;padding:0 0 5px}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-short .ss-cinema-score>strong{font-size:28px}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-short .ss-cinema-score>small{font-size:9px}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-short .ss-ending h3{font-size:23px;margin:2px 0 4px}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-short .ss-ending>:is(.ss-start,.ss-shop-ending-button){min-height:44px;padding:6px 8px!important;font-size:12px!important}

/* Issue 36: settle the homecoming card lower in the clear sky, above the
   flock (which begins near 67% of the stage). Keep short-view copy scrolling
   inside the existing card; never grow the stage or move gameplay controls. */
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-ending{
 top:auto;bottom:35%;max-height:calc(65% - 16px);
}
/* Wide, short stages already place the flock and utility controls on the
   right. Lower the left-hand card while retaining equal safe edge bounds. */
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-landscape>.ss-ending{
 top:auto;bottom:5%;transform:none;max-height:90%;
}
/* Issue 43: a quiet left-hand control in the existing below-scene row.
   The stage, playfield and ending card retain their existing layout rules. */
#ar-shepherds-sheep#ar-shepherds-sheep .ss-controls>button.ss-return-menu{
 order:-1;flex:0 1 auto!important;max-width:100%;white-space:normal;
 font-size:12px!important;line-height:1.15;min-width:96px;
}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-controls>button.ss-return-menu:focus-visible{
 outline:3px solid #175b76;outline-offset:3px;
}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-controls>button.ss-return-menu::before{display:none}

/* Fix 17: compact, content-sized ending card; reserve actual flock rows below. */
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-ending{
 width:min(490px,calc(100% - 32px));height:auto;grid-template-rows:auto minmax(0,auto) auto auto;
 padding:16px 20px;gap:8px 10px;border-radius:22px;
 bottom:calc(100% - var(--ss-cinema-flock-top,65%));max-height:calc(var(--ss-cinema-flock-top,65%) - 16px);
}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending-copy{max-height:210px;}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-landscape>.ss-ending{
 width:min(460px,46%);bottom:5%;max-height:90%;padding:12px 16px;
}
@media(max-width:600px){
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-ending{width:calc(100% - 24px);padding:12px;gap:6px 8px;}
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-landscape>.ss-ending{width:48%;padding:10px;}
}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema-short>.ss-ending{padding:10px 12px;gap:4px 8px;overflow:auto;grid-template-rows:auto auto auto auto;}
/* Fix 18: fullscreen surround reuses the clean ending landscape, with no UI or
   sheep baked into it. The existing weather shading and frame stay in place. */
@media(forced-colors:none){
 #ar-shepherds-sheep.ss-scene-shell.ss-expanded .ss-scene-backdrop{
  background-image:url('./sheep-v46/intro-overlook.webp');background-position:center 58%;
 }
}

/* Batch24: independent view tools. The center actions never drift with them. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-controls{
 box-sizing:border-box;padding-inline:152px!important;min-height:48px;
}
#ar-shepherds-sheep .ss-view-tools{display:flex;position:absolute;right:0;top:0;gap:5px;align-items:center;justify-content:flex-end;z-index:6}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-view-tools>button{display:grid;place-items:center;flex:0 0 44px;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:6px!important;margin:0!important}
/* Generic illustrated buttons add a 25px ::before art cell. These explicit
   SVG controls must have exactly one grid cell, including in compact layouts. */
#ar-shepherds-sheep#ar-shepherds-sheep :is(.ss-view-tools>button,.ss-gameplay-exit)::before,
#ar-shepherds-sheep#ar-shepherds-sheep :is(.ss-view-tools>button,.ss-gameplay-exit)::after{content:none!important;display:none!important}
#ar-shepherds-sheep#ar-shepherds-sheep :is(.ss-view-tools>button,.ss-gameplay-exit)>svg{display:block!important;position:static!important;grid-area:1/1;flex:none;width:28px;height:28px;max-width:100%;max-height:100%;margin:0!important;transform:none!important;opacity:1!important;pointer-events:none}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-view-tools>button{gap:0!important;grid-template:1fr/1fr;overflow:hidden;color:#34513e!important}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-controls{padding-right:148px!important;min-height:44px}
#ar-shepherds-sheep .ss-gameplay-exit{display:none}
@media(max-width:760px){
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell .ss-stage>.ss-controls{padding-inline:0!important;padding-bottom:49px!important}
 #ar-shepherds-sheep .ss-stage>.ss-controls>.ss-view-tools{top:auto;bottom:0;right:0}
 #ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-controls{padding:0 0 49px!important}
 #ar-shepherds-sheep .ss-cinema>.ss-controls>.ss-view-tools{top:auto;bottom:0}
}
/* Opt-in only: no normal game box, shell or standard fullscreen is removed. */
/* Batch26: exclusive view uses the measured visible viewport. The same
   native 5:3 world is bounded on all four sides; no cover zoom or crop. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-gameplay-only{inset:var(--ss-visible-top,0px) auto auto var(--ss-visible-left,0px)!important;width:var(--ss-visible-width,100%)!important;height:var(--ss-visible-height,100dvh)!important;max-width:none!important;max-height:none!important;padding:0!important;border:0!important;border-radius:0!important;background:#162520!important}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only>div.ss-body{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;padding:0!important;overflow:hidden!important}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#162520!important;box-shadow:none!important;overflow:hidden!important}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage{container-type:size;--ss-efs-footer:0px}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-canvas{
 position:absolute!important;inset:auto!important;left:50%!important;
 top:calc((100% - var(--ss-efs-footer))/2)!important;
 width:min(100%,calc((100cqh - var(--ss-efs-footer))*5/3))!important;
 height:min(calc(100% - var(--ss-efs-footer)),60cqw)!important;
 min-width:0!important;min-height:0!important;max-width:100%!important;max-height:calc(100% - var(--ss-efs-footer))!important;
 margin:0!important;padding:0!important;transform:translate(-50%,-50%)!important;
 object-fit:contain!important;object-position:center!important;aspect-ratio:5/3!important;
 border:0!important;border-radius:0!important;clip-path:none!important;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only :is(.ss-scene-backdrop,.ss-trail-dock,.ss-trail-panel,.ss-field-guide,.ss-guide,.ss-game-border,.ss-turn-phone){display:none!important}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage>.ss-controls{display:none!important}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only[data-phase="paused"] .ss-stage>.ss-controls,
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only[data-phase="over"] .ss-stage>.ss-controls{display:flex!important;position:absolute!important;left:50%!important;top:auto!important;bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important;width:calc(100% - 24px)!important;padding:5px!important;min-height:44px!important;gap:6px!important;background:#183021cf!important;border-radius:12px!important;z-index:15!important}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only :is(.ss-view-tools,.ss-options-toggle){display:none!important}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-cinema>.ss-controls{padding:0!important;max-width:calc(100% - 24px)!important}
/* Retain actual score/time/Friend reserve in a quiet in-world HUD, no clouds. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage>.ss-hud{top:max(env(safe-area-inset-top,0px),var(--ss-hud-top,6px))!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(640px,calc(100% - 2 * max(56px,calc(env(safe-area-inset-left,0px) + 52px),calc(env(safe-area-inset-right,0px) + 52px))))!important;grid-template-columns:minmax(0,1fr) minmax(0,.8fr) minmax(0,1fr)!important;gap:5px!important;z-index:10!important;pointer-events:none}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage>.ss-hud>div{min-height:36px!important;height:auto!important;padding:3px 7px!important;border:0!important;border-radius:7px!important;background:#f8f1dadd!important;box-shadow:none!important;font-size:11px!important}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage>.ss-hud>div::after,
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage>.ss-hud>div::before,
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-friend-icons{display:none!important}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage>.ss-hud :is(.ss-friend-label,.ss-time,.ss-score){font-size:clamp(12px,2.4vw,19px)!important;line-height:1.1!important}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only :is(.ss-item-study,.ss-dove-reader,.ss-scripture-scroll){inset:calc(env(safe-area-inset-top,0px) + 52px) 8px calc(env(safe-area-inset-bottom,0px) + 8px)!important;max-height:none!important;width:auto!important;max-width:none!important;transform:none!important;z-index:25!important}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-gameplay-exit{display:grid;place-items:center;position:fixed;top:calc(env(safe-area-inset-top,0px) + 4px);right:calc(env(safe-area-inset-right,0px) + 4px);z-index:2147483646;width:44px;min-width:44px;height:44px;min-height:44px;padding:7px!important;margin:0;border:2px solid #34513e!important;border-radius:10px!important;background:#fff8e6!important;color:#34513e!important;gap:0!important;grid-template:1fr/1fr;overflow:hidden;line-height:1;box-shadow:0 1px 4px #16252066!important;touch-action:manipulation}
#ar-shepherds-sheep.ss-gameplay-only .ss-gameplay-exit:focus-visible{outline:3px solid #ffe787;outline-offset:-3px}
@media(max-width:420px){#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage>.ss-hud :is(.ss-best-wrap,.ss-ability,.ss-multiplier,.ss-dove-progress){display:none!important}}

#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage>.ss-audio-panel{position:absolute;z-index:30}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage>.ss-status{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}

#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only:is(.ss-reading,.ss-item-reading) .ss-controls{display:none!important}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage>.ss-hud:is([hidden],[aria-hidden="true"]){display:none!important}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-hud :is(.ss-best-wrap,.ss-ability,.ss-multiplier,.ss-dove-progress){color:#243c2d!important}
@media(forced-colors:active){#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-hud>div{background:Canvas!important;border:1px solid CanvasText!important}#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-hud :is(strong,span,small){color:CanvasText!important}#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-gameplay-exit{background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText!important}}

/* Batch25: exclusive-only safe HUD, unobscured pause card, and painted edges.
   Preserve the complete 5:3 world; never crop encounters or stretch physics. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage{
 background:linear-gradient(180deg,#20232b,#25241f)!important;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage::before{
 content:none;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only :is(.ss-canvas,.ss-cinema-canvas){
 /* Batch28: slightly brighter color and deeper blacks; white remains below clipping. */
 background:transparent!important;filter:brightness(.938) contrast(1.14);
}
/* Revision27 correction: one genuine full-width gameplay plane. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-canvas{
 left:0!important;top:50%!important;width:100%!important;height:min(100%,60cqw)!important;
 max-height:100%!important;transform:translateY(-50%)!important;aspect-ratio:auto!important;object-fit:fill!important;z-index:1;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage>.ss-hud{
 top:calc(env(safe-area-inset-top,0px) + 10px)!important;align-items:start!important;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage>.ss-hud>div{
 box-sizing:border-box;min-height:44px!important;height:auto!important;max-height:none!important;
 padding:5px 8px!important;align-self:start!important;overflow:visible!important;
 background:#fff5dfed!important;box-shadow:0 2px 6px #171c2333!important;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-hud .ss-friends{
 grid-template-columns:1fr!important;row-gap:2px!important;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage .ss-scene-caption{
 top:var(--ss-caption-top,72px)!important;max-height:var(--ss-caption-height,calc(100% - 136px))!important;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only:is([data-phase="paused"],[data-phase="over"]) .ss-stage>.ss-controls{
 width:max-content!important;max-width:calc(100% - 24px)!important;background:transparent!important;
}
@media(forced-colors:active){
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage{background:Canvas!important}
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage::before{display:none}
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only :is(.ss-canvas,.ss-cinema-canvas){filter:none}
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage>.ss-hud>div{background:Canvas!important;border:1px solid CanvasText!important}
}

/* Death controls live in the loss card. No footer appears, and the actual
   runner keeps exactly the same scale, ground line and width during death. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only[data-phase="over"] .ss-stage{--ss-efs-footer:0px}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-gameplay-only[data-phase="over"] .ss-stage .ss-loss-panel{
 top:var(--ss-caption-top,72px)!important;transform:translateX(-50%)!important;
 max-height:calc(var(--ss-paint-top,0px) + var(--ss-paint-height,100%) * .83 - var(--ss-caption-top,72px) - 8px)!important;
}
@media(max-height:420px){
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-gameplay-only .ss-stage .ss-loss-panel{padding:8px;gap:4px;}
}
/* Portrait scenes have unused vertical room outside the native-height world.
   Let the loss copy use it instead of collapsing behind its four actions. */
@media(max-width:600px) and (orientation:portrait){
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-gameplay-only[data-phase="over"] .ss-stage .ss-loss-panel{
  top:72px!important;max-height:calc(100% - 84px)!important;
 }
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-gameplay-only .ss-loss-panel>.ss-controls{
 display:flex!important;position:static!important;inset:auto!important;transform:none!important;
 width:100%!important;max-width:370px!important;min-height:44px!important;height:auto!important;
 margin:2px auto 0!important;padding:0!important;gap:8px!important;flex-wrap:nowrap!important;
 background:transparent!important;box-shadow:none!important;border:0!important;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-gameplay-only .ss-loss-panel>.ss-controls>button{
 flex:1 1 0!important;width:auto!important;min-width:0!important;min-height:44px!important;height:auto!important;
 margin:0!important;padding:6px 8px!important;font-size:12px!important;line-height:1.15!important;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-gameplay-only .ss-loss-panel>.ss-controls>button::before{display:none!important}

/* Narrow/zoomed exclusive pause and loss actions remain one reachable row.
   Remove decorative button art before reducing the readable label/tap size. */
@media(max-width:600px),(max-height:360px){
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only:is([data-phase="paused"],[data-phase="over"]) .ss-stage>.ss-controls{
  width:calc(100% - 16px)!important;max-width:calc(100% - 16px)!important;
  height:auto!important;max-height:none!important;min-height:44px!important;
  flex-wrap:nowrap!important;gap:5px!important;padding:5px!important;
 }
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only:is([data-phase="paused"],[data-phase="over"]) .ss-stage>.ss-controls>button{
  flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:160px!important;
  min-height:44px!important;height:44px!important;padding:6px 7px!important;
  font-size:12px!important;line-height:1.15!important;white-space:normal!important;
 }
 #ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only:is([data-phase="paused"],[data-phase="over"]) .ss-stage>.ss-controls>button::before{display:none!important}
}

/* r39: let real controls, not reserved empty columns, determine row count.
   Keep the three view tools together in normal flex flow. The scene's existing
   ResizeObserver reserves the measured row height below the playfield.
   Exclusive gameplay keeps its separate pause/loss/exit behavior unchanged. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell:not(.ss-gameplay-only) .ss-stage>.ss-controls,
#ar-shepherds-sheep#ar-shepherds-sheep:not(.ss-gameplay-only) .ss-cinema>.ss-controls{
 box-sizing:border-box;padding:0!important;height:auto;max-height:none;
 flex-wrap:wrap!important;row-gap:8px!important;column-gap:8px!important;
}
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell:not(.ss-gameplay-only) .ss-stage>.ss-controls>.ss-view-tools,
#ar-shepherds-sheep#ar-shepherds-sheep:not(.ss-gameplay-only) .ss-cinema>.ss-controls>.ss-view-tools{
 position:static;inset:auto;flex:0 0 auto;align-self:center;max-width:100%;
 display:flex;flex-wrap:nowrap;gap:5px;margin:0;min-height:44px;
}

/* r43: legacy short-landscape friends offsets survived position:relative.
   Align only exclusive gameplay cards; keep their painted pseudo-elements,
   world/canvas geometry, reading and pause controls unchanged. */
#ar-shepherds-sheep#ar-shepherds-sheep.ss-scene-shell.ss-expanded.ss-gameplay-only .ss-stage>.ss-hud>div{
 top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
}

/* r60: every end-card action stays inside the scrollable viewport. */
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-ending{box-sizing:border-box;max-height:calc(100dvh - 36px)!important;overflow-y:auto!important;overscroll-behavior:contain;scroll-padding:16px;padding-bottom:18px!important}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-ending button{flex-shrink:0}
@media(max-height:600px){#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-ending{top:10px!important;max-height:calc(100dvh - 20px)!important}#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-ending h3{margin-block:8px;font-size:25px}#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-ending p{margin-block:8px}}

#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-ending{top:12px!important;bottom:auto!important;transform:translateX(-50%)!important;max-height:calc(100% - 24px)!important;overflow:auto!important;grid-template-rows:auto auto auto auto;align-content:start}
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema .ss-ending-copy{max-height:none!important;overflow:visible!important;flex-shrink:0}

/* r71: keep the ending's horizontal center through every responsive rule. */
#ar-shepherds-sheep#ar-shepherds-sheep .ss-cinema>.ss-ending{left:50%!important;right:auto!important;transform:translateX(-50%)!important;margin-inline:0!important}

.ss-score-note{white-space:pre-line}
