.sheep-page{background:#212121}.sheep-page .page-shell{max-width:1320px}.sheep-layout{display:grid;grid-template-columns:1fr 490px;gap:clamp(40px,7vw,108px);align-items:center;max-width:1060px;margin:0 auto;padding:36px 0 48px}.sheep-intro{padding:12px 0}.intro-dot,.level-dot{display:inline-block;width:5px;height:5px;background:#bbb;border-radius:50%;margin-right:9px}.sheep-intro h1{font-size:52px;line-height:1.28;letter-spacing:-.055em;margin:25px 0 22px;font-weight:400}.sheep-intro h1 span{display:block;font-size:30px;color:#777;margin-top:10px;font-weight:300;letter-spacing:-.025em}.sheep-description{font-size:15px;line-height:1.95;color:#aaa}.match-example{display:flex;gap:9px;align-items:center;margin:32px 0}.match-example .sheep-tile{width:52px;height:54px;position:relative;transform:rotate(-7deg)}.match-example .sheep-tile:nth-child(2){transform:translateY(-5px) rotate(3deg)}.match-example .sheep-tile:nth-child(3){transform:rotate(9deg)}.match-example>span{margin-left:18px;color:#777;font-size:24px}.sheep-instructions{margin:30px 0}.sheep-instructions p{display:flex;gap:16px;font-size:12px;color:#999;line-height:1.8;margin:14px 0}.sheep-instructions p>span:first-child{color:#626262;font-size:11px}.restart-button{background:none;border:0;color:#aaa;padding:10px 0;font-size:12px;display:inline-flex;gap:8px;align-items:center}.restart-button:hover{color:#eee}.intro-foot{color:#646464;font-size:11px;margin-top:29px}.sheep-console{padding:23px 25px 15px;border-radius:24px;background:linear-gradient(145deg,#2a2a2a,#252525);box-shadow:0 18px 48px #0003,inset 0 1px 1px #ffffff08;min-width:0}.sheep-console-head{display:flex;justify-content:space-between;color:#bdbdbd;font-size:12px;align-items:center}.sheep-console-head>span{font-size:11px;color:#828282}.sheep-progress{height:2px;background:#343434;margin-top:17px;overflow:hidden}.sheep-progress>div{height:100%;background:#aaa;transition:width .3s}.board-region{position:relative}#sheep-board{position:relative;width:100%;aspect-ratio:1/1.02;margin:12px 0 8px;background:radial-gradient(ellipse,#ffffff03,transparent 70%)}.sheep-tile{display:grid;place-items:center;position:absolute;width:13.55%;height:13.2%;padding:0;border:0;border-radius:9px;background:linear-gradient(145deg,#eeece7,#c9c8c3);color:#51534f;box-shadow:0 4px 0 #96958f,0 6px 9px #0007,inset 0 1px 1px #fff9;transition:transform 90ms ease-out;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.sheep-tile svg{width:66%;height:66%;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}@media(hover:hover) and (pointer:fine){.sheep-tile:enabled:hover{transform:translateY(-2px)}}.sheep-tile:enabled:active{transform:translateY(2px);box-shadow:0 1px 0 #96958f,0 2px 3px #0006}.sheep-tile:disabled{cursor:default}.sheep-tile:focus-visible{outline:2px solid #fff;outline-offset:3px}.tray-heading{display:flex;justify-content:space-between;font-size:10px;color:#8e8e8e;margin:0 2px 11px}.sheep-tray{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;padding:10px;border-radius:12px;background:#1d1d1d;box-shadow:inset 0 2px 5px #0005,inset 0 -1px 1px #ffffff06}.tray-slot{position:relative;aspect-ratio:1/1.03;border-radius:7px;background:#272727;box-shadow:inset 0 1px 3px #0002}.tray-slot .sheep-tile{inset:0;width:100%;height:calc(100% - 3px);border-radius:6px}.sheep-tray.danger{box-shadow:inset 0 0 0 1px #a9a397,inset 0 2px 5px #0005}.game-status{font-size:11px;text-align:center;color:#989898;min-height:17px;margin:15px 0}.sheep-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.sheep-tools button{display:flex;gap:7px;align-items:center;justify-content:center;padding:13px 4px;border:0;border-radius:10px;background:var(--graphite-key);box-shadow:var(--graphite-lift);font-size:11px;color:#bcbcbc}.sheep-tools button:disabled{opacity:.32}.tool-icon{font-size:19px;line-height:1}.sheep-tools small{font-size:9px;color:#777;margin-left:3px}.console-note{text-align:center;color:#636363;font-size:10px;margin:13px 0 0}.reserve-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px;color:#999;font-size:10px}#reserve{display:flex;gap:8px}#reserve .sheep-tile{position:relative;width:38px;height:40px}.board-overlay{position:absolute;inset:0;z-index:20;background:#252525eb;backdrop-filter:blur(9px);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;border-radius:16px;padding:20px}.result-mark{width:66px;height:66px;color:#cecec7}.result-mark svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.result-kicker{font-size:10px;letter-spacing:2px;color:#888;margin-top:22px}.board-overlay h2{font-weight:400;font-size:28px;margin:0 0 10px}.board-overlay p:not(.result-kicker){font-size:12px;color:#999;line-height:1.8;max-width:260px;margin-bottom:24px}.board-overlay .primary-button{min-width:160px;min-height:44px;justify-content:center;font-size:12px}.sheep-page dialog{max-width:390px;width:calc(100% - 36px);padding:28px;border-radius:20px;color:#ddd}.sheep-page dialog::backdrop{background:#0009;backdrop-filter:blur(6px)}.sheep-page dialog h2{font-size:22px;font-weight:400}.sheep-page dialog p{color:#aaa;font-size:13px;line-height:1.9}.sheep-page dialog .primary-button{min-height:43px;min-width:120px;justify-content:center;font-size:12px}.dialog-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}@media(max-width:900px){.sheep-layout{grid-template-columns:minmax(240px,1fr) minmax(340px,440px);gap:32px}.sheep-intro h1{font-size:42px}.sheep-intro h1 span{font-size:25px}}@media(max-width:700px){.sheep-page .page-shell{padding-inline:16px}.sheep-layout{display:flex;flex-direction:column;gap:16px;padding-top:15px;max-width:460px}.sheep-intro{width:100%;padding:0;position:relative}.sheep-intro .eyebrow,.sheep-description,.match-example,.sheep-instructions,.intro-foot{display:none}.sheep-intro h1{font-size:25px;margin:0;letter-spacing:-.04em}.sheep-intro h1 span{display:inline;font-size:12px;margin-left:14px;letter-spacing:0}.sheep-intro>.restart-button{position:absolute;right:0;top:32px;font-size:10px;z-index:1}.sheep-console{width:100%;padding:17px 14px 14px;box-shadow:none;background:none}.sheep-console-head{padding-right:70px}#sheep-board{margin-top:10px}.sheep-tile{border-radius:7px}.sheep-tray{gap:6px;padding:9px}.sheep-tools button{min-height:47px}.sheep-layout{padding-bottom:calc(20px + env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){.sheep-page *{animation:none!important;transition:none!important}}

.sheep-description{white-space:pre-line}.side-hidden svg{visibility:hidden}
/* Use the same graphite select as the other games. */
.difficulty-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.difficulty-toolbar>label{font-size:11px;color:#999}.difficulty-toolbar .select-trigger{min-width:158px;font-size:12px;min-height:40px}.sheep-console-head{font-size:11px}#sheep-board{isolation:isolate}.board-overlay{z-index:30}.is-shuffling .sheep-tile{transition:none!important;pointer-events:none}.sheep-intro>.restart-button:disabled{opacity:.3}@media(max-width:700px){.difficulty-toolbar{margin-bottom:15px}.difficulty-toolbar .select-trigger{min-width:150px}.sheep-console-head{padding-right:0}.sheep-intro>.restart-button{top:30px}.difficulty-toolbar{padding-right:0;margin-top:10px}}

/* Stable symbol colors follow each tile through the board, tray and reserve. */
:is(.sheep-tile,.sheep-fx)[data-type="0"]{--shape-color:#506e9a} /* sheep · slate blue */
:is(.sheep-tile,.sheep-fx)[data-type="1"]{--shape-color:#357448} /* leaf · fern */
:is(.sheep-tile,.sheep-fx)[data-type="2"]{--shape-color:#926c19} /* wheat · ochre */
:is(.sheep-tile,.sheep-fx)[data-type="3"]{--shape-color:#b85323} /* carrot · orange */
:is(.sheep-tile,.sheep-fx)[data-type="4"]{--shape-color:#b04176} /* flower · rose */
:is(.sheep-tile,.sheep-fx)[data-type="5"]{--shape-color:#7a529e} /* mushroom · violet */
:is(.sheep-tile,.sheep-fx)[data-type="6"]{--shape-color:#b03b3d} /* apple · red */
:is(.sheep-tile,.sheep-fx)[data-type="7"]{--shape-color:#7c6045} /* hay · umber */
:is(.sheep-tile,.sheep-fx)[data-type="8"]{--shape-color:#a65c12} /* chicken · amber */
:is(.sheep-tile,.sheep-fx)[data-type="9"]{--shape-color:#925578} /* rabbit · mauve */
:is(.sheep-tile,.sheep-fx)[data-type="10"]{--shape-color:#776216} /* bee · bronze */
:is(.sheep-tile,.sheep-fx)[data-type="11"]{--shape-color:#247b70} /* cactus · jade */
:is(.sheep-tile,.sheep-fx)[data-type="12"]{--shape-color:#276ea9} /* water · blue */
:is(.sheep-tile,.sheep-fx)[data-type="13"]{--shape-color:#277989} /* milk · turquoise */
:is(.sheep-tile,.sheep-fx)[data-type="14"]{--shape-color:#94533b} /* basket · terracotta */
:is(.sheep-tile,.sheep-fx)[data-type="15"]{--shape-color:#996013} /* sun · gold */
:is(.sheep-tile,.sheep-fx)[data-type="16"]{--shape-color:#58589f} /* tent · indigo */
:is(.sheep-tile,.sheep-fx)[data-type="17"]{--shape-color:#5d752f} /* tree · olive */
.sheep-tile{color:var(--shape-color,#51534f)}
.sheep-tile svg{fill:color-mix(in srgb,currentColor 12%,transparent)}


/* Dim buried faces without a GPU filter on every tile in the stack. */
.sheep-tile::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:#000;opacity:0;transition:opacity 160ms ease-out}
.sheep-tile[data-area="board"]:disabled::after{opacity:.42}
.sheep-tile[data-area="tray"]{cursor:default}
.sheep-tile.is-moving{transform-origin:0 0;transition:none!important;pointer-events:none;z-index:25!important;will-change:transform,opacity}
.sheep-tile.is-moving:active,.sheep-tile.is-moving:hover{transform:none}
.sheep-tile.is-moving[data-area="reserve"],.sheep-tile.is-moving[data-area="board"]{pointer-events:auto}
.sheep-motion-layer{position:fixed;inset:0;pointer-events:none;z-index:50;contain:layout style;overflow:visible}
.sheep-motion-layer .sheep-tile{position:absolute;margin:0;border-radius:6px;pointer-events:none}
.board-overlay:not([hidden]){animation:sheep-result-in 240ms ease-out both}
@keyframes sheep-result-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:700px){
 .board-overlay{padding:14px 12px}
 .board-overlay .result-mark{width:34px;height:34px}
 .board-overlay .result-kicker{margin:9px 0 7px;font-size:9px;letter-spacing:1px}
 .board-overlay h2{font-size:clamp(18px,5vw,24px);line-height:1.35;margin:0 0 14px}
 .board-overlay #result-note{display:none}
 .board-overlay .primary-button{min-height:38px;min-width:140px;padding:8px 18px}
 .board-overlay .restart-button{padding:9px 0 0;min-height:32px}
}
@media(prefers-reduced-motion:reduce){.sheep-tile::after{transition:none}}

/* Local, short-lived pick and triple feedback; never intercept game input. */
.sheep-fx{position:absolute;z-index:30;pointer-events:none;color:var(--shape-color,#d4cba9);will-change:transform,opacity}
.sheep-pick-ring{border:2px solid #f8f0d8;border-radius:12px;box-shadow:0 0 12px #fff3}
.sheep-match-ring{border:3px solid color-mix(in srgb,currentColor 55%,#fff4d4);border-radius:50%;box-shadow:0 0 18px #ffe8ae33}
.sheep-match-spark{width:9px;height:9px;background:color-mix(in srgb,currentColor 30%,#fff4d4);clip-path:polygon(50% 0,62% 36%,100% 50%,62% 64%,50% 100%,38% 64%,0 50%,38% 36%);box-shadow:0 0 6px #fff3}
.sheep-match-spark:nth-of-type(even){background:var(--shape-color)}
.sheep-match-count{font:600 21px/1 var(--sans,sans-serif);letter-spacing:-.04em;color:#fff1ca;text-shadow:0 2px 8px #000b;white-space:nowrap}
@media(prefers-reduced-motion:reduce){.sheep-fx{display:none}}
