/* TAG Legal Desk: the restart notice (register J303, js/v21_restart.js). Above everything on the page. */
.rs-count {
  position: fixed; left: 0; right: 0; top: 0; z-index: 2147483000;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 24px 18px 24px;
  background: #12233d; color: #ffffff; text-align: center;
  border-bottom: 6px solid #f2b705; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.rs-count-big { margin: 0; font-size: clamp(24px, 4.2vw, 46px); font-weight: 800; line-height: 1.15; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.rs-count-sub { margin: 6px 0 0; font-size: clamp(15px, 1.8vw, 20px); font-weight: 600; color: #ffe08a; }
/* While the countdown shows, the page moves down by its height (--rs-h, measured by js/v21_restart.js), so the header,
   the practice band, every job panel and side sheet, and Back to the board stay in sight and pressable. */
:root { --rs-h: 0px; }
body.rs-on-count { padding-top: var(--rs-h); --top: calc(var(--hdr-h) + var(--band-h) + var(--rs-h)); }
body.rs-on-count .hdr { top: var(--rs-h); }
body.rs-on-count .pband { top: calc(var(--hdr-h) + var(--rs-h)); }
body.rs-on-count .sheet { top: var(--rs-h); }
body.rs-on-count .wf-over-cover { top: calc(16px + var(--rs-h)); }
body.rs-on-count .v21pl-panel { top: calc(12px + var(--rs-h)); }

.rs-cover {
  position: fixed; inset: 0; z-index: 2147483001;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(10, 20, 36, 0.92);
}
.rs-box {
  max-width: 640px; width: 100%; text-align: center;
  background: #ffffff; color: #12233d; border-radius: 18px; padding: 40px 32px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}
.rs-title { margin: 0 0 12px; font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.15; }
.rs-line { margin: 0 0 24px; font-size: clamp(16px, 2vw, 21px); line-height: 1.4; }
.rs-refresh {
  font: inherit; font-size: clamp(20px, 2.6vw, 28px); font-weight: 800;
  padding: 16px 48px; border: 0; border-radius: 999px; cursor: pointer;
  background: #f2b705; color: #12233d;
}
.rs-refresh:hover { background: #ffc928; }
.rs-refresh:focus-visible { outline: 4px solid #12233d; outline-offset: 4px; }
.rs-refresh:disabled { cursor: progress; opacity: 0.8; }
.rs-hint { margin: 16px 0 0; font-size: 15px; color: #4a5a72; }
@media (prefers-reduced-motion: reduce) { .rs-refresh { transition: none; } }
