/* The splash owns the entire viewport until both the ident and loading finish. */
body[data-startup] { overflow: hidden; background: #000; }
body[data-startup] > :not(#startup-loading) { visibility: hidden; }
.startup-loading {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-content: center; justify-items: center; gap: 16px;
  margin: 0; padding: 24px; background: #000; color: #fff;
}
.startup-loading .studio-logo {
  width: min(320px, 65vmin); height: auto; object-fit: contain;
  animation: studio-ident 1.8s step-end forwards;
}
.loading-cup {
  position: absolute; right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: clamp(56px, 10vmin, 80px); height: auto; object-fit: contain;
  visibility: hidden;
  animation: loading-cup-reveal 0s 1.8s forwards, loading-cup-turn 2.4s 1.8s linear infinite;
}
.startup-loading[data-loading="false"] .loading-cup { display: none; }
.startup-loading p { max-width: 360px; margin: 0; text-align: center; }
@keyframes studio-ident { to { visibility: hidden; } }
@keyframes loading-cup-reveal { to { visibility: visible; } }
@keyframes loading-cup-turn { to { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) {
  /* These two effects only time visibility; override the global motion reset without adding movement. */
  .startup-loading .studio-logo { animation: studio-ident 1.8s step-end forwards !important; }
  .loading-cup { animation: loading-cup-reveal 0s 1.8s forwards !important; }
}
/* Keep ready games in place when later batches arrive. */
.game-boxes:not(:has(.game-box:not([hidden]))) { display: none; }
.game-box[hidden] { display: grid !important; visibility: hidden; }
.about-footer { position: relative; margin-top: 20px; padding: 0 12px; border-top: 1px solid #28282040; color: var(--pop-ink); }
.about-footer summary { cursor: pointer; min-height: 44px; padding: 12px 0; }
.about-content { display: flex; align-items: center; gap: 18px; padding: 18px; margin-bottom: 12px; }
.about-footer img { flex: none; border-radius: 6px; }
.about-footer p { margin: 0 0 8px; font-size: 15px; line-height: 1.4; }
.about-footer a { color: inherit; text-underline-offset: 3px; overflow-wrap: anywhere; }
body[data-screen="game"] .about-footer { display: none; }
@media (max-width: 450px) {
  .about-content { gap: 12px; padding: 12px; align-items: flex-start; }
  .about-footer img { width: 56px; height: 56px; }
  .about-footer p, .about-footer a { font-size: 14px; }
}
@media (min-width: 760px) {
  body[data-remote-role="display"] .about-footer { flex: none; margin: 0; border: 0; font-size: 14px; }
  body[data-remote-role="display"] .about-footer summary { min-height: 28px; padding: 6px 0; }
  body[data-remote-role="display"] .about-content { position: absolute; z-index: 5; bottom: 100%; left: 0; width: min(600px, 90vw); margin: 0; }
}
