/* Finite feedback for interaction; sparse ambient motion is decorative only. */
body[data-view=home] .home-copy,body[data-view=home] .station-grid,
body[data-view=orders] .order-board,.result-star{animation:none}

/* Quiet eight-second breath/sway, applied to the supplied mascot as one image. */
.home-benny .benny-art{transform-origin:50% 94%;animation:benny-idle 8s ease-in-out infinite}
@keyframes benny-idle{
  0%,12%,100%{transform:translateY(0) rotate(0)}
  43%{transform:translateY(-3px) rotate(-.45deg)}
  66%{transform:translateY(-1px) rotate(.25deg)}
  84%{transform:translateY(0) rotate(0)}
}
body:has(dialog[open]) .home-benny .benny-art,
body.ambient-asleep .home-benny .benny-art,.home-benny.idle-resting .benny-art{animation-play-state:paused!important}

/* The sunlight now drifts a few pixels; the underlying illustration stays put. */
@keyframes window-warmth{0%,100%{opacity:.12;translate:-4px 0}50%{opacity:.3;translate:6px 0}}
@keyframes oven-warmth{0%,100%{opacity:.18}45%{opacity:.4}75%{opacity:.24}}
.sun-motes{position:absolute;left:37%;top:7%;width:19%;height:37%;pointer-events:none;display:none}
body:is([data-view=home],[data-view=orders]) .sun-motes{display:block}
.sun-mote{position:absolute;width:4px;height:4px;border-radius:50%;background:#fff9ce;box-shadow:0 0 5px #fff6ca80;opacity:0;animation:mote-drift 11s ease-in-out infinite}
.sun-mote:nth-child(1){left:15%;top:45%;animation-delay:-2s}
.sun-mote:nth-child(2){left:71%;top:12%;width:3px;height:3px;animation-delay:-7s;animation-duration:13s}
.sun-mote:nth-child(3){left:49%;top:74%;width:3px;height:3px;animation-delay:-5s;animation-duration:12s}
@keyframes mote-drift{0%,100%{opacity:0;translate:0 6px}20%{opacity:.4}65%{opacity:.35}90%{opacity:0;translate:8px -15px}}
.scene-asleep .sun-mote,body:has(dialog[open]) .sun-mote{animation-play-state:paused!important}
.scene-art.art-unavailable .sun-motes{display:none}

/* Keep hit areas anchored. Only the decorative food/label face lifts. */
.station-art>div{transition:translate 180ms ease-out;pointer-events:none}
.station-card:focus-visible .station-art>div{translate:0 -3px}
.primary:focus-visible>.btn-content{box-shadow:inset 0 2px 0 #eef2c6}
@media(hover:hover) and (pointer:fine){
  .station-card:hover:not(:disabled) .station-art>div{translate:0 -3px}
  .primary:hover:not(:disabled)>.btn-content{transform:translateY(-1px)}
}
.station-card:active:not(:disabled) .station-art>div{translate:0 1px;transition-duration:80ms}
.primary:active:not(:disabled)>.btn-content{transform:translateY(2px)}

:is(.toolbar,.equation-actions,.group-controls,.work-title,.cut-control-row,.box-options,.actions)>button:not(.primary):not(.number-field),.order-badge{
  transform:none!important;
}
:is(.toolbar,.equation-actions,.group-controls,.work-title,.cut-control-row,.box-options,.actions)>button:not(.primary)>.btn-content,.order-badge>.btn-content,.order-grid .btn-content{transition:translate 120ms ease-out}
:is(.toolbar,.equation-actions,.group-controls,.work-title,.cut-control-row,.box-options,.actions)>button:not(.primary):active>.btn-content,.order-badge:active>.btn-content,.order-grid button:active>.btn-content{translate:0 1px}
.order-grid button{--rest-angle:-1deg;transform:rotate(var(--rest-angle))!important;transition:box-shadow 140ms ease-out,background-color 140ms ease-out}
.order-grid button:nth-child(3n+2){--rest-angle:1deg}.order-grid button:nth-child(3n){--rest-angle:-.4deg}
@media(hover:hover) and (pointer:fine){
  .order-grid button:hover{box-shadow:inset 0 2px #fff,0 2px 0 #fff2cf,0 5px 0 #bd935d,0 12px 12px #65472f4d}
  .order-grid button:hover>.btn-content{translate:0 -1px}
}
.order-grid button:active>.btn-content{translate:0 1px}
button:disabled>.btn-content,.station-card:disabled .bake-face{transition:none!important;translate:none;transform:none!important}
.station-card:disabled .station-art>div{translate:none;transition:none}
.drag-cookie{filter:drop-shadow(0 10px 5px #53371f66)!important}
.pair-slot::before{transition:filter 130ms ease-out}

/* Three brief decorative rays, away from equations and instruction text. */
.motion-sparkles{position:absolute;left:50%;top:0;width:62px;height:26px;margin-left:-31px;pointer-events:none;z-index:2}
.motion-sparkles i{position:absolute;display:block;width:8px;height:12px;background:#f4c65e;clip-path:polygon(50% 0,63% 36%,100% 50%,63% 64%,50% 100%,37% 64%,0 50%,37% 36%)}
.motion-sparkles i:nth-child(1){left:1px;top:7px;rotate:-18deg}
.motion-sparkles i:nth-child(2){left:26px;top:-2px;background:#77a27b;width:7px;height:10px}
.motion-sparkles i:nth-child(3){right:1px;top:7px;rotate:18deg}
.result-art>.motion-sparkles{top:13px;left:78%;width:76px}

@media(max-width:440px){
  @keyframes benny-idle{0%,12%,100%{transform:translateY(0) rotate(0)}43%{transform:translateY(-2px) rotate(-.45deg)}66%{transform:translateY(-1px) rotate(.25deg)}84%{transform:translateY(0) rotate(0)}}
}
body[data-motion=reduced] :is(.sun-motes,.motion-sparkles){display:none}
body[data-motion=reduced] .station-art>div{translate:none!important}
@media(prefers-reduced-motion:reduce){
  body[data-motion=system] :is(.sun-motes,.motion-sparkles){display:none}
  body[data-motion=system] .station-art>div{translate:none!important}
}
