/* 0.60 winter «Зимний марафон» (public/winter-marathon.js): the trail's window — a night over the snowy hills */
.wm-modal.stats-modal { padding: 20px; }
.wm-page {
  position: relative; display: flex; flex-direction: column; width: min(820px, 100%); max-height: calc(100dvh - 40px); overflow: hidden;
  border-radius: 18px; border: 1px solid rgba(159, 216, 255, .28); color: #e8f1ff; box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  background: radial-gradient(120% 90% at 50% 0%, #1d2d55 0%, #121c38 55%, #0b1226 100%);
}
.wm-top { display: flex; align-items: center; gap: 10px; padding: 14px 14px 6px 18px; }
.wm-title { flex: 1; margin: 0; font: 700 24px/1.2 'DPW Season', Georgia, 'Times New Roman', serif; color: #f2f7ff; letter-spacing: .01em; }
.wm-close {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .35);
  color: #e8f1ff; font-size: 24px; line-height: 1; cursor: pointer;
}
.wm-close:focus-visible { outline: 2px solid #9fd8ff; outline-offset: 2px; }
.wm-body { padding: 4px 18px 20px; overflow: auto; min-height: 0; }
.wm-note { padding: 50px 10px; text-align: center; color: #b9c9e6; }
.wm-pic { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: #0b1430; }
.wm-svg { display: block; width: 100%; height: auto; }
.wm-flag-l rect { fill: rgba(11, 20, 48, .78); stroke: rgba(255, 255, 255, .25); stroke-width: .5px; }
.wm-flag-l.on rect { fill: #ffd36b; stroke: none; }
.wm-flag-t { font: 700 6.6px/1 system-ui, sans-serif; fill: #c9d6ee; }
.wm-flag-l.on .wm-flag-t { fill: #2b1d05; }
.wm-lamp.on .wm-halo { animation: wm-flicker 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s); transform-box: fill-box; transform-origin: center; }
@keyframes wm-flicker { 0%, 100% { opacity: .95; } 45% { opacity: .7; } 70% { opacity: 1; } }
.wm-aurora { animation: wm-aurora 14s ease-in-out infinite alternate; }
@keyframes wm-aurora { from { transform: translateX(-6px); opacity: .85; } to { transform: translateX(6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wm-lamp.on .wm-halo, .wm-aurora { animation: none; } }
.wm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.wm-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 16px; background: rgba(159, 216, 255, .12); border: 1px solid rgba(159, 216, 255, .22); font: 600 14px/1.25 system-ui, sans-serif; }
.wm-chip.big { background: #ffd36b; border-color: #ffd36b; color: #2b1d05; font-weight: 800; }
.wm-chip.mine { background: rgba(255, 255, 255, .08); }
.wm-next { margin: 6px 0; font: 600 15px/1.35 system-ui, sans-serif; color: #f2f7ff; }
.wm-hint { margin: 8px 0; color: #b9c9e6; font-size: 14px; line-height: 1.4; }
.wm-hint.pv { color: #ffd36b; }
.wm-how { margin: 8px 0 10px; color: #b9c9e6; font-size: 14px; line-height: 1.45; }
.wm-tonight { position: relative; margin: 8px 0; height: 30px; border-radius: 15px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.wm-tonight > span { position: relative; z-index: 1; display: block; padding: 0 12px; font: 600 13px/30px system-ui, sans-serif; }
.wm-tonight > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ff9a2a, #ffd36b); opacity: .55; }
.wm-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.wm-h { margin: 10px 0 6px; font: 700 15px/1.3 system-ui, sans-serif; color: #9fd8ff; }
.wm-list, .wm-stations { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.wm-list li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.wm-list li.mine { box-shadow: inset 3px 0 0 #ffd36b; }
.wm-list b { font-weight: 700; overflow-wrap: anywhere; }
.wm-list span { color: #b9c9e6; font-size: 13px; }
.wm-stations li { display: flex; align-items: center; gap: 8px; min-height: 30px; color: #8a97b2; }
.wm-stations li.on { color: #f2f7ff; font-weight: 700; }
.wm-stations i { width: 12px; height: 12px; border-radius: 3px; background: #4b5568; flex: none; }
.wm-stations li.on i { background: var(--c); }
.wm-stations small { margin-left: auto; color: #8a97b2; font-weight: 600; }
@media (max-width: 640px) {
  .wm-modal.stats-modal { padding: 8px; }
  .wm-page { max-height: calc(100dvh - 16px); border-radius: 14px; }
  .wm-top { padding: 10px 10px 4px 14px; }
  .wm-title { font-size: 21px; }
  .wm-body { padding: 4px 12px 16px; }
  .wm-cols { grid-template-columns: 1fr; gap: 4px; }
  .wm-flag-l { display: none; }
}
