/* Limonade: home tile, the menu picture, the animals at the table and the glasses (buttons, one or two rows, 44 px wide or
   more), a picked glass lifted, a pour tilting the glass it came from. Shared look lives in
   css/style.css. */

#tile-schenken .tile-art { display: flex; align-items: center; justify-content: center; }
.sk-tile-svg { width: 100%; height: 100%; max-width: 108px; display: block; }
.sk-menu-art { display: flex; justify-content: center; margin: 4px auto 8px; }
.sk-menu-art svg { width: min(100%, 220px); height: auto; display: block; }
.sk-ov { display: inline-flex; width: 180px; height: 120px; }
.sk-ov svg { width: 100%; height: 100%; }
.sk-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }

.sk-hud .btn.icon:disabled { opacity: 0.4; }
#sk-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 12px;
}
.sk-side { flex: none; width: min(100%, 560px); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sk-status { margin: 0; min-height: 2.6em; display: flex; align-items: center; justify-content: center; padding: 0 10px; text-align: center; font-weight: var(--bz-weight-head); color: var(--bz-ink); text-wrap: balance; }
.sk-status.why { color: var(--bz-group-ink); }
.sk-count { margin: 0; font-size: var(--bz-text-s); font-weight: var(--bz-weight-head); color: var(--bz-ink-soft); }
#sk-board { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.sk-glasses {
  --sk-w: 60px;
  --sk-cols: 5;
  display: grid;
  grid-template-columns: repeat(var(--sk-cols), var(--sk-w));
  justify-content: center;
  gap: 10px;
  padding-top: 18px;
}
.sk-glass {
  width: var(--sk-w);
  height: calc(var(--sk-w) * 2.5);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.15s ease;
  touch-action: manipulation;
}
.sk-glass svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sk-glass.picked { transform: translateY(-16px); }
.sk-glass.picked svg { filter: drop-shadow(0 6px 0 var(--bz-group-acc)); }
.sk-glass:focus-visible { outline: 3px solid var(--bz-focus); outline-offset: 3px; }
.sk-glass.tilt { animation: sk-tilt 0.4s ease 1; }
/* a pour that cannot happen: the glass it would go into shakes (no shake with reduced motion) */
.sk-glass.nope { animation: sk-nope 0.4s ease 1; }
#sk-undo.sk-help, #sk-restart.sk-help { box-shadow: 0 0 0 4px #f08a2c; animation: sk-help 1.1s ease-in-out infinite; }
@keyframes sk-help { 50% { box-shadow: 0 0 0 7px rgba(240, 138, 44, 0.45); } }
@media (prefers-reduced-motion: reduce) { #sk-undo.sk-help, #sk-restart.sk-help { animation: none; } }
@keyframes sk-nope { 0%, 100% { translate: 0 0; } 25% { translate: -6px 0; } 75% { translate: 6px 0; } }
@keyframes sk-tilt { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-14deg) translateY(-8px); } }

@media (orientation: landscape) and (max-height: 520px) {
  #screen-schenken { flex-direction: row; }
  #sk-stage { flex-direction: row-reverse; align-items: stretch; padding: 4px 8px 6px 0; gap: 8px; }
  .sk-side { width: auto; flex: 0 1 190px; min-width: 110px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sk-glass { transition: none; }
  .sk-glass.tilt, .sk-glass.nope { animation: none; }
}

/* The animals at the table (Mark, 2 Dec 2026): seats side by side make one table; decoration only
   (aria-hidden). The moves are CSS on the drawing's groups; with reduced motion only the faces and
   poses change. */
.sk-table {
  --sk-seat: 56px;
  --sk-cols: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: calc(var(--sk-seat) * var(--sk-cols));
  max-width: 100%;
  margin-top: 4px;
  clip-path: inset(-40px -12px 0 -12px round 0 0 10px 10px);
}
.sk-table:empty { display: none; }
.sk-seat { position: relative; flex: none; width: var(--sk-seat); height: var(--sk-seat); }
.sk-seat svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sk-seat .sk-animal, .sk-seat .sk-head { transform-box: view-box; }
.sk-seat .sk-animal { transform-origin: 50% 80%; }
.sk-seat .sk-head { transform-origin: 50% 62%; }
.sk-seat .sk-cup-fill, .sk-seat .sk-heart { transform-box: fill-box; transform-origin: 50% 100%; }
.sk-seat[data-mood='curious'] .sk-head { animation: sk-wonder 0.9s ease 1; }
.sk-seat[data-mood='drink'] .sk-head { animation: sk-sip 0.45s ease-in-out 2; }
.sk-seat[data-mood='drink'] .sk-cup-fill { animation: sk-drain 0.9s ease-in forwards; }
.sk-seat[data-mood='yum'] .sk-animal { animation: sk-hop 0.6s ease 1; }
.sk-seat[data-mood='yum'] .sk-heart { animation: sk-heart 0.8s ease-out 1; }
.sk-seat[data-mood='party'] .sk-animal { animation: sk-dance 1.1s ease-in-out infinite; }
.sk-seat[data-mood='party'] .sk-sparkles { animation: sk-twinkle 1.1s ease-in-out infinite; }
@keyframes sk-wonder { 0%, 100% { transform: rotate(0); } 30%, 70% { transform: rotate(-12deg); } }
@keyframes sk-sip { 50% { transform: translate(1px, 1.2px); } }
@keyframes sk-drain { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes sk-hop { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(1px) scale(1.04, 0.94); } 60% { transform: translateY(-6px) scale(0.98, 1.03); } }
@keyframes sk-heart { from { transform: translateY(6px) scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sk-dance { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) translateY(-2px); } }
@keyframes sk-twinkle { 50% { opacity: 0.35; } }
/* the copy of a finished glass on its way to the table, and the glass filling up again */
.sk-fly { position: fixed; z-index: 30; pointer-events: none; transform-origin: 0 0; }
.sk-fly svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sk-glass .sk-fill { transform-box: fill-box; transform-origin: 50% 100%; }
.sk-glass.refill .sk-fill { animation: sk-refill 0.5s ease-out 1; }
@keyframes sk-refill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* the win card: the stars, and the party under them */
.ov-art .sk-ov-end { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.ov-art .sk-ov-stars { display: flex; gap: 6px; }
.ov-art .sk-ov-table { --sk-n: 3; display: grid; grid-template-columns: repeat(var(--sk-n), minmax(0, 48px)); justify-content: center; width: min(100%, calc(48px * var(--sk-n))); }
.ov-art .sk-ov-table .sk-seat { width: 100%; height: auto; aspect-ratio: 1; }

@media (orientation: landscape) and (max-height: 520px) {
  .ov-art .sk-ov-end { flex-direction: row; justify-content: center; gap: 10px; }
  .ov-art .sk-ov-table { grid-template-columns: repeat(var(--sk-n), minmax(0, 40px)); flex: none; width: min(calc(40px * var(--sk-n)), 55%); }
}
@media (prefers-reduced-motion: reduce) {
  .sk-seat .sk-animal, .sk-seat .sk-head, .sk-seat .sk-cup-fill, .sk-seat .sk-heart, .sk-seat .sk-sparkles, .sk-glass.refill .sk-fill { animation: none !important; }
}
