/* Compact, game-scoped cosmetic shop; no changes to world layout or hitboxes. */
#ar-shepherds-sheep .ss-shop-open-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:4px 10px;min-height:44px;font-size:12px;line-height:1.2;background:#f1dfb8;color:#443728;border:1px solid #8c7655;border-radius:12px;box-shadow:none}
#ar-shepherds-sheep .ss-shop-open-button svg{width:29px;height:29px;flex:none}
#ar-shepherds-sheep .ss-shop-ending-button{align-self:center;margin:4px auto 0;flex:none}
#ar-shepherds-sheep .ss-shop-open-button[hidden],#ar-shepherds-sheep .ss-shop[hidden]{display:none!important}
#ar-shepherds-sheep .ss-shop{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;box-sizing:border-box;z-index:100;display:flex;align-items:center;justify-content:center;padding:12px;background:rgba(31,38,28,.58);border-radius:inherit;isolation:isolate}
#ar-shepherds-sheep .ss-body{position:relative}
#ar-shepherds-sheep .ss-shop-card{width:min(100%,700px);max-height:min(85dvh,720px);overflow:auto;overscroll-behavior:contain;background:#fbf5e7;color:#3e392e;border:2px solid #9b916f;border-radius:18px;padding:16px;box-sizing:border-box;box-shadow:0 8px 32px #17221d40;font:14px/1.4 system-ui,sans-serif;text-align:left}
#ar-shepherds-sheep .ss-shop header{display:flex;gap:10px;align-items:center;border-bottom:1px solid #ded3b8;padding-bottom:10px;position:sticky;top:-16px;padding-top:8px;background:#fbf5e7;z-index:2}
#ar-shepherds-sheep .ss-shop h3{font:700 20px/1.2 system-ui,sans-serif;margin:0;color:#3e392e;letter-spacing:0}
#ar-shepherds-sheep .ss-shop header p{margin:3px 0 0;font-size:12px;color:#6c624d}
#ar-shepherds-sheep .ss-shop-close{margin-left:auto;flex:none}
#ar-shepherds-sheep .ss-shop button{font:600 12px/1.25 system-ui,sans-serif;min-height:44px;min-width:44px;border:1px solid #a49b7c;border-radius:9px;background:#fff9eb;color:#393d2d;padding:7px 10px;box-shadow:none;text-transform:none;letter-spacing:0;touch-action:manipulation}
#ar-shepherds-sheep .ss-shop button:disabled{opacity:.6;cursor:default}
#ar-shepherds-sheep .ss-shop button:focus-visible{outline:3px solid #54819f;outline-offset:2px}
#ar-shepherds-sheep .ss-shop-intro{display:flex;align-items:center;gap:16px;margin:12px 0}
#ar-shepherds-sheep .ss-shop-preview{width:150px;height:111px;flex:none;background:#e8eedb;border-radius:16px}
#ar-shepherds-sheep .ss-shop-intro p{font-size:12px;margin:5px 0}
#ar-shepherds-sheep .ss-shop-balance{font-size:19px;color:#556c3e}
#ar-shepherds-sheep .ss-shop-preview-label{font-weight:600}
#ar-shepherds-sheep .ss-shop-group h4{margin:14px 0 7px;font-size:13px;color:#6c654f;letter-spacing:.02em}
#ar-shepherds-sheep .ss-shop-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px}
#ar-shepherds-sheep .ss-shop-item{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#f3ebd9;border:1px solid #d6c8a9;border-radius:11px;padding:9px;min-width:0}
#ar-shepherds-sheep .ss-shop-item>strong,#ar-shepherds-sheep .ss-shop-item-state{grid-column:1/-1}
#ar-shepherds-sheep .ss-shop-item>strong{font-size:12px}
#ar-shepherds-sheep .ss-shop-item-state{font-size:11px;color:#6a654f}
#ar-shepherds-sheep .ss-shop-item.is-equipped{border-color:#6d8750;background:#e7eddb}
#ar-shepherds-sheep .ss-shop-item.is-preview{outline:2px solid #7398a4;outline-offset:1px}
#ar-shepherds-sheep .ss-shop-notice{font-size:12px;min-height:1.5em;color:#405a38;margin:12px 0 4px}
#ar-shepherds-sheep .ss-shop-save{font-size:11px;margin:4px 0 0;color:#716953}
#ar-shepherds-sheep.ss-shop-open .ss-stage,#ar-shepherds-sheep.ss-shop-open .ss-controls{pointer-events:none}
#ar-shepherds-sheep.ss-shop-open .ss-shop{pointer-events:auto}
@media(max-width:520px){#ar-shepherds-sheep .ss-shop{padding:5px}#ar-shepherds-sheep .ss-shop-card{padding:11px;max-height:85dvh}#ar-shepherds-sheep .ss-shop-intro{gap:9px}#ar-shepherds-sheep .ss-shop-preview{width:108px;height:80px}#ar-shepherds-sheep .ss-shop-items{grid-template-columns:repeat(2,minmax(0,1fr))}#ar-shepherds-sheep .ss-shop-item{padding:7px;grid-template-columns:1fr}#ar-shepherds-sheep .ss-shop-item>strong,#ar-shepherds-sheep .ss-shop-item-state{grid-column:auto}#ar-shepherds-sheep .ss-shop header{top:-11px}#ar-shepherds-sheep .ss-shop header p{display:none}}
@media(max-height:500px) and (orientation:landscape){#ar-shepherds-sheep .ss-shop-card{max-height:94dvh}#ar-shepherds-sheep .ss-shop-intro{margin:6px 0}#ar-shepherds-sheep .ss-shop-preview{width:108px;height:80px}}

/* Actual equipped character illustrations make each catalog choice recognizable. */
#ar-shepherds-sheep .ss-shop-item-art{grid-column:1/-1;display:block;width:100%;height:88px;object-fit:contain;border-radius:8px;background:radial-gradient(ellipse at 50% 65%,#e3ead3 0%,#f7f1e3 72%)}
/* v35: rounded, illustrated toy-shop finish; original keeper and layout retained. */
#ar-shepherds-sheep .ss-shop-card{background:#fff6dc;border:3px solid #765636;border-radius:25px;box-shadow:0 7px 0 #493a2b66,0 18px 45px #17221d55;font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif}
#ar-shepherds-sheep .ss-shop header{background:#fff6dc;border-bottom:2px solid #e9d3a6}
#ar-shepherds-sheep .ss-shop h3{font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;color:#594329;font-size:23px}
#ar-shepherds-sheep .ss-shop-preview{background:#dcebc5;border:2px solid #92ab68;box-shadow:inset 0 -5px 0 #bed59766;box-sizing:border-box;border-radius:22px}
#ar-shepherds-sheep .ss-shop-group h4{display:inline-block;padding:5px 13px;border-radius:14px;background:#e4eccd;color:#51663c;border:1px solid #a8ba85;font-size:14px}
#ar-shepherds-sheep .ss-shop-item{background:#fffaf0;border:2px solid #d6b984;border-radius:17px;padding:10px;box-shadow:0 3px 0 #d3b78266;gap:6px}
#ar-shepherds-sheep .ss-shop-item-art{height:96px;background:radial-gradient(ellipse at 50% 65%,#e2edcc 0%,#fffaf0 73%)}
#ar-shepherds-sheep .ss-shop-item>strong{color:#57412b;font-size:13px}
#ar-shepherds-sheep .ss-shop-item.is-equipped{background:#eef6dc;border-color:#8aa653;box-shadow:0 3px 0 #81984c66}
#ar-shepherds-sheep .ss-shop-item.is-preview{outline:3px solid #7da9b5;outline-offset:2px}
#ar-shepherds-sheep .ss-shop button{border:2px solid #a48654;border-radius:14px;background:#fff7dc;box-shadow:0 2px 0 #a4865477;font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif}
#ar-shepherds-sheep .ss-shop button[data-shop-choose]:not(:disabled){background:#e1efba;color:#455a2e;border-color:#849d50;box-shadow:0 2px 0 #657a3d77}
#ar-shepherds-sheep .ss-shop button:not(:disabled):hover{filter:brightness(1.04);border-color:#657b44}
#ar-shepherds-sheep .ss-shop button:not(:disabled):active{transform:translateY(2px);box-shadow:none}
#ar-shepherds-sheep .ss-shop button:disabled{box-shadow:none}
@media(max-width:520px){#ar-shepherds-sheep .ss-shop-item{padding:7px;border-radius:14px}#ar-shepherds-sheep .ss-shop-item-art{height:82px}#ar-shepherds-sheep .ss-shop h3{font-size:21px}}

/* v36: each catalog action owns a complete row. Game controls have a blank
   icon pseudo-element; it must not steal room from shop prices and labels. */
#ar-shepherds-sheep .ss-shop-items{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))}
#ar-shepherds-sheep .ss-shop-item{grid-template-columns:minmax(0,1fr);align-content:start}
#ar-shepherds-sheep .ss-shop-item>*{min-width:0;max-width:100%;box-sizing:border-box}
#ar-shepherds-sheep .ss-shop-item>strong,#ar-shepherds-sheep .ss-shop-item-state,#ar-shepherds-sheep .ss-shop-item-description{grid-column:1/-1;white-space:normal;overflow-wrap:anywhere;word-break:normal}
#ar-shepherds-sheep .ss-shop-item-description{margin:0;font:400 11px/1.45 system-ui,sans-serif;color:#6a654f}
#ar-shepherds-sheep .ss-shop-item-state,#ar-shepherds-sheep .ss-shop-balance{font-variant-numeric:tabular-nums}
#ar-shepherds-sheep .ss-shop button::before,#ar-shepherds-sheep .ss-shop button::after{display:none!important;content:none!important}
#ar-shepherds-sheep .ss-shop-item>button{display:block;grid-column:1/-1;width:100%;height:auto;min-height:44px;max-height:none;min-width:0;margin:0;padding:8px 9px;white-space:normal;overflow-wrap:anywhere;word-break:normal;text-align:center;line-height:1.3!important;font-variant-numeric:tabular-nums}
#ar-shepherds-sheep .ss-shop-intro>div{min-width:0}
#ar-shepherds-sheep .ss-shop-balance{display:block;overflow-wrap:anywhere}
@media(max-width:520px){#ar-shepherds-sheep .ss-shop-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:300px){#ar-shepherds-sheep .ss-shop-items{grid-template-columns:minmax(0,1fr)}#ar-shepherds-sheep .ss-shop-intro{flex-wrap:wrap}}

/* Avdi stays directly beneath the seven scrolls in the satchel. */
#ar-shepherds-sheep .ss-item-avdi{grid-column:1;justify-self:start;max-width:100%;}
#ar-shepherds-sheep .ss-avdi-icon{display:block;width:42px;height:42px;background:url(./sheep-v40/avdi-flap-atlas.png) 51% 50%/310% 100% no-repeat;filter:grayscale(1);opacity:.38;}
#ar-shepherds-sheep .ss-item-avdi.ss-collected .ss-avdi-icon{filter:none;opacity:1;}
/* Keep enlarged labels within a narrow satchel without shrinking the art. */
#ar-shepherds-sheep .ss-item-avdi .ss-avdi-label{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;}
/* v41: product illustrations stay visible; only sheep voices offer listening. */
#ar-shepherds-sheep .ss-shop-item-art{height:110px}
#ar-shepherds-sheep .ss-shop [data-shop-voice-preview]{background:#f5e5ee;border-color:#b2829e;color:#633e56}
#ar-shepherds-sheep .ss-shop-item[data-shop-item="pink"] .ss-shop-item-art{background:#f7dfef}
@media(max-width:520px){#ar-shepherds-sheep .ss-shop-item-art{height:100px}}

/* 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-v44/play-button.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}

/* Browsing is available before the first journey; buying retains its save gate. */
#ar-shepherds-sheep .ss-stage .ss-loss-panel>.ss-shop-loss-button{align-self:center;flex:0 0 auto;margin:2px auto 0}
#ar-shepherds-sheep .ss-stage .ss-hud>.ss-countdown[hidden]{display:flex!important;visibility:hidden!important;pointer-events:none!important}

#ar-shepherds-sheep .ss-shop-item[data-shop-item="website-companion"]{grid-template-columns:176px 1fr;column-gap:14px;align-items:center}
#ar-shepherds-sheep .ss-shop-item[data-shop-item="website-companion"] .ss-shop-item-art{grid-column:1;grid-row:1/5;width:176px;height:120px}
#ar-shepherds-sheep .ss-shop-item[data-shop-item="website-companion"]>strong,#ar-shepherds-sheep .ss-shop-item[data-shop-item="website-companion"]>p,#ar-shepherds-sheep .ss-shop-item[data-shop-item="website-companion"]>span,#ar-shepherds-sheep .ss-shop-item[data-shop-item="website-companion"]>button{grid-column:2}
#ar-shepherds-sheep .ss-shop-item.is-unlocked{border-color:#6d8750;background:#e7eddb}
@media(max-width:430px){#ar-shepherds-sheep .ss-shop-item[data-shop-item="website-companion"]{grid-template-columns:1fr}#ar-shepherds-sheep .ss-shop-item[data-shop-item="website-companion"] .ss-shop-item-art{grid-column:1;grid-row:auto;justify-self:center}#ar-shepherds-sheep .ss-shop-item[data-shop-item="website-companion"]>strong,#ar-shepherds-sheep .ss-shop-item[data-shop-item="website-companion"]>p,#ar-shepherds-sheep .ss-shop-item[data-shop-item="website-companion"]>span,#ar-shepherds-sheep .ss-shop-item[data-shop-item="website-companion"]>button{grid-column:1}}
