/* Shared by the first HTML paint and Firebase session restoration. */
.launch-screen {
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  padding: max(40px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  overflow: hidden;
  color: #f4eee2;
  background: #100c06;
  text-align: center;
  font: 14px/1.8 'Galmuri11', system-ui, sans-serif;
}
.launch-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 42%, #73431b38, transparent 60%),
    linear-gradient(#f8c84f06 1px, transparent 1px), linear-gradient(90deg, #f8c84f06 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}
.launch-screen::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 12%;
  z-index: -1;
  background: #241a0d;
  clip-path: polygon(0 45%, 12% 45%, 12% 20%, 28% 20%, 28% 55%, 42% 55%, 42% 75%, 58% 75%, 58% 40%, 74% 40%, 74% 10%, 88% 10%, 88% 45%, 100% 45%, 100% 100%, 0 100%);
}
.launch-brand { margin: 0 0 22px; color: #ba9c69; font-size: 11px; letter-spacing: 5px; }
.launch-mascot { width: 130px; height: 130px; image-rendering: pixelated; border: 1px solid #674a24; box-shadow: 0 0 0 7px #21170d, 0 0 0 8px #45301a; }
.launch-screen h1 { margin: 28px 0 8px; font-family: 'Galmuri14', 'Galmuri11', system-ui, sans-serif; font-size: clamp(30px, 8vw, 44px); line-height: 1.4; color: #f8c84f; text-shadow: 3px 3px #6b3214; }
.launch-tagline { margin: 0; color: #c2b6a0; font-size: 12px; }
.launch-loading { margin-top: 40px; width: min(216px, 100%); }
.launch-track { height: 6px; overflow: hidden; background: #342818; border: 1px solid #594223; }
.launch-meter { display: block; width: 35%; height: 100%; background: #f8c84f; animation: launch-travel 1.6s ease-in-out infinite alternate; }
.launch-loading p { margin: 12px 0 0; font-size: 11px; color: #c2b6a0; }
.launch-retry { margin-top: 16px; padding: 10px 12px; min-height: 44px; border: 0; background: transparent; color: #c2b6a0; font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.launch-links { margin-top: 28px; display: flex; gap: 20px; }
.launch-links a { color: #c2b6a0; font-size: 11px; padding: 8px 0; }
.launch-screen :focus-visible { outline: 2px solid #f8c84f; outline-offset: 4px; }
@keyframes launch-travel { to { transform: translateX(186%); } }
@media (prefers-reduced-motion: reduce) { .launch-meter { animation: none; transform: translateX(93%); } }
@media (max-height: 580px) { .launch-mascot { width: 80px; height: 80px; } .launch-brand { margin-bottom: 14px; } .launch-screen h1 { margin-top: 20px; } .launch-loading { margin-top: 20px; } .launch-links { margin-top: 10px; } }
