/* maintenance / notices (arca-status.js): bars placed right above the button they explain (title 「はじめる」, chapter select 「◯章をはじめる」, result 「もう一度」).
   arca-status.js sets `bottom` from that button's position, so the bars never cover the logo or a heading. */
#statBox { position: absolute; bottom: 140px; left: 50%; transform: translateX(-50%); z-index: 8; width: min(calc(100% - 16px), 400px); box-sizing: border-box;
  display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
#statBox[hidden] { display: none; }
#statBox .sb[hidden] { display: none; }
#statBox .sb { display: flex; align-items: flex-start; gap: 4px 8px; padding: 6px 8px 6px 14px; --fr: var(--ar-fr-m); pointer-events: auto; animation: sbIn .2s ease-out both; }
#statBox .sb-t { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; word-break: auto-phrase; padding-top: 3px; color: var(--ar-text); }
#statBox .sb-n .sb-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
#statBox .sb-h { display: block; color: var(--ar-gold); font-weight: 900; }       /* (the first line only is gold; the rest is the body colour) */
#statBox .sb-x { flex: none; width: 44px; height: 44px; margin: -6px -2px -6px 0; border: 0; background: transparent; color: var(--ar-text); opacity: .78; display: grid; place-items: center; padding: 0; cursor: pointer; }
#statBox .sb-x:active { opacity: 1; }
@keyframes sbIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #statBox .sb { animation: none; } }
/* a start button that cannot be pressed is as dim as the neighbouring 「日替わり」: the gold ring and the pulsing glow of .glow / .primary are turned off */
#stage .btn.dis.glow, #stage .btn.dis.primary, #stage .btn[disabled].glow, #stage .btn[disabled].primary { --ring: color-mix(in srgb, var(--ar-text-off) 40%, transparent); --fill: var(--ar-page); color: var(--ar-text-off); }
#stage .btn.dis.glow::after, #stage .btn[disabled].glow::after { display: none; }
/* while a bar is shown above the start button, the scrolling page of the chapter select / result screen gets the bar's height as extra bottom padding (--sb-h, set by arca-status.js) */
#stage .sl-sc { padding-bottom: calc(env(safe-area-inset-bottom) + 136px + var(--sb-h, 0px)); }
#stage .en-sc { padding-bottom: calc(env(safe-area-inset-bottom) + 132px + var(--sb-h, 0px)); }
/* a notice opens in full when its text is pressed */
#statBox .sb-n .sb-t { cursor: pointer; }
#statBox .sb-n.open .sb-t { display: block; -webkit-line-clamp: unset; line-clamp: unset; max-height: 38vh; overflow-y: auto; white-space: pre-wrap; touch-action: pan-y; }
