#koratLoading{display:none;position:fixed;inset:0;z-index:2147483000;align-items:center;justify-content:center;flex-direction:column;gap:24px;padding:24px;text-align:center;background:radial-gradient(ellipse at 50% 35%,#183f68 0%,#0b2543 45%,#07162c 85%);color:#eaf6ff;font-family:system-ui,-apple-system,sans-serif;box-sizing:border-box;pointer-events:none}
html.korat-booting #koratLoading{display:flex;pointer-events:auto}
html.korat-booting{overflow:hidden}
#koratLoading .loading-logo{width:clamp(120px,28vw,190px);height:auto;filter:drop-shadow(0 8px 24px #0005)}
#koratLoading .loading-cards{display:flex;align-items:center;justify-content:center;height:76px;gap:9px;direction:ltr}
#koratLoading .loading-card{display:grid;place-items:center;width:42px;height:60px;border-radius:8px;background:linear-gradient(145deg,#fff,#d7efff);box-shadow:0 7px 16px #0004;border:1px solid #d7e8f5;font-size:29px;color:#102c4a;animation:korat-card-rise 1.3s ease-in-out infinite}
#koratLoading .loading-card:nth-child(1),#koratLoading .loading-card:nth-child(3){color:#c23a51}
#koratLoading .loading-card:nth-child(2){animation-delay:.15s}#koratLoading .loading-card:nth-child(3){animation-delay:.3s}#koratLoading .loading-card:nth-child(4){animation-delay:.45s}
#koratLoading .loading-label{margin:0;font-size:17px;font-weight:600;letter-spacing:.035em;color:#b9e9ff}
#koratLoading .loading-track{width:min(190px,65vw);height:4px;border-radius:6px;overflow:hidden;background:#87d6ff24}
#koratLoading .loading-track::after{content:"";display:block;width:40%;height:100%;border-radius:6px;background:linear-gradient(90deg,#85ddff,#d9b65e);animation:korat-loading-slide 1.4s ease-in-out infinite}
@keyframes korat-card-rise{0%,70%,100%{transform:translateY(0) rotate(-5deg)}35%{transform:translateY(-12px) rotate(5deg)}}
@keyframes korat-loading-slide{0%{transform:translateX(-110%)}100%{transform:translateX(360%)}}
@media(prefers-reduced-motion:reduce){#koratLoading .loading-card,#koratLoading .loading-track::after{animation:none}#koratLoading .loading-track::after{width:100%}}
