.sheep-panel{--sheep-gold:#d9bc84;position:relative;overflow:hidden;background:radial-gradient(ellipse at 10% 22%,#63503b25,transparent 62%),linear-gradient(135deg,#22202b,#14151f);border:1px solid #c6ae7a28;border-radius:24px;padding:clamp(18px,3vw,32px);margin-block:20px;isolation:isolate}
.sheep-panel[data-skin=rare]{background:radial-gradient(ellipse at 10% 22%,#8d76a32d,transparent 60%),linear-gradient(135deg,#24212e,#15151f)}.sheep-panel[data-skin=legendary]{box-shadow:inset 0 1px #edcf9714,0 14px 50px #0002}
.sheep-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px}.sheep-heading h2{margin:5px 0 0;font-size:clamp(25px,4vw,36px);overflow-wrap:anywhere}.sheep-heading .eyebrow{font-size:10px;letter-spacing:.16em;color:#c4b5a2}.sheep-discount{text-align:center;border-radius:16px;padding:9px 13px;background:#d8ba7e0b;flex:none}.sheep-discount b{display:block;font-size:27px;color:var(--sheep-gold);line-height:1.1}.sheep-discount small{display:block;font-size:10px;color:#b6a58c;margin-top:4px}
.sheep-body{display:grid;grid-template-columns:minmax(130px,.9fr) minmax(180px,1.1fr);gap:clamp(12px,3vw,32px);align-items:center}.sheep-illustration{position:relative;max-width:310px;width:100%;margin:auto;align-self:center}.sheep-art{position:relative;width:100%;aspect-ratio:1;background-image:var(--sheep-art);background-size:200% 200%;background-position:0 0;background-repeat:no-repeat;filter:drop-shadow(0 10px 22px #0004);cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;animation:sheep-arrive .4s ease-out both;transition:filter .3s}.sheep-art[data-mood=happy]{background-position:100% 0}.sheep-art[data-mood=sad]{background-position:0 100%;filter:saturate(.73) brightness(.9)}.sheep-art[data-mood=offended]{background-position:100% 100%;filter:saturate(.5) brightness(.78)}.sheep-art[data-stage="1"],.sheep-art[data-stage="2"],.sheep-art[data-stage="3"]{filter:drop-shadow(0 0 8px #dec28824)}.sheep-art[data-stage="2"]::after,.sheep-art[data-stage="3"]::after{content:'✧';position:absolute;right:15%;top:15%;font-size:24px;color:#dec28f;opacity:.8}.sheep-spark{position:absolute;top:8%;left:12%;color:#ead5a8;opacity:0;pointer-events:none}.sheep-fed-now .sheep-spark,.sheep-art.is-petted .sheep-spark{animation:sheep-spark 1.3s ease-out}.sheep-fed-now .sheep-art,.sheep-art.is-petted{animation:sheep-bounce .7s ease-out}.sheep-mood{display:block;text-align:center;font-size:11px;color:#b9b0a5;margin-top:-6px;position:relative}.sheep-look{margin:6px 0 14px;font-size:16px;font-weight:600;color:#ebdfcb}.sheep-look small{display:block;font-size:11px;font-weight:400;color:#a8a2b1;margin-top:4px;line-height:1.5}
.sheep-stats{display:flex;gap:24px;margin:0 0 14px}.sheep-stats div{display:flex;flex-direction:column}.sheep-stats dt{font-size:11px;color:#a8a2b1;margin-bottom:3px}.sheep-stats dd{font-size:25px;line-height:1.2;color:#e4c88e;margin:0;font-variant-numeric:tabular-nums}.sheep-stats dd small{font-size:10px;color:#a8a2b1;margin-left:5px}.sheep-progress>span{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#bcb6c3;gap:6px}.sheep-progress b{font-size:11px;font-weight:500;color:#d3c2a4;white-space:nowrap}.sheep-progress progress{height:5px;width:100%;accent-color:#cfb27d;border:0;border-radius:5px;overflow:hidden;margin-top:7px}.sheep-feed-hint{font-size:11px;line-height:1.65;color:#b7b0bb;margin:10px 0 12px}.sheep-actions .button{width:100%;min-height:44px;padding:10px 14px;font-size:13px}.sheep-actions .button:disabled{opacity:.62;cursor:default}
.sheep-palette{padding:16px 0 0;margin:18px 0 0;border:0;border-top:1px solid #d2b77e18;min-width:0}.sheep-palette legend{float:left;width:100%;padding:0 0 10px;font-size:12px;color:#e3d7c6}.sheep-palette legend small{font-size:10px;color:#a8a2b1;font-weight:400;margin-left:8px}.sheep-palette>div{clear:both;display:flex;flex-wrap:wrap;gap:10px}.sheep-palette button{width:32px;height:32px;min-width:32px;border-radius:50%;border:3px solid #1e1d26;background:var(--swatch);box-shadow:0 0 0 1px #ffffff20;display:grid;place-items:center;padding:0;color:#322b2e;cursor:pointer;transition:box-shadow .18s,transform .18s;touch-action:manipulation}.sheep-palette button[aria-pressed=true]{box-shadow:0 0 0 2px #dac393,0 0 12px #dec18928}.sheep-palette button:active{transform:scale(.9)}.sheep-palette button:focus-visible{outline:2px solid #fff;outline-offset:4px}
.sheep-milestones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid #d2b77e18}.sheep-milestones span{display:grid;gap:4px;padding:9px 5px;text-align:center;border-radius:12px;background:#ffffff03}.sheep-milestones b{font-size:11px;color:#b6afbf;font-weight:500}.sheep-milestones strong{font-size:18px;color:#d1bd98}.sheep-milestones small{font-size:9px;color:#908a9a;line-height:1.3}.sheep-milestones .is-reached{background:#e3c4800c}.sheep-milestones .is-reached b{color:#e4ca99}.sheep-rules{margin-top:16px;font-size:11px;color:#aaa3af;line-height:1.65}.sheep-rules summary{cursor:pointer;color:#c8b491}.sheep-rules p{margin:8px 0}.sheep-away .sheep-art{opacity:.18;filter:grayscale(1);pointer-events:none}.sheep-away .sheep-feed-hint{color:#d6b9a0}
.sheep-welcome{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(200px,1.2fr);align-items:center;gap:20px}.sheep-welcome-art{max-width:260px;margin:auto;width:100%}.sheep-welcome h2{font-size:clamp(23px,3vw,32px);line-height:1.2;margin:8px 0 12px}.sheep-welcome p{color:#b6aebc;font-size:13px;line-height:1.65;max-width:420px}.sheep-welcome .eyebrow{font-size:9px;letter-spacing:.14em;color:#bba888}.sheep-welcome label{font-size:12px;display:block;color:#c7bbab;margin-bottom:7px}#sheep-name-form>div{display:flex;gap:8px}#sheep-name{min-width:0;width:100%;background:#11131e;border:1px solid #c6ae7a39;border-radius:12px;padding:11px 12px;font-size:14px;color:#eee5d7}#sheep-name-form .button{padding:11px 14px;font-size:12px;white-space:nowrap;min-height:44px}.sheep-note{display:block;color:#9c95a3;font-size:10px;line-height:1.6;margin-top:11px}
.pet-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}.pet-price del{font-size:11px;font-weight:400;color:#8f8a96}.pet-price small{display:block;width:100%;font-size:10px;line-height:1.25;color:#c9b184}.participant-price{font-size:12px;color:#dcc18c;font-variant-numeric:tabular-nums}
@keyframes sheep-arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes sheep-bounce{0%,100%{transform:none}30%{transform:translateY(-8px) rotate(-3deg)}60%{transform:translateY(-2px) rotate(2deg)}}@keyframes sheep-spark{0%{opacity:0;transform:translateY(8px) scale(.6)}35%{opacity:1}100%{opacity:0;transform:translateY(-20px) scale(1.15)}}
@media(max-width:600px){.sheep-panel{padding:18px;border-radius:22px}.sheep-body{grid-template-columns:minmax(100px,.85fr) minmax(155px,1.15fr);gap:10px}.sheep-heading h2{font-size:27px}.sheep-discount b{font-size:24px}.sheep-discount{padding:8px 10px}.sheep-look{font-size:14px;margin-bottom:10px}.sheep-stats{gap:22px;margin-bottom:11px}.sheep-stats dd{font-size:23px}.sheep-feed-hint{font-size:10px;line-height:1.5}.sheep-mood{font-size:10px}.sheep-welcome{grid-template-columns:1fr;gap:4px}.sheep-welcome-art{max-width:180px}.sheep-welcome h2 br{display:none}.sheep-welcome h2{font-size:25px}.sheep-welcome p{font-size:12px}.sheep-welcome .eyebrow{font-size:8px}.sheep-palette button{width:34px;height:34px;min-width:34px}.sheep-palette>div{gap:9px}}
@media(max-width:359px){.sheep-body{grid-template-columns:1fr}.sheep-illustration{max-width:170px}.sheep-details{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.sheep-look{grid-column:1/-1}.sheep-progress,.sheep-feed-hint,.sheep-actions{grid-column:1/-1}.sheep-stats{grid-column:1/-1}.sheep-palette legend small{display:block;margin:4px 0 0}#sheep-name-form>div{flex-direction:column}}
@media(prefers-reduced-motion:reduce){.sheep-panel *{animation:none!important;transition:none!important}}

.sheep-art[data-stage="2"]::before{content:"";position:absolute;left:42%;top:58%;width:14%;height:4%;border-radius:5px;background:#793b4fbb;transform:rotate(-8deg);box-shadow:0 1px 2px #0003}.sheep-art[data-stage="3"]::before{content:"✦";position:absolute;right:23%;top:52%;color:#e4c484;font-size:16px;text-shadow:0 0 8px #dec28777}

.sheep-art .sheep-preview-3d{position:absolute!important;inset:0;width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:1!important;background:transparent!important;border:0!important;border-radius:0!important;overflow:hidden}.sheep-art:has(.sheep-preview-3d[data-avatar-status=ready]){background-image:none}.sheep-preview-3d .avatar-3d-canvas{width:100%;height:100%;pointer-events:none}.sheep-preview-3d[data-avatar-status=error]{display:none}.sheep-preview-3d .portrait-skeleton{display:none}
