/* Existing authentication/loading overlay. No extra start step or animation. */
body.boot-pending { overflow: hidden; background: #17110c; }
body.boot-pending #app,
body.boot-pending #tutorialPersistentResume { visibility: hidden; }
.online-boot-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: grid; place-items: center; overflow: auto;
  min-height: 100%; box-sizing: border-box;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  color: #fff3dc; font-family: Georgia, 'Times New Roman', serif;
  background: linear-gradient(180deg, #110b0759, #110b0773 50%, #110b07c7), url('../assets/home/tavern_bg.webp') center / cover no-repeat #17110c;
}
.online-boot-title {
  margin: 0; padding: 0; border: 0; max-width: 100%;
  color: #fff3dc; text-align: center; font-weight: 700;
  font-size: clamp(30px, 7.5vw, 104px); line-height: 1.18; letter-spacing: .075em;
  text-shadow: 0 3px 10px #000, 0 0 32px #0009;
}
.online-boot-title span { display: block; }
.online-boot-status {
  position: absolute; right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  max-width: min(560px, calc(100% - 48px));
  font: 400 13px/1.6 system-ui, sans-serif; color: #f4e9d5;
  text-shadow: 0 1px 5px #000; overflow-wrap: anywhere;
}
.online-boot-status p { margin: 0 0 12px; }
.online-boot-status .btn { margin: 0; }
.online-boot-overlay.is-error .online-boot-status {
  padding: 16px; box-sizing: border-box; background: #17110ce8;
  border: 1px solid #9b7258; border-radius: 12px;
}
.online-boot-overlay.is-gate { grid-template-rows: 1fr auto; gap: 32px; }
.online-boot-overlay.is-gate .online-boot-title { align-self: center; }
.online-boot-overlay.is-gate .online-boot-status {
  position: static; text-align: center; width: 100%; max-width: 640px;
  padding: 0 0 clamp(20px, 7vh, 72px);
}
.online-boot-new-game { letter-spacing: .16em; }
.online-boot-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
#formalNewGameError:not(:empty) { margin-top: 16px; color: #ffd3cc; }
@media (max-height: 480px) {
  .online-boot-overlay.is-error { grid-template-rows: 1fr auto; gap: 24px; }
  .online-boot-overlay.is-error .online-boot-status { position: static; }
  .online-boot-overlay.is-gate .online-boot-status { padding-bottom: 0; }
  .online-boot-title { font-size: clamp(28px, 6vw, 60px); }
}

.online-boot-overlay { background: #17110c url('../assets/home/boot_title.webp') center / contain no-repeat; }
.online-boot-title { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
