/* 0.60 spring «Весенний переполох · Ледоход» (public/spring-rush.js): a river in spring flood — the sky, the water, the
   floes as big buttons; phones first (two floes to a row), reduced motion: nothing drifts or splashes */
.sr-season { margin: 4px 0 12px; padding: 10px; border-radius: 14px; background: linear-gradient(180deg, rgba(90, 180, 230, .18), rgba(255, 143, 184, .06)); border: 1px solid rgba(150, 210, 255, .3); }
.sr-season-l { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8fd0ff; margin-bottom: 6px; }
.sr-entry-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.sr-entry-btn:hover, .sr-entry-btn:focus-visible { border-color: #8fd0ff; background: rgba(255, 255, 255, .08); }
.sr-entry-ico svg { width: 34px; height: 34px; display: block; }
.sr-entry-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sr-entry-t small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }

.sr-board { position: fixed; inset: 0; z-index: 2650; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(4, 14, 26, .72); }
.sr-board.hidden { display: none; }
.sr-scene {
  position: relative; display: flex; flex-direction: column; width: min(940px, 100%); max-height: calc(100dvh - 36px); overflow: hidden; border-radius: 18px; color: #0f2436;
  background: linear-gradient(180deg, #bfe6ff 0%, #e6f6ff 26%, #5fb4e4 27%, #3f95c9 60%, #2f7db1 100%); box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}
.sr-sky { position: absolute; inset: 0 0 auto 0; height: 27%; pointer-events: none; overflow: hidden; }
.sr-cloud { position: absolute; top: 18%; left: 8%; width: 120px; height: 34px; border-radius: 20px; background: #fff; opacity: .5; box-shadow: 40px -12px 0 6px #fff, 80px 0 0 -2px #fff; animation: sr-cloud 60s linear infinite alternate; }
.sr-cloud.c2 { top: 40%; left: 62%; transform: scale(.7); animation-duration: 80s; }
@keyframes sr-cloud { to { translate: 140px 0; } }
.sr-river { position: absolute; inset: 27% 0 0 0; pointer-events: none; background: repeating-linear-gradient(170deg, transparent 0 22px, rgba(255, 255, 255, .12) 22px 24px); background-size: 200% 200%; animation: sr-flow 9s linear infinite; }
@keyframes sr-flow { to { background-position: 120px 60px; } }
.sr-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px 4px 18px; }
.sr-title { flex: 0 1 auto; font: 400 26px/1.15 'DPW Season', Georgia, serif; color: #134a72; }
.sr-where { flex: 1; font-weight: 700; color: #1f5f8b; }
.sr-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(15, 36, 54, .2); background: rgba(255, 255, 255, .75); color: #0f2436; font-size: 24px; line-height: 1; cursor: pointer; }
.sr-time { position: relative; z-index: 1; height: 5px; margin: 0 18px; border-radius: 3px; background: rgba(255, 255, 255, .35); visibility: hidden; }
.sr-time.on { visibility: visible; }
.sr-time > i { display: block; height: 100%; width: 0; border-radius: 3px; background: #ffd36b; transition: width .2s linear; }
.sr-main { position: relative; z-index: 1; padding: 8px 18px 18px; overflow: auto; min-height: 0; }
.sr-x:focus-visible, .sr-go:focus-visible, .sr-rn:focus-visible, .sr-floe:focus-visible, .sr-end:focus-visible { outline: 3px solid #ffd36b; outline-offset: 2px; }

.sr-intro { background: rgba(255, 255, 255, .88); border-radius: 14px; padding: 14px 16px; }
.sr-h { margin: 4px 0 8px; font: 400 24px/1.2 'DPW Season', Georgia, serif; color: #134a72; }
.sr-p { margin: 0 0 8px; line-height: 1.45; }
.sr-rules { margin: 0 0 10px; padding-left: 20px; line-height: 1.5; }
.sr-evs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 12px; }
.sr-rounds { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; font-weight: 700; }
.sr-rn { min-width: 44px; min-height: 44px; border-radius: 22px; border: 1px solid rgba(15, 36, 54, .25); background: #fff; color: #0f2436; font: 700 15px/1 system-ui, sans-serif; cursor: pointer; }
.sr-rn.on { background: #134a72; border-color: #134a72; color: #fff; }
.sr-go { min-height: 50px; padding: 0 26px; border-radius: 25px; border: 0; background: #ff7a59; color: #fff; font: 800 17px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 4px 0 #c24a2c; }
.sr-note { display: block; margin-top: 8px; color: #355a77; }

.sr-event { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 0 rgba(15, 36, 54, .15); }
.sr-event-ico svg { width: 40px; height: 40px; display: block; }
.sr-event b { display: block; font: 800 16px/1.2 system-ui, sans-serif; color: #134a72; }
.sr-event small { display: block; margin-top: 2px; line-height: 1.35; color: #234a66; font-size: 14px; }
.sr-event.small { padding: 6px 10px; }
.sr-event.small .sr-event-ico svg { width: 30px; height: 30px; }
.sr-board[data-phase="show"] .sr-event { animation: sr-pop .45s ease-out; }
@keyframes sr-pop { from { transform: scale(.92); opacity: .4; } }
.sr-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: 10px 0 4px; padding: 6px 12px; border-radius: 12px; background: rgba(15, 36, 54, .78); color: #fff; font-weight: 800; }
.sr-count { padding: 2px 10px; border-radius: 12px; background: rgba(255, 255, 255, .16); }

.sr-floes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; margin: 10px 0 18px; }
.sr-floe {
  position: relative; display: block; width: 100%; max-width: 260px; justify-self: center; min-height: 108px; padding: 0; border: 0; background: none; color: #0f2436; font: inherit; cursor: default;
  animation: sr-bob 4.5s ease-in-out infinite; animation-delay: calc(var(--d, 0) * 1s);
}
.sr-floe:nth-child(2) { --d: -1.2; } .sr-floe:nth-child(3) { --d: -2.1; } .sr-floe:nth-child(4) { --d: -.6; } .sr-floe:nth-child(5) { --d: -3; } .sr-floe:nth-child(6) { --d: -1.7; }
@keyframes sr-bob { 50% { transform: translateY(-4px); } }
button.sr-floe { cursor: pointer; }
.sr-ice { position: absolute; inset: 0; width: 100%; height: 100%; }
.sr-face { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 108px; }
.sr-feet { display: flex; gap: 4px; }
.sr-feet i { width: 12px; height: 16px; border-radius: 6px 6px 5px 5px; background: #6aa9d2; }
.sr-cap { font-size: 12.5px; font-weight: 700; color: #355a77; }
.sr-val { font: 900 22px/1 system-ui, sans-serif; color: #134a72; }
.sr-val em { margin-left: 4px; font-style: normal; font-size: 14px; color: #c24a2c; }
.sr-floe.gold .sr-val { color: #a86a00; }
.sr-house { position: absolute; top: -10px; right: 12%; z-index: 1; }
.sr-house svg { width: 34px; height: 34px; display: block; }
.sr-floe.mine .sr-ice polygon:nth-child(2) { stroke: #ff7a59; stroke-width: 4; }
.sr-floe.crowed .sr-ice polygon:nth-child(2) { stroke: #2a2a33; stroke-width: 4; }
.sr-who { position: absolute; left: 0; right: 0; bottom: -12px; z-index: 1; display: flex; justify-content: center; gap: 2px; flex-wrap: wrap; }
.sr-av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: #ffd36b; color: #0f2436; font-weight: 800; font-size: 13px; border: 2px solid #fff; flex: none; }
.sr-av img { width: 100%; height: 100%; object-fit: cover; }
.sr-rook { position: absolute; top: -6px; left: 10%; width: 34px; height: 34px; }
.sr-crows { position: absolute; top: -8px; left: 6%; display: flex; align-items: center; gap: 2px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #000; }
.sr-crows .sr-rook { position: static; width: 26px; height: 26px; }
.sr-crack, .sr-melt { position: absolute; top: 6px; left: 50%; translate: -50% 0; padding: 2px 8px; border-radius: 10px; font-weight: 900; font-size: 13px; white-space: nowrap; }
.sr-crack { background: #c24a2c; color: #fff; }
.sr-melt { top: -10px; left: auto; right: 6%; translate: none; background: #ffd36b; color: #5a3a00; }
.sr-floe.sunk { animation: sr-sink 1.2s ease-in forwards; }
.sr-floe.sunk .sr-ice { filter: saturate(.6) brightness(.85); }
.sr-floe.sunk::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 10px; height: 26px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .85); animation: sr-ring 1.2s ease-out; opacity: 0; }
@keyframes sr-sink { to { transform: translateY(10px) rotate(-3deg); opacity: .78; } }
@keyframes sr-ring { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.sr-floe.melted .sr-ice polygon:nth-child(2) { fill: #d4efff; }

.sr-after { display: grid; gap: 6px; margin: 4px 0 10px; }
.sr-splash, .sr-dry, .sr-bank { padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .9); line-height: 1.4; }
.sr-splash b { color: #c24a2c; }
.sr-bank { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sr-scores { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.sr-scores li { display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 18px; background: rgba(255, 255, 255, .85); font-size: 14px; }
.sr-scores li.me { box-shadow: 0 0 0 2px #ff7a59 inset; }
.sr-scores li.jumped { background: #fff7d6; }
.sr-scores .sr-nm { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-acts { display: flex; justify-content: flex-end; margin-top: 10px; }
.sr-end { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .6); background: rgba(15, 36, 54, .35); color: #fff; font-weight: 700; cursor: pointer; }

.sr-podium { background: rgba(255, 255, 255, .92); border-radius: 14px; padding: 12px 14px; }
.sr-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sr-rows li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: #eef8ff; }
.sr-rows li.me { box-shadow: 0 0 0 2px #ff7a59 inset; }
.sr-rows li.p1 { background: #fff3c4; }
.sr-place { width: 30px; text-align: center; font-size: 20px; font-weight: 900; }
.sr-rows .sr-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 700; }
.sr-rows .sr-nm small { font-weight: 500; color: #355a77; }
.sr-star { width: 100%; padding-left: 38px; color: #a86a00; font-weight: 700; font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  .sr-cloud, .sr-river, .sr-floe, .sr-floe.sunk, .sr-floe.sunk::after, .sr-board[data-phase="show"] .sr-event { animation: none; }
}
@media (max-width: 640px) {
  .sr-board { padding: 0; }
  .sr-scene { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .sr-top { padding: 10px 10px 4px 14px; }
  .sr-title { font-size: 21px; }
  .sr-main { padding: 6px 10px 14px; }
  .sr-floes { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sr-evs { grid-template-columns: 1fr; }
}
