@import url('./ui/header.css');
/* Startup HUD: text reports real readiness checkpoints, not transfer bytes. */
html #fv-space { background:radial-gradient(ellipse at 50% 52%,#17132c 0,#090b16 46%,#04070d 100%); isolation:isolate; }
#fv-space::before { content:"";position:absolute;inset:18px;border:1px solid #a897df30;clip-path:polygon(0 16px,16px 0,calc(100% - 16px) 0,100% 16px,100% calc(100% - 16px),calc(100% - 16px) 100%,16px 100%,0 calc(100% - 16px));pointer-events:none; }
#fv-space::after { content:"";position:absolute;inset:0;z-index:-1;opacity:.22;background:linear-gradient(#9290c10b 1px,transparent 1px),linear-gradient(90deg,#9290c10b 1px,transparent 1px);background-size:48px 48px;mask-image:radial-gradient(ellipse,#000,transparent 80%);pointer-events:none; }
#fv-space .fv-logo { filter:drop-shadow(0 0 20px #b0a0f02b); }
.boot-console { position:absolute;top:clamp(38px,5svh,64px);left:clamp(30px,4vw,72px);right:30px;font:11px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.075em; }
.boot-ident { display:flex;align-items:center;gap:12px;color:#e0daf5; }
.boot-ident::before { content:"";width:5px;height:5px;background:#a1dce9;box-shadow:0 0 12px #8e91df; }
.boot-channel { margin:7px 0 20px;color:#9189aa;font-size:9px;letter-spacing:.18em; }
.boot-log { list-style:none;margin:0;padding:0;color:#a39dbb;max-width:420px; }
.boot-log li { padding:2px 0;animation:boot-line .35s ease-out both; }
.boot-log li:last-child { color:#d3caf0; }
.boot-footer { position:absolute;left:clamp(30px,4vw,72px);right:clamp(30px,4vw,72px);bottom:clamp(38px,5svh,64px);font:10px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em; }
.boot-phase { color:#aca2ca; }
.boot-readout { display:flex;align-items:baseline;gap:8px;margin:8px 0 18px;color:#eee9ff; }
.boot-number { font-size:clamp(40px,5vw,64px);font-weight:300;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.055em; }
.boot-meter { height:2px;background:#a69cbe23;max-width:420px; }
.boot-meter::before { content:"";display:block;width:var(--boot-progress,0%);height:100%;background:linear-gradient(90deg,#9d88d3,#bccce9);box-shadow:0 0 12px #a48ad85c;transition:width .45s ease; }
.boot-note { font:10px/1.6 "Hiragino Kaku Gothic Pro","Hiragino Sans",sans-serif;color:#827c98;letter-spacing:.035em;margin:12px 0 0; }
#fv-space .fv-message { left:50%;translate:-50% 0;bottom:16%;width:min(520px,calc(100% - 64px));z-index:2;font-family:"Hiragino Kaku Gothic Pro","Hiragino Sans",sans-serif; }
#fv-space[data-boot-error] .boot-phase { color:#f0b6bf; }
@keyframes boot-line { from { opacity:0;transform:translateY(5px) } to { opacity:1;transform:none } }
@media(max-width:600px){ .boot-console{top:34px;font-size:9px;line-height:1.7}.boot-channel{margin-bottom:12px;font-size:8px}.boot-footer{bottom:34px}.boot-note{font-size:9px}#fv-space .fv-message{bottom:24%;font-size:11px} }
@media(max-height:550px){.boot-log{max-height:90px;overflow:hidden}.boot-footer{bottom:28px}.boot-readout{margin:3px 0 8px}.boot-number{font-size:32px}.boot-channel{margin-bottom:8px}.boot-console{top:28px}.boot-note{margin-top:5px}}
@media(prefers-reduced-motion:reduce){.boot-log li{animation:none}.boot-meter::before{transition:none}}

.boot-console,.boot-footer{font-family:var(--vy-scto);font-weight:500;letter-spacing:-.02em}
.boot-channel{letter-spacing:-.02em}.boot-number{font-weight:400;letter-spacing:-.04em}
#fv-space #fv-retry:not(.hm-button){font-family:var(--vy-scto),"Hiragino Kaku Gothic Pro",sans-serif;font-size:12px;letter-spacing:-.02em;min-height:40px;padding:10px 18px;border:1px solid #a999d985;border-radius:999px;background:radial-gradient(ellipse at 50% 110%,#7761aa55,transparent 75%),#171322b3;color:#ede6ff;box-shadow:inset 0 1px 8px #ddd2ff12;cursor:pointer;transition:background .2s,box-shadow .2s}
#fv-space #fv-retry:not(.hm-button):hover{background-color:#302440;box-shadow:inset 0 1px 12px #ddd2ff25}
#fv-space #fv-retry:not(.hm-button):focus-visible{outline:2px solid #d4c8ff;outline-offset:4px}
/* Keep retry messaging clear of the progress footer on short/mobile screens. */
#fv-space[data-boot-error] .fv-message{top:56%;bottom:auto}

#fv-space #fv-retry:not(.hm-button){border-radius:4px;background:linear-gradient(115deg,#47459880,#19162be6 70%);border-color:#7773bb99}

/* Content-aligned loading readout; local heading font matches the site titles. */
#fv-space::before{content:none}
#fv-space .boot-console,#fv-space .boot-footer{left:24px;right:24px;color:#fff}
#fv-space .boot-ident,#fv-space .boot-channel,#fv-space .boot-log,#fv-space .boot-log li:last-child,#fv-space .boot-phase,#fv-space .boot-readout,#fv-space .boot-note,#fv-space .fv-message{color:#fff}
#fv-space .boot-number{display:inline-flex;font-family:"VY Tartuffo Trial",serif;font-weight:300;font-synthesis:none;letter-spacing:-.02em}
.boot-digit{position:relative;display:inline-block;width:.6em;height:1.12em;overflow:hidden;text-align:center;line-height:1.12}
.boot-digit-old,.boot-digit-new{position:absolute;inset:0;display:block}
.boot-digit-old{animation:boot-digit-out 32ms linear both}
.boot-digit-new{animation:boot-digit-in 32ms linear both}
@keyframes boot-digit-out{from{transform:translateY(0)}to{transform:translateY(-112%)}}
@keyframes boot-digit-in{from{transform:translateY(112%)}to{transform:translateY(0)}}
@media(max-width:767px){#fv-space .boot-console,#fv-space .boot-footer{left:18px;right:18px}}
@media(prefers-reduced-motion:reduce){.boot-digit-old{display:none}.boot-digit-new{animation:none;transform:none}}

/* Final loading spacing and heading-scale readout. */
#fv-space .boot-console{top:24px}
#fv-space .boot-footer{bottom:24px}
#fv-space .boot-number{font-size:clamp(64px,7.03vw,96px);letter-spacing:-.02em}
#fv-space .boot-note{display:none}
#fv-space .boot-ident::before{background:#474598;box-shadow:none}
#fv-space .boot-meter::before{background:#474598;box-shadow:none}

/* The progress track touches the viewport edges independently of the readout. */
#fv-space .boot-meter{position:fixed;left:0;right:0;bottom:0;width:100%;max-width:none;height:3px}

/* Align the visible numeral ink, not its line-box, to the 24px bottom gutter. */
#fv-space .boot-readout{margin:8px 0 0;align-items:flex-end;gap:6px}
#fv-space .boot-number{gap:0;letter-spacing:0}
#fv-space .boot-digit{flex:none;width:var(--boot-cell,.45em);height:var(--boot-ink-height,.76em);line-height:1;text-align:center}
#fv-space .boot-digit-old,#fv-space .boot-digit-new{top:var(--boot-ink-top,-.15em);bottom:auto;height:1em;line-height:1}
#fv-space .boot-digit:not(:has(span)){line-height:var(--boot-ink-height,.76em)}

/* Figma 9734:1367 / 9734:1488 — 2026-11-25. Shared by the top and direct-entry pages. */
@font-face{font-family:"HAMONI Geist Mono";src:url('/voyage/assets/loading/geist-mono-medium.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap}
html #fv-space{--boot-ring:min(640px,calc(100vw - 80px),calc(100svh - 128px));background:#080912;color:#fff;font:500 10px/1.2 "HAMONI Geist Mono",monospace;letter-spacing:-.02em;text-transform:uppercase}
#fv-space::before,#fv-space::after{content:none}
/* Persistent viewport frame; responsive CSS outline is defined below. */
body::after{content:"";position:fixed;inset:12px;z-index:2147483001;pointer-events:none;border:40px solid transparent;border-image:none;box-sizing:border-box}
html #fv-space .fv-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:100px;height:auto;filter:none;color:#fff}
#fv-space .boot-console,#fv-space .boot-footer,#fv-space .boot-clock,#fv-space .boot-welcome{font:inherit;letter-spacing:inherit}
#fv-space .boot-console{left:max(64px,env(safe-area-inset-left));right:auto;top:max(56px,env(safe-area-inset-top));color:rgb(255 255 255 / .25)}
#fv-space .boot-ident,#fv-space .boot-channel,#fv-space .boot-log,#fv-space .boot-log li:last-child{color:inherit;font:inherit;letter-spacing:inherit}
#fv-space .boot-ident{display:block}#fv-space .boot-ident::before{content:none}
#fv-space .boot-channel{margin:0 0 12px}
#fv-space .boot-command{margin-bottom:12px}
#fv-space .boot-path{max-width:260px;overflow-wrap:anywhere;white-space:normal}
#fv-space .boot-log{max-width:none;max-height:none;overflow:visible}
#fv-space .boot-log li{padding:0;animation:boot-line .25s ease-out both}
#fv-space .boot-terminal-end{white-space:pre-line;margin-top:12px}
#fv-space .boot-terminal-end::after{content:"_";animation:boot-caret 1s steps(1) infinite}
#fv-space .boot-welcome{position:absolute;top:calc(50% - 124px);left:50%;transform:translateX(-50%);margin:0;text-align:center;white-space:nowrap}
#fv-space .boot-footer{position:absolute;left:50%;right:auto;top:calc(50% + 112.92px);bottom:auto;transform:translateX(-50%);text-align:center;white-space:nowrap}
#fv-space .boot-phase{color:#fff}
#fv-space .boot-readout{justify-content:center;align-items:center;gap:0;margin:12px 0 0;font-size:16px;line-height:1.2;letter-spacing:-.02em;color:#fff}
#fv-space .boot-number{font:inherit;letter-spacing:inherit;display:inline-flex}
#fv-space .boot-digit{width:.6em;height:1.2em;line-height:1.2}
#fv-space .boot-digit-new,#fv-space .boot-digit-old{top:0;height:1.2em;line-height:1.2}
#fv-space .boot-meter{position:fixed;left:50%;top:calc(-112.92px);right:auto;bottom:auto;transform:translate(-50%,-50%);width:var(--boot-ring);height:var(--boot-ring);max-width:none;background:none;opacity:1;pointer-events:none}
#fv-space .boot-meter::before{position:absolute;inset:0;width:auto;height:auto;box-shadow:none;transition:none;background:none;mask-image:conic-gradient(#000 0deg var(--boot-angle,0deg),transparent var(--boot-angle,0deg) 360deg);opacity:1}
#fv-space .boot-clock{position:absolute;left:max(64px,env(safe-area-inset-left));bottom:max(54px,env(safe-area-inset-bottom));color:rgb(255 255 255 / .25)}
#fv-space .fv-message{z-index:3}
#fv-space[data-boot-error] .fv-message{top:auto;bottom:80px}
#fv-space[data-boot-error] .boot-terminal-end::after{animation:none}
@keyframes boot-caret{50%{opacity:0}}
@media(max-width:767px){
 html #fv-space{--boot-ring:min(420px,calc(100vw - 56px),calc(100svh - 330px))}
 #fv-space .boot-console{left:max(28px,env(safe-area-inset-left));top:max(56px,env(safe-area-inset-top));font-size:10px}
 #fv-space .boot-clock{left:max(28px,env(safe-area-inset-left));bottom:max(56px,env(safe-area-inset-bottom));font-size:10px}
 html #fv-space .fv-logo{width:80px;top:57%}
 #fv-space .boot-welcome{top:calc(57% - 92px);font-size:10px}
 #fv-space .boot-footer{top:calc(57% + 76px);font-size:10px}
 #fv-space .boot-meter{top:-76px}
 #fv-space .boot-readout{font-size:16px}
}
@media(max-height:600px) and (min-width:768px){
 html #fv-space{--boot-ring:calc(100svh - 64px)}
 #fv-space .boot-console{top:32px;left:32px;font-size:10px}
 #fv-space .boot-clock{left:32px;bottom:32px;font-size:10px}
}
@media(max-height:650px) and (max-width:767px){
 html #fv-space{--boot-ring:min(calc(100vw - 56px),260px)}
 #fv-space .boot-console{font-size:10px;line-height:1.2}
 #fv-space .boot-log{max-height:58px;overflow:hidden}
 #fv-space .boot-welcome{top:calc(57% - 82px)}
 #fv-space .boot-footer{top:calc(57% + 62px)}
 #fv-space .boot-meter{top:-62px}
}
@media(prefers-reduced-motion:reduce){#fv-space .boot-log li,#fv-space .boot-terminal-end::after{animation:none}}

#fv-space .boot-meter::after{content:"";position:absolute;inset:0;background:none;opacity:.2;pointer-events:none}

/* User revision: live HTML/SVG/CSS geometry, no exported frame or ring images. */
body::after{--boot-frame-cut:40px;--boot-frame-inner-cut:calc(var(--boot-frame-cut) + .414px);border:0;border-image:none;background:rgb(255 255 255 / .2);clip-path:polygon(evenodd,0 var(--boot-frame-cut),var(--boot-frame-cut) 0,calc(100% - var(--boot-frame-cut)) 0,100% var(--boot-frame-cut),100% calc(100% - var(--boot-frame-cut)),calc(100% - var(--boot-frame-cut)) 100%,var(--boot-frame-cut) 100%,0 calc(100% - var(--boot-frame-cut)),0 var(--boot-frame-cut),1px var(--boot-frame-inner-cut),var(--boot-frame-inner-cut) 1px,calc(100% - var(--boot-frame-inner-cut)) 1px,calc(100% - 1px) var(--boot-frame-inner-cut),calc(100% - 1px) calc(100% - var(--boot-frame-inner-cut)),calc(100% - var(--boot-frame-inner-cut)) calc(100% - 1px),var(--boot-frame-inner-cut) calc(100% - 1px),1px calc(100% - var(--boot-frame-inner-cut)),1px var(--boot-frame-inner-cut))}
#fv-space .boot-meter::before,#fv-space .boot-meter::after{content:none;background:none;mask-image:none}
#fv-space .boot-ring{display:block;width:100%;height:100%;overflow:visible;transform:rotate(-90deg)}
#fv-space .boot-ring circle{fill:none}
#fv-space .boot-ring-track,#fv-space .boot-ring-fill{stroke:#fff;stroke-width:6;stroke-dasharray:.15 .85}
#fv-space .boot-ring-track{opacity:.2}
#fv-space .boot-ring-arc{stroke:white;stroke-width:8;stroke-dasharray:100;stroke-dashoffset:var(--boot-offset,100)}
@media(max-width:767px){
 html #fv-space{--boot-ring:min(640px,calc(100vw - 56px),calc(100svh - 80px))}
 html #fv-space .fv-logo{top:50%}
 #fv-space .boot-welcome{top:calc(50% - 80px);font-size:10px}
 #fv-space .boot-footer{top:calc(50% + 60px);font-size:10px}
 #fv-space .boot-meter{top:-60px}
 #fv-space .boot-readout{margin-top:8px;font-size:10px}
 #fv-space .boot-console{color:rgb(255 255 255 / .12);z-index:-1}
 #fv-space .boot-log{max-height:none;overflow:visible}
}

/* SP frame: lighter corners and more room around the content. */
@media(max-width:767px){body::after{inset:8px;--boot-frame-cut:24px}}

/* Mobile terminal and local clock stay quiet and close to the frame. */
@media(max-width:767px){
 #fv-space .boot-console{left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));top:max(32px,env(safe-area-inset-top));color:rgb(255 255 255 / .12)}
 #fv-space .boot-clock{left:max(24px,env(safe-area-inset-left));bottom:max(32px,env(safe-area-inset-bottom));color:rgb(255 255 255 / .12)}
}

/* Retry uses the shared button; only its placement belongs to the loader. */
#fv-space #fv-retry.hm-button{margin-top:16px}
#fv-space #fv-retry[hidden]{display:none}
