/* Standalone launch styling: available before Vue and the application bundle. */
#thai-launch {
  --launch-bg: #080914;
  --launch-ink: #eefaff;
  --launch-muted: #939bb5;
  --launch-glow: #63e6ff;
  position: fixed; inset: 0; z-index: 10000; overflow: auto;
  box-sizing: border-box; min-height: 100%;
  background: var(--launch-bg); color: var(--launch-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  text-align: center; isolation: isolate;
}
#thai-launch[hidden] { display: none; }
#thai-launch.thai-launch-copy-pending h1, #thai-launch.thai-launch-copy-pending .thai-launch-status { visibility: hidden; }
#thai-launch::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, #23234a55, transparent 58%);
}
#thai-launch .thai-launch-character { width: min(74vw, 320px, 40vh); height: auto; }
#thai-launch .thai-launch-character-raster { animation: thai-float 4s .8s ease-in-out infinite; }
#thai-launch h1 { margin: 18px 0 16px; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(28px, 6vw, 38px); letter-spacing: -.045em; font-weight: 600; line-height: 1.15; }
#thai-launch h1 span { display: inline-block; animation: thai-word .7s .5s both; }
#thai-launch h1 span:nth-child(2) { animation-delay: .62s; }
#thai-launch h1 span:nth-child(3) { animation-delay: .74s; }
#thai-launch .thai-launch-status { margin: 0; font-size: 14px; color: var(--launch-muted); letter-spacing: .015em; }
#thai-launch .thai-launch-line { height: 2px; width: 88px; margin: 28px 0 0; overflow: hidden; background: #ffffff12; border-radius: 2px; }
#thai-launch .thai-launch-line::after { content: ""; display: block; width: 36px; height: 100%; background: var(--launch-glow); animation: thai-loading 1.8s ease-in-out infinite; }
#thai-launch .thai-launch-brand { position: absolute; bottom: max(36px, env(safe-area-inset-bottom)); font-size: 10px; letter-spacing: .32em; font-weight: 600; color: var(--launch-muted); }
#thai-launch .thai-launch-retry { margin-top: 24px; max-width: 280px; font-size: 14px; color: var(--launch-muted); }
#thai-launch button { min-height: 44px; padding: 10px 20px; margin-top: 12px; color: var(--launch-ink); background: transparent; border: 1px solid var(--launch-muted); border-radius: 12px; cursor: pointer; font: inherit; }
#thai-launch button:focus-visible { outline: 2px solid var(--launch-glow); outline-offset: 4px; }
@keyframes thai-word { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes thai-float { 0%,100% { transform: none; } 50% { transform: translateY(-4px) rotate(1deg); } }
@keyframes thai-loading { 0% { transform: translateX(-36px); } 100% { transform: translateX(88px); } }
@media (max-height: 500px) {
  #thai-launch { padding-bottom: 52px; }
  #thai-launch h1 { margin: 0 0 8px; font-size: 26px; }
  #thai-launch .thai-launch-line { margin-top: 14px; }
  #thai-launch .thai-launch-brand { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #thai-launch h1 span, #thai-launch .thai-launch-line::after, #thai-launch .thai-launch-character-raster { animation: none; }
  #thai-launch .thai-launch-line::after { width: 100%; opacity: .6; }
}
