/* First-paint screen: loaded from HTML before the application bundle. */
html { background: #10212a; }
body { margin: 0; }
body.launching #app { visibility: hidden; }
#launch-screen[hidden] { display: none; }
#launch-screen {
  position: fixed; z-index: 10000; inset: 0; display: flex; flex-direction: column; align-items: center;
  box-sizing: border-box; overflow: hidden; isolation: isolate; color: #f6e5be; background: #10212a;
  font-family: 'Trebuchet MS',Arial,sans-serif; text-align: center;
  padding: max(28px,env(safe-area-inset-top)) 24px max(25px,env(safe-area-inset-bottom));
  transition: opacity .42s ease, visibility .42s; touch-action: manipulation;
}
.launch-art { position: absolute; inset: 0; z-index: -3; background: url('/assets/launch/mine-depths.webp') center 52% / cover no-repeat; }
.launch-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#06131b10,transparent 30%,transparent 72%,#06131b80); }
.launch-dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.launch-dust i { position: absolute; bottom: 14%; width: 3px; height: 3px; background: #f3ca76; border-radius: 50%; box-shadow: 0 0 9px #f3ca76; opacity: 0; animation: launch-dust 5s ease-out infinite; }
.launch-dust i:nth-child(1) { left: 14%; animation-delay: -1s; }
.launch-dust i:nth-child(2) { left: 34%; animation-delay: -3.4s; }
.launch-dust i:nth-child(3) { left: 53%; animation-delay: -2.1s; }
.launch-dust i:nth-child(4) { left: 72%; animation-delay: -.4s; }
.launch-dust i:nth-child(5) { left: 87%; animation-delay: -4s; }
.launch-brand { display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-height: 0; width: min(100%,520px); margin: 0; padding: 12px 0 24px; box-sizing: border-box; font-size: 48px; }
.launch-brand img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(100%,580px); object-fit: contain; filter: drop-shadow(0 8px 22px #04151b80); }
.launch-console { position: relative; width: min(100%,330px); flex: 0 0 auto; padding: 0 0 5px; }
.launch-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 2px 12px; color: #e6d8b8; font-size: 11px; line-height: 1.4; font-weight: bold; letter-spacing: .5px; text-shadow: 0 2px 3px #071620; }
#launch-percent { color: #edc67b; font-variant-numeric: tabular-nums; }
.launch-track { position: relative; height: 14px; padding: 3px; border: 1px solid #7d9e8b; background: #0b2631; box-shadow: 0 3px 0 #071b26,inset 0 2px 3px #0006; border-radius: 10px; overflow: hidden; }
#launch-fill { position: relative; display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center; border-radius: 6px; transition: transform .3s ease-out; background: linear-gradient(#fff0bf,#d5b46e 42%,#8c7145); box-shadow: 0 0 13px #d1b27470; }
#launch-fill::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px #fff0be; }
.launch-note { min-height: 18px; margin: 15px 0 0; color: #a6b2a6; font-size: 10px; letter-spacing: .4px; line-height: 1.5; }
.launch-note:empty { min-height: 0; margin: 0; }
.launch-retry { display: block; width: 100%; min-height: 48px; margin-top: 16px; padding: 10px 18px; color: #26353b; border: 2px solid #edce8e; border-radius: 16px; background: linear-gradient(#ffe4a0,#d5a352); font: 700 14px 'Trebuchet MS',Arial,sans-serif; box-shadow: inset 0 1px #fff0be,0 4px 0 #855b26; cursor: pointer; }
.launch-retry[hidden] { display: none; }
.launch-retry:focus-visible { outline: 3px solid #c3eee4; outline-offset: 4px; }
#launch-screen[data-state="error"] .launch-track { opacity: .5; }
#launch-screen.launch-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
#loading-mine { display: grid; place-items: center; width: 68px; height: 68px; padding: 0; border: 0; background: radial-gradient(circle,#193840ef 55%,transparent 70%); border-radius: 50%; box-shadow: none; }
#loading-mine[hidden] { display: none; }
#loading-mine svg { width: 40px; height: 40px; color: #e6c47f; animation: launch-spin 2.5s linear infinite; filter: drop-shadow(0 2px 2px #0b1d27); }
@keyframes launch-dust { 0% { translate: 0 0; opacity: 0; } 20% { opacity: .65; } 100% { translate: 20px -270px; opacity: 0; } }
@keyframes launch-spin { to { rotate: 360deg; } }
@media (min-width: 700px) {
  .launch-art::after { background: linear-gradient(90deg,#091a23 0,transparent 30%,transparent 70%,#091a23),linear-gradient(#07151c10,transparent 35%,#08182070); }
}
@media (max-height: 640px) {
  #launch-screen { padding-top: max(16px,env(safe-area-inset-top)); padding-bottom: max(20px,env(safe-area-inset-bottom)); }
  .launch-brand { padding-block: 6px 18px; }
}
@media (max-height: 440px) and (orientation: landscape) {
  #launch-screen { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 10px 28px; padding-inline: max(24px,env(safe-area-inset-left)); }
  .launch-brand { grid-column: 1; grid-row: 1 / 3; height: 100%; padding: 0; }
  .launch-console { grid-column: 2; grid-row: 1 / 3; margin: 0 auto; align-self: center; }
  .launch-note { margin-top: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  #launch-screen, #launch-fill { transition: none; }
  .launch-dust i, #loading-mine svg { animation: none; }
}
.reduced-motion #launch-screen, .reduced-motion #launch-fill { transition: none; }
.reduced-motion .launch-dust i, .reduced-motion #loading-mine svg { animation: none; }
