/* Odd Stripes — a herd of buttons, each one a small SVG animal; the dock holds the setting sun. */

.zb-herd { display: grid; gap: 6px; justify-content: center; align-content: center; direction: ltr; margin: auto; -webkit-user-select: none; user-select: none; }
.fa-stage { display: flex; padding: 8px; overflow: hidden; }

.zb-cell { display: block; padding: 0; border: 2px solid rgba(232, 176, 74, 0.22); border-radius: 16px; background: #5C7A45; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform 0.12s, opacity 0.25s, border-color 0.2s; animation: zb-in 0.28s both; }
.zb-cell:nth-child(odd) { background: #668549; }
.zb-cell svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.zb-cell.is-flip svg { transform: scaleX(-1); }
.zb-cell:active { transform: scale(0.95); }
.zb-cell:focus-visible { outline: 3px solid var(--w-cream); outline-offset: 1px; }
.zb-cell.is-no { animation: zb-no 0.36s; opacity: 0.38; border-color: transparent; cursor: default; }
.zb-cell.is-dim { opacity: 0.3; }
.zb-cell.is-found { border-color: var(--w-ochre); background: var(--w-sunset); box-shadow: 0 0 0 4px rgba(242, 140, 40, 0.35); animation: zb-hop 0.6s; z-index: 2; position: relative; }

@keyframes zb-in { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes zb-no { 0%, 100% { transform: none; } 25% { transform: translateX(-5px) rotate(-3deg); } 75% { transform: translateX(5px) rotate(3deg); } }
@keyframes zb-hop { 0% { transform: none; } 30% { transform: translateY(-14%) scale(1.12) rotate(-5deg); } 55% { transform: translateY(0) scale(1.05); } 75% { transform: translateY(-6%) scale(1.08) rotate(4deg); } 100% { transform: scale(1.04); } }

/* The clock is a sun crossing the dock: when it reaches the end, the day is over. */
.zb-time { position: relative; flex: 1; max-width: 520px; height: 14px; margin: 0 16px; border-radius: 8px; background: var(--lapis-deep); border: 1px solid var(--hairline); direction: ltr; }
.zb-time__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--w-clay), var(--w-sunset) 55%, var(--w-ochre)); }
.zb-time__sun { position: absolute; top: 50%; left: 100%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFE3A1, var(--w-ochre) 55%, var(--w-sunset)); box-shadow: 0 0 12px rgba(242, 160, 61, 0.7); }
.zb-time.is-low .zb-time__sun { background: radial-gradient(circle at 40% 35%, #F8C987, var(--w-sunset) 50%, var(--w-clay)); animation: zb-low 0.6s infinite alternate; }
@keyframes zb-low { to { box-shadow: 0 0 18px 4px rgba(196, 83, 45, 0.9); } }

@media (prefers-reduced-motion: reduce) { .zb-cell, .zb-cell.is-found, .zb-cell.is-no, .zb-time.is-low .zb-time__sun { animation: none; } }

@media (max-width: 430px) { body[data-game="zebra"] .fa-title { font-size: 1rem; } }
html[lang="ar"] body[data-game="zebra"] .fa-title { font-size: 0.95rem; }
@media (max-width: 360px) {
  body[data-game="zebra"] .fa-bar { gap: 5px; }
  body[data-game="zebra"] .fa-title { font-size: 0.8rem; }
  body[data-game="zebra"] .fa-chip { min-width: 0; padding-left: 8px; padding-right: 8px; }
}
@media (max-height: 600px) {
  body[data-game="zebra"] .kit-start .fa-panel { padding: 14px 18px; }
  body[data-game="zebra"] .kit-start .fa-panel__art { margin: 0 0 6px; }
  body[data-game="zebra"] .kit-start .kit-art { max-width: 104px; border-radius: 12px; }
  body[data-game="zebra"] .kit-start .fa-panel__title { margin: 2px 0 4px; font-size: 1.4rem; }
  body[data-game="zebra"] .kit-start .fa-panel__text { margin-bottom: 10px; font-size: 0.88rem; line-height: 1.35; }
  body[data-game="zebra"] .kit-start .fa-panel__body { margin-bottom: 12px; }
  body[data-game="zebra"] .kit-start .fa-howto { gap: 5px; margin: 0; font-size: 0.88rem; line-height: 1.3; }
}
