/* Shabbat Runner · мир игры: небо, город, название, спрайты, стол */
.sr-px { image-rendering: pixelated; }

/* сцена: закат (по умолчанию) или ночь */
.sr-scene { position: relative; overflow: hidden; background: var(--sr-sky-day); }
.sr-scene--night { background: var(--sr-sky-night); }
.sr-scene--card { border-radius: 14px; }
.sr-scene--panel { border-radius: var(--sr-radius-card); }
.sr-scene__layer { position: absolute; inset-inline: 0; width: 100%; pointer-events: none; }
.sr-scene__skyline, .sr-scene__windows { bottom: 0; }
.sr-scene__stars { top: 0; opacity: .9; }
.sr-scene__sun {
  position: absolute; width: 72px; height: 72px; border-radius: 50%; background: var(--sr-sun);
  box-shadow: 0 0 0 10px rgba(255, 224, 138, .22), 0 0 46px 14px rgba(255, 190, 110, .55); pointer-events: none;
}
.sr-scene__sun--sm { width: 56px; height: 56px; }
.sr-scene__deco { position: absolute; }

/* название игры: единственное место с пиксельным шрифтом, всегда латиница и слева направо */
.sr-title {
  font-family: var(--sr-font-pixel); font-weight: 400; font-style: normal; font-synthesis: none;
  color: var(--sr-arcade); letter-spacing: .5px; line-height: 1.5; direction: ltr;
  text-shadow: 0 2px 0 var(--sr-arcade-shadow), 0 0 14px rgba(255, 212, 92, .45);
}

/* раввин: спрайт 20x26, только целые кратные */
.sr-rabbi { width: 60px; height: 78px; flex: none; }
.sr-rabbi--2 { width: 40px; height: 52px; }
.sr-rabbi--4 { width: 80px; height: 104px; }

/* реплика раввина */
.sr-bubble {
  padding: 10px 12px; border-radius: 16px; background: var(--sr-surface); color: var(--sr-ink);
  font-size: 14px; font-weight: 800; line-height: 1.3;
}
.sr-bubble--to-end { border-end-end-radius: 4px; }      /* хвост в сторону раввина, раввин в конце строки */

/* предмет на светлой подложке: обучение, карточки, сайт */
.sr-thing { display: flex; align-items: center; justify-content: center; flex: none; width: 64px; height: 64px; }
.sr-thing--holy { border-radius: 50%; background: var(--sr-holy-tile); border: 2px solid var(--sr-holy-edge); }
.sr-thing--week { border-radius: 14px; background: var(--sr-week-tile); border: 2px dashed var(--sr-week-edge); }
.sr-thing--sm { width: 46px; height: 46px; }
.sr-thing img { width: 48px; height: 48px; }
.sr-thing--sm img { width: 32px; height: 32px; }

/* стол: шесть мест */
.sr-table { display: flex; gap: 8px; justify-content: center; }
.sr-slot {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--sr-slot); border: 2px solid var(--sr-slot-edge);
}
.sr-slot img { width: 32px; height: 32px; }
.sr-slot:not(.is-on) { background: var(--sr-sand); border: 2px dashed var(--sr-slot-off-edge); }
.sr-slot:not(.is-on) img { opacity: .22; filter: grayscale(1); }
.sr-slot.is-new { animation: sr-pop .35s ease-out; }
@keyframes sr-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
