/* 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; }

/* Kopych video cover. The original loading/error controls remain functional. */
#launch-screen{padding: max(18px,env(safe-area-inset-top)) 20px max(22px,env(safe-area-inset-bottom));background:#081c27}
.launch-art{inset:0;z-index:-2;background:#081c27 url('/assets/launch/kopych-idle-poster-v1.webp') center top/cover no-repeat}
#launch-video{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
.launch-art::after{background:linear-gradient(#05131b25,transparent 20%,transparent 66%,#071b2c50 82%,#071b2ccc)}
.launch-brand{flex:0 0 auto;display:block;width:auto;margin:0;font:900 clamp(30px,7vw,49px)/1 Georgia,serif;letter-spacing:-2px;color:#ffdd88;text-shadow:0 3px 0 #6b3b1c,0 5px 12px #06141f;padding:0}
.launch-brand span{color:#a9e5df}
.launch-tip{position:relative;flex:0 0 auto;width:min(100%,370px);margin:auto 0 18px;padding:24px 20px 18px;border:3px solid #d7a657;border-radius:22px;background:linear-gradient(135deg,#fff2c9,#efd39b);box-shadow:0 6px 0 #654123,0 10px 24px #0007,inset 0 0 0 3px #fff2ca,inset 0 0 0 5px #c99950;color:#51351e}
.launch-tip::before,.launch-tip::after{content:'◆';position:absolute;top:50%;transform:translateY(-50%);font-size:12px;color:#9a652e}
.launch-tip::before{left:6px}.launch-tip::after{right:6px}
.launch-tip-label{position:absolute;top:-16px;left:50%;transform:translateX(-50%);padding:6px 22px;border:2px solid #ebc27a;border-radius:11px;background:linear-gradient(#34727a,#17414e);box-shadow:0 3px 0 #8b5c2e;color:#fff0bd;font-size:12px;font-weight:900;letter-spacing:2px}
#launch-tip-text{margin:0;font-size:clamp(14px,3.8vw,17px);font-weight:800;line-height:1.35}
.launch-console{width:min(100%,350px)}.launch-label{margin-bottom:8px;font-size:12px}.launch-track{height:17px;border-color:#b58b50}
@media(max-height:640px){.launch-tip{padding:20px 18px 13px;margin-bottom:14px}.launch-brand{font-size:30px}.launch-tip-label{font-size:10px;padding:5px 18px}#launch-tip-text{font-size:14px}}
@media(max-height:440px) and (orientation:landscape){#launch-screen{display:flex;align-items:flex-end;padding:16px 24px}.launch-art{right:48%;background-size:auto 100%}.launch-brand{width:45%;height:auto}.launch-tip{width:45%;margin-top:auto;margin-bottom:14px}.launch-console{width:45%}}
@media(prefers-reduced-motion:reduce){#launch-video{visibility:hidden}}

/* LottieFiles motion-design: fixed metal wordmark, 2s gleam + quiet hold.
   Primary: letter gleam; secondary: small glint; ambient: existing mine video. */
.launch-brand{position:relative;display:flex;justify-content:center;align-items:baseline;gap:1px;font:1000 clamp(40px,12vw,62px)/1.12 'Trebuchet MS',Arial,sans-serif;letter-spacing:-3px;padding:3px 12px 8px;text-shadow:none;filter:drop-shadow(0 2px 0 #533016) drop-shadow(0 4px 0 #102b32) drop-shadow(0 5px 8px #0009)}
.launch-brand span{display:block;color:transparent;-webkit-text-fill-color:transparent;-webkit-text-stroke:.7px #ffe2a0;background-clip:text;-webkit-background-clip:text;background-size:300% 100%;background-position:100% 50%;animation:launch-brand-gleam 6.5s cubic-bezier(.4,0,.2,1) infinite}
.launch-brand .launch-brand-gold{background-image:linear-gradient(110deg,#d28a27 0%,#f5bf50 26%,#ffebac 40%,#fffde7 46%,#f4b13e 53%,#ffdb7a 70%,#e7a331 100%)}
.launch-brand .launch-brand-teal{background-image:linear-gradient(110deg,#228e9b 0%,#50c9cb 26%,#b6fff0 40%,#f0fff8 46%,#3cb5bc 53%,#93e7df 70%,#3bb2bf 100%);-webkit-text-stroke:.7px #b9f8e9;animation-delay:.22s}
.launch-brand::after{content:'';position:absolute;width:15px;height:15px;right:13px;top:3px;background:#fff3c7;clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);opacity:0;animation:launch-brand-glint 6.5s ease-in-out infinite}
@keyframes launch-brand-gleam{0%,12%{background-position:100% 50%}43%,100%{background-position:0% 50%}}
@keyframes launch-brand-glint{0%,37%,54%,100%{opacity:0;transform:scale(.55)}45%{opacity:.85;transform:scale(1)}}
@media(max-height:640px){.launch-brand{font-size:40px;padding-top:0}}
@media(prefers-reduced-motion:reduce){.launch-brand span,.launch-brand::after{animation:none}}
.reduced-motion .launch-brand span,.reduced-motion .launch-brand::after{animation:none}

/* Extruded metal letters: separate face, brass rim and solid side walls. */
.launch-brand{font-family:'Arial Black','Trebuchet MS',sans-serif;font-weight:1000;font-size:clamp(43px,13vw,66px);letter-spacing:-3px;gap:2px;isolation:isolate;filter:drop-shadow(0 9px 7px #000b);padding-bottom:12px}
.launch-brand span{position:relative;isolation:isolate;-webkit-text-stroke:1px #fff0b2;paint-order:stroke fill}
.launch-brand span::before,.launch-brand span::after{content:attr(data-lettering);position:absolute;inset:0;pointer-events:none;background:none;-webkit-text-fill-color:initial;background-clip:border-box}
.launch-brand span::before{z-index:-2;color:#87501e;-webkit-text-stroke:3px #573218;text-shadow:0 1px #cb9145,0 2px #b27a32,0 3px #a16a28,0 4px #8a5720,0 5px #75451a,0 6px #603717,0 7px #4e2b15,0 8px #301d12;transform:translateY(3px)}
.launch-brand span::after{z-index:-1;color:#d99938;-webkit-text-stroke:4px #e5ae55;text-shadow:0 -1px #fff2bc,1px 0 #fff0a3,-1px 0 #9b5a20}
.launch-brand .launch-brand-teal::before{color:#1c5962;-webkit-text-stroke:3px #153a42;text-shadow:0 1px #4a9c9f,0 2px #337e85,0 3px #296d76,0 4px #235d68,0 5px #1c4d58,0 6px #153d48,0 7px #102e39,0 8px #0c202b}
.launch-brand .launch-brand-gold{background-image:linear-gradient(110deg,#b46b16 0%,#ffca54 28%,#fff0b1 40%,#fffef1 46%,#ce821d 53%,#ffdb74 70%,#e8a02d 100%)}
.launch-brand .launch-brand-teal{background-image:linear-gradient(110deg,#187784 0%,#54d9d4 28%,#c1fff2 40%,#f5fffb 46%,#249ba5 53%,#8feee1 70%,#2cabb7 100%)}
@media(max-height:640px){.launch-brand{font-size:42px}}

.launch-brand span>b{position:relative;z-index:1;display:block;font:inherit;letter-spacing:inherit;background-image:inherit;background-size:inherit;background-position:inherit;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;-webkit-text-stroke:inherit;paint-order:stroke fill}

/* Sculpted nugget lettering. Shine is clipped to the artwork alpha. */
.launch-brand.launch-brand-art{display:block;width:min(76vw,315px);height:auto;padding:0;margin:-18px 0 0;line-height:0;filter:drop-shadow(0 4px 3px #00131aa6)}
.launch-brand-art img{display:block;width:100%;height:auto;max-height:none;max-width:none;filter:none}
.launch-brand-art::after{inset:0;width:100%;height:100%;clip-path:none;opacity:1;transform:none;background:linear-gradient(110deg,transparent 38%,#fff8d76b 47%,#ffffffa6 50%,#fff8d747 53%,transparent 62%);background-size:300% 100%;mask:url('/assets/launch/deepcall-bumpy-v1.webp') center/contain no-repeat;-webkit-mask:url('/assets/launch/deepcall-bumpy-v1.webp') center/contain no-repeat;animation:launch-brand-gleam 6.5s cubic-bezier(.4,0,.2,1) infinite;pointer-events:none}
@media(max-height:640px){.launch-brand.launch-brand-art{width:min(71vw,250px)}}
@media(prefers-reduced-motion:reduce){.launch-brand-art::after{animation:none;display:none}}
.reduced-motion .launch-brand-art::after{animation:none;display:none}

/* Rounded enamel and gold surfaces echo the sculpted title. */
.launch-tip{box-sizing:border-box;width:min(100%,370px);padding:25px 19px 19px;border:5px solid #efba54;border-radius:29px 25px 30px 26px;background:radial-gradient(ellipse at 28% 0%,#fffbe6 0%,#fff0c5 44%,#efd198 100%);box-shadow:0 3px 0 #a36624,0 7px 0 #68411e,0 10px 16px #03161d80,inset 0 2px 2px #fffceb,inset 0 -4px 7px #c38c4055,inset 0 0 0 2px #be8639;color:#573716}
.launch-tip::before,.launch-tip::after{width:7px;height:7px;content:'';border:1px solid #f7d078;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff5ba,#e8b44e 45%,#9a5721);box-shadow:0 2px 1px #8c5b28}
.launch-tip::before{left:5px}.launch-tip::after{right:5px}
.launch-tip-label{top:-22px;padding:8px 25px;border:3px solid #f3c265;border-radius:19px 17px 18px 16px;background:radial-gradient(ellipse at 35% 0%,#a5f6e9 0%,#49c6bf 13%,#229b9f 40%,#12616d 100%);box-shadow:0 3px 0 #986024,0 5px 5px #193e3a66,inset 0 2px 1px #d3ffed,inset 0 -3px 3px #0a485e;text-shadow:0 2px 1px #124c57;color:#fff2bc;font-weight:1000;letter-spacing:1.7px}
#launch-tip-text{text-shadow:0 1px #fff9e2;line-height:1.4}
.launch-console{width:min(100%,342px)}
.launch-label{color:#ffdf92;text-shadow:0 2px 0 #573916,0 3px 4px #071620;font-weight:900;margin:0 4px 10px}
#launch-percent{color:#a9f6e7;text-shadow:0 2px 0 #124b56}
.launch-track{height:20px;padding:4px;border:3px solid #ecc16d;border-radius:18px;background:linear-gradient(#083a47,#12616a 65%,#1c7479);box-shadow:0 3px 0 #875323,0 5px 9px #00141d99,inset 0 3px 5px #001d2dbb,inset 0 -1px 0 #7dd4c4}
#launch-fill{border-radius:12px;background:linear-gradient(#fff7c0 0%,#ffe389 17%,#f4bc43 45%,#d58a23 72%,#edb94f 100%);box-shadow:inset 0 2px 2px #fff9d8,inset 0 -2px 2px #9b601a,0 1px 4px #001c2b80}
#launch-fill::after{inset:2px 5px auto;height:35%;border-radius:50%;background:linear-gradient(90deg,transparent,#fff9d975 20%,#fff9d975 75%,transparent);box-shadow:none}
@media(max-height:640px){.launch-tip{padding:21px 17px 14px;border-width:4px;border-radius:25px 23px 26px 24px}.launch-tip-label{top:-20px;padding:6px 22px}.launch-track{height:17px}}
