/* Свежесть данных (js/mods/fresh.js) и тост «Сайт обновился» (js/pwa.js).
   Префиксы: fr- — подпись «Данные на …» и плашка «Нет связи», wn- — строка «С прошлого раза», upd- — тост. */
.fr-svg { width: 1em; height: 1em; flex: none; }

/* ---------- «Данные на 23.11, 21:40» под табло последнего матча ---------- */
.fr-stamp {
  display: flex; align-items: center; gap: 6px; max-width: 440px; margin: 10px 0 0;
  font-size: 12.5px; line-height: 1.4; color: var(--muted);
  animation: frIn .5s ease .55s both;   /* табло «выезжает» анимацией ядра — подпись появляется следом */
}
.fr-stamp .fr-svg { font-size: 13px; color: var(--muted-2); }
/* без связи: заметная, но спокойная плашка — тёплая рамка, без красного */
.fr-stamp--off {
  align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 14px;
  background: rgba(255, 184, 119, .08); border: 1px solid rgba(255, 184, 119, .38);
  font-size: 14px; line-height: 1.45; color: var(--text); text-align: left;
}
.fr-stamp--off .fr-svg { font-size: 18px; margin-top: 1px; color: var(--ice); }
.fr-stamp--off b { color: var(--ice); font-weight: 700; }
/* плашка стоит над табло (fresh.js) — отступ снизу, а не сверху */
.fr-stamp--off { margin: 0 0 14px; }
@keyframes frIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 860px) {
  .fr-stamp { justify-content: center; max-width: none; }
  .fr-stamp--off { justify-content: flex-start; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .fr-stamp { max-width: 460px; margin-left: auto; margin-right: auto; }
}

/* ---------- «С прошлого раза: …» — компьютер: вверху главной; телефон: под табло (.wn--hero) ---------- */
.wn { padding: 12px clamp(16px, 4vw, 40px) 0; }
.wn__in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; max-width: 1120px; padding: 5px 4px 5px 12px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(224, 96, 48, .13), rgba(255, 255, 255, .03) 70%);
  border: 1px solid rgba(242, 137, 74, .3);
  font-size: 14px; line-height: 1.35; color: var(--muted);
}
.wn__head { flex: none; display: flex; align-items: center; gap: 8px; margin: 0; }
.wn__head b { color: var(--text); font-weight: 600; white-space: nowrap; }
.wn__ico { flex: none; display: flex; font-size: 16px; color: var(--jupiter); }
/* пункты — «таблетки» под палец (44 px), без красных счётчиков */
.wn__list { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wn__list > li { flex: none; display: flex; }
.wn__a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(242, 137, 74, .26); background: rgba(255, 255, 255, .035);
  color: var(--ice); font-weight: 600; white-space: nowrap; text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: border-color .2s, background .2s;
}
.wn__a:hover { border-color: rgba(242, 137, 74, .6); background: rgba(224, 96, 48, .1); }
.wn__a:focus-visible, .wn__x:focus-visible { outline: 2px solid var(--jupiter); outline-offset: 2px; }
.wn__x {
  flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted-2); font-size: 16px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wn__x:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
/* телефон: полоса в hero под табло — заголовок с крестиком сверху, пункты одним рядом с прокруткой вбок */
.wn--hero { padding: 0; margin: 12px auto 0; max-width: 560px; text-align: left; }
.wn--hero .wn__in {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 4px; padding: 2px 2px 8px 12px; font-size: 13.5px;
}
.wn--hero .wn__head { grid-column: 1; grid-row: 1; }
.wn--hero .wn__x { grid-column: 2; grid-row: 1; margin: 0; }
.wn--hero .wn__list {
  grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
  margin: -4px -2px -4px -12px; padding: 4px 12px; scroll-padding: 0 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}   /* отступы 4 px — рамка фокуса с клавиатуры не обрезается прокруткой */
.wn--hero .wn__list::-webkit-scrollbar { display: none; }
/* не всё поместилось — справа мягкое затухание (fresh.js снимает его, когда долистали) */
.wn--hero .wn__list--more {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
/* куда привела строка: короткая подсветка новости или таблицы */
.wn-flash { animation: wnFlash 1.6s ease-out 1; }
@keyframes wnFlash { 0%, 35% { box-shadow: 0 0 0 2px var(--jupiter); } 100% { box-shadow: 0 0 0 2px rgba(242, 137, 74, 0); } }

/* ---------- тост «Сайт обновился» (js/pwa.js) ---------- */
/* Висит, пока не нажмут «Обновить» или ✕, поэтому на телефоне стоит ВЫШЕ облачка «Кто мы?» и гол-сирены
   (сирену нажимают чаще всего) — не закрывает ни их, ни мини-плеер песен */
.upd-toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 9998;
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(92vw, 420px); padding: 8px 8px 8px 16px;
  border-radius: 14px; background: #1b130e; color: #f3ede7; border: 1px solid rgba(242, 137, 74, .5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5); font: 500 14px/1.4 "Golos Text", system-ui, sans-serif;
  animation: updIn .3s ease-out both;
}
.upd-toast__t { flex: 1 1 auto; }
.upd-toast__go {
  flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--grad-jupiter); color: #1a0e05; font: 700 14px/1 "Golos Text", system-ui, sans-serif;
}
.upd-toast__x {
  flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: #c3b3a4; font-size: 15px; cursor: pointer;
}
.upd-toast__x:hover { color: #f3ede7; background: rgba(255, 255, 255, .06); }
@keyframes updIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* телефон: над «Кто мы?» (низ облачка — 144 px, верх — 178 px, под палец — до 184 px), сирена и мини-плеер ниже */
@media (max-width: 860px) {
  .upd-toast, body.mu-mini-on .upd-toast { bottom: calc(194px + env(safe-area-inset-bottom, 0px)); }
}
body.menu-open .upd-toast { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .fr-stamp, .upd-toast, .wn-flash { animation: none; }
}
