/* One approved 4v4 startup shell from disclosure through completed progress.
   Start only hides its controls; the original artwork and bar never remount. */
.pr-preparation[hidden] { display: none !important; }
.pr-preparation { position: fixed; inset: 0; z-index: 2500; pointer-events: auto; }
.pr-preparation .iw-loading__center { gap: calc(var(--u) * 1.4); width: min(max(360px, calc(var(--u) * 44)), calc(100vw - 36px)); padding: 16px 20px; }
.pr-preparation .iw-loading__label { min-height: calc(12px + var(--fs-m) * 1.4); padding-top: 12px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-preparation__consent { width: 100%; font-size: var(--fs-m); line-height: 1.4; }
.pr-preparation__data { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px; margin: 0; }
.pr-preparation__size-line { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; font-size: var(--fs-s); }
.pr-preparation__note, .pr-preparation__error { margin: 6px 0 0; font-size: var(--fs-s); line-height: 1.4; text-align: center; }
.pr-preparation__actions { display: flex; gap: 8px; margin-top: 8px; }
.pr-preparation__button { flex: 1 1 0; justify-content: center; min-width: 0; min-height: 44px; font-size: var(--fs-m); line-height: 1.2; text-align: center; touch-action: manipulation; }
.pr-preparation__button:focus-visible { outline: 3px solid var(--pr-cyan); outline-offset: 3px; }
.pr-preparation__language { position: absolute; top: max(10px, env(safe-area-inset-top), var(--safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right), var(--safe-area-inset-right, 0px)); min-height: 44px; max-width: 180px; padding: 8px; border: 1px solid #f7f4ea55; border-radius: 4px; background: var(--pr-navy); color: var(--pr-cream); font: 700 var(--fs-s) / 1.2 'Rubik', system-ui, sans-serif; }
.pr-preparation[data-state="starting"] .pr-preparation__actions,
.pr-preparation[data-state="ready"] .pr-preparation__actions,
.pr-preparation[data-state="starting"] .pr-preparation__language,
.pr-preparation[data-state="ready"] .pr-preparation__language { visibility: hidden; pointer-events: none; }
/* Reparenting a live DOM node can restart CSS entrance animations. The
   startup card is already present: only its progress fill should now move. */
.pr-preparation[data-state="starting"] .iw-in,
.pr-preparation[data-state="ready"] .iw-in { animation: none; }
.pr-preparation:not([data-state="starting"]) .iw-progress__wave { animation-play-state: paused; }
@media (max-height: 480px) and (orientation: landscape) {
  .pr-preparation .iw-loading__center { gap: calc(var(--u) * .8); padding: 12px 20px; }
  .pr-preparation .iw-tip { bottom: max(6px, env(safe-area-inset-bottom), var(--safe-area-inset-bottom, 0px)); }
}
/* Very short landscape phones retain the same shell on both sides of Start.
   Leave room for a two-line gameplay tip and the existing version corner. */
@media (max-height: 360px) and (orientation: landscape) {
  .pr-preparation .iw-loading__center { top: 42%; gap: calc(var(--u) * .6); padding-top: 8px; padding-bottom: 8px; }
  .pr-preparation .iw-loading__label { min-height: calc(8px + var(--fs-m) * 1.4); padding-top: 8px; }
  .pr-preparation .iw-tip { width: min(620px, calc(100vw - 140px)); }
}
