/* The session header shares one layout in the site and Telegram Mini App. */
.next-race-strip { grid-template-columns: minmax(0, 1fr) auto; }
.next-race-strip__info { display: flex; gap: 18px; align-items: center; min-width: 0; }
.next-race-strip__map { flex: 0 0 126px; width: 126px; }
.next-race-strip__main { flex: 1; }
.next-race-strip__title { white-space: normal; line-height: 1.5; }
.next-race-strip__time, body.is-mini-app .next-race-strip__time {
  display: flex; justify-content: center; gap: 7px; min-width: 0; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; letter-spacing: normal;
}
.session-clock__unit { display: grid; gap: 5px; width: 58px; text-align: center; }
.next-race-strip__time.is-pending .session-clock__unit { display: none; }
.next-race-strip__time.is-pending::before { content: "Время уточняется"; padding: 12px 15px; border: 1px solid #41414b; border-radius: 8px; background: #191920; color: #d0d0d0; font: 650 12px/1.4 "Segoe UI", sans-serif; }
.session-clock__label { font: 700 9px/1.4 "Segoe UI", sans-serif; letter-spacing: .12em; color: #ee6569; }
.session-clock__face {
  --face-height: 52px;
  position: relative; height: var(--face-height); perspective: 260px;
  border: 1px solid #41414b; border-radius: 8px; background: #191920;
  font: 750 31px/var(--face-height) "WallpaperUI", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums; color: #f6f6f8;
}
.session-clock__face.has-long-value { font-size: 23px; }
.session-clock__face::after { content: ""; position: absolute; z-index: 5; top: 50%; left: 0; right: 0; height: 1px; background: #09090d; }
.session-clock__half, .session-clock__leaf { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; backface-visibility: hidden; }
.session-clock__half b, .session-clock__leaf b { display: block; height: var(--face-height); font: inherit; }
.session-clock__half--top, .session-clock__leaf--top { top: 0; border-radius: 7px 7px 0 0; background: #21212a; }
.session-clock__half--bottom, .session-clock__leaf--bottom { bottom: 0; border-radius: 0 0 7px 7px; background: #191920; }
.session-clock__half--bottom b, .session-clock__leaf--bottom b { transform: translateY(-50%); }
.session-clock__leaf { display: none; z-index: 3; }
.session-clock__leaf--top { transform-origin: center bottom; }
.session-clock__leaf--bottom { transform-origin: center top; transform: rotateX(90deg); }
.is-flipping .session-clock__leaf { display: block; }
.is-flipping .session-clock__leaf--top { animation: session-fold-up 220ms ease-in forwards; }
.is-flipping .session-clock__leaf--bottom { animation: session-fold-down 220ms 220ms ease-out forwards; }
@keyframes session-fold-up { to { transform: rotateX(-90deg); } }
@keyframes session-fold-down { to { transform: rotateX(0); } }
@media (max-width: 1020px) {
  .next-race-strip__info { gap: 12px; }
  .next-race-strip__map { flex-basis: 90px; width: 90px; height: 56px; }
}
@media (max-width: 680px) {
  .next-race-strip { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .next-race-strip__time { justify-self: center; }
}
body.is-mini-app .next-race-strip { grid-template-columns: minmax(0, 1fr); gap: 12px; }
body.is-mini-app .next-race-strip__time { justify-self: center; }
@media (prefers-reduced-motion: reduce) { .session-clock__leaf { animation: none !important; display: none !important; } }
