/* Shared arrival screens: original artwork, quiet implant interface. */
.entry-scenery { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; --entry-art: url('/entry-assets/login-v1.webp'); --entry-art-position: center; background: #101b1a var(--entry-art) var(--entry-art-position) / cover no-repeat; }
.entry-scenery::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(5 13 15 / 42%), rgb(5 14 16 / 20%) 48%, rgb(5 13 15 / 50%)), linear-gradient(0deg, rgb(4 13 15 / 84%), transparent 38%, rgb(4 13 15 / 22%)); }
.entry-scenery::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 28% 70%, rgb(156 189 172 / 8%), transparent 55%); animation: entry-breath 15s ease-in-out infinite alternate; }
.entry-eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 26px; color: #b0ccbd; font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase; }
.entry-eyebrow::before { content: ''; width: 30px; height: 1px; background: #b8bc92; }
.entry-title { margin: 0; color: #f0ead8; font: 400 clamp(56px, 6.5vw, 88px)/.98 Georgia, serif; letter-spacing: -2.5px; text-shadow: 0 3px 35px rgb(0 0 0 / 24%); }
.entry-story { max-width: 330px; margin: 28px 0 0; color: #bec9bd; font-size: 13px; line-height: 1.85; text-wrap: pretty; }
.entry-signal { position: absolute; bottom: max(30px, env(safe-area-inset-bottom)); left: 7vw; margin: 0; display: flex; align-items: center; gap: 11px; color: #b3c4b5; font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; }
.entry-signal::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #b1d2bc; box-shadow: 0 0 12px rgb(177 210 188 / 35%); }
.entry-open .interface, .entry-open .photo-control, .entry-open .account-hud { visibility: hidden; pointer-events: none; }
#entry-music { display: none; }
.entry-open #entry-music { position: fixed; z-index: 90; bottom: max(21px, env(safe-area-inset-bottom)); right: 7vw; display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 44px; padding: 9px 13px; border: 1px solid rgb(178 202 184 / 22%); border-radius: 4px; background: rgb(9 23 25 / 60%); color: #c4d5c7; font-size: 10px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#entry-music svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
#entry-music[aria-pressed='true'] .entry-music-off { display: none; }
#entry-music:focus-visible, #error-retry:focus-visible { outline: 2px solid #add3be; outline-offset: 4px; }
.halo-preview .entry-screen { position: fixed; inset: 0; isolation: isolate; z-index: 70; display: flex; align-items: center; padding: 64px 7vw 110px; overflow-y: auto; color: #e4e5d6; background: #101917; }
.entry-screen .entry-scenery { --entry-art: url('/entry-assets/loading-v1.webp'); --entry-art-position: center; }
.entry-screen .entry-scenery::before { background: linear-gradient(90deg, rgb(4 14 17 / 65%), rgb(4 14 17 / 25%) 55%, rgb(4 14 17 / 3%)), linear-gradient(0deg, rgb(4 12 14 / 80%), transparent 60%); }
.entry-screen .entry-scenery::after { background: radial-gradient(ellipse at 35% 65%, rgb(154 191 170 / 7%), transparent 58%); }
.halo-preview .entry-screen .loading-content { width: min(510px, 100%); text-align: left; }
.entry-screen .loading-mark { width: 44px; height: 50px; margin: 0 0 28px; fill: none; stroke: #cab68a; stroke-width: 1; }
.halo-preview .entry-screen h2.entry-title { margin: 0; font-size: clamp(58px, 6.3vw, 86px); line-height: .98; letter-spacing: -2.5px; }
.entry-screen .loading-intro { margin: 24px 0 46px; color: #c2cabe; font-size: 13px; line-height: 1.8; }
.loading-readout { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.halo-preview .entry-screen #loading-label { min-height: 0; margin: 0; color: #d9e5d8; font-size: 12px; line-height: 1.6; }
#loading-percent { color: #b8cfbd; font: 12px/1.6 ui-monospace, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.halo-preview .entry-screen #loading-progress { height: 3px; margin: 15px 0 23px; border-radius: 2px; overflow: hidden; background: rgb(175 198 178 / 20%); accent-color: #b8cba5; }
.halo-preview .entry-screen #loading-progress::-webkit-progress-bar { background: rgb(175 198 178 / 20%); }
.halo-preview .entry-screen #loading-progress::-webkit-progress-value { background: linear-gradient(90deg, #7aa79c, #d0c398); transition: width .35s ease; }
.halo-preview .entry-screen #loading-progress::-moz-progress-bar { background: #b8cba5; }
.loading-steps { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 0; list-style: none; }
.loading-steps li { display: flex; align-items: center; gap: 8px; color: #95a99e; font-size: 10px; }
.loading-steps li::before { content: ''; width: 4px; height: 4px; border: 1px solid currentColor; transform: rotate(45deg); }
.loading-steps li[aria-current='step'] { color: #e0e5c9; }
.loading-steps li.is-complete { color: #adcdbb; }
.loading-steps li.is-complete::before { background: currentColor; }
.halo-preview .entry-screen .loading-note { margin: 33px 0 0; max-width: 400px; color: #aebaae; font-size: 11px; line-height: 1.7; letter-spacing: .1px; }
.halo-preview .entry-screen.is-ready { opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.halo-preview #error.entry-screen { z-index: 75; }
.entry-screen .error-content { width: min(440px, 100%); padding: 32px; border: 1px solid rgb(193 174 135 / 30%); border-radius: 6px; background: rgb(9 23 25 / 88%); }
.entry-screen .error-content h2 { margin: 0 0 18px; color: #e9e5d1; font: 400 32px/1.15 Georgia, serif; }
.entry-screen #error-message { margin: 0 0 26px; color: #c5cbbd; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.entry-screen #error-retry { min-height: 46px; padding: 10px 23px; border: 1px solid #c1c5a7; border-radius: 3px; color: #1b302e; background: #d2d7bb; font: inherit; font-size: 12px; cursor: pointer; }
@keyframes entry-breath { from { opacity: .3; } to { opacity: 1; } }
@media (max-width: 760px) {
  .entry-title { font-size: clamp(45px, 9.7vw, 66px); letter-spacing: -1.8px; }
  .entry-eyebrow { margin-bottom: 16px; font-size: 9px; letter-spacing: 1.8px; }
  .entry-story { font-size: 12px; margin-top: 18px; }
  .entry-signal { position: static; font-size: 8px; letter-spacing: 1px; }
  .entry-open #entry-music { right: 20px; bottom: max(15px, env(safe-area-inset-bottom)); }
  .halo-preview .entry-screen { padding: max(45px, env(safe-area-inset-top)) 28px 110px; align-items: center; }
  .entry-screen .entry-scenery { --entry-art-position: 61% center; }
  .entry-screen .entry-scenery::before { background: linear-gradient(90deg, rgb(4 14 17 / 78%), rgb(4 14 17 / 42%)), linear-gradient(0deg, rgb(4 12 14 / 65%), transparent 65%); }
  .halo-preview .entry-screen h2.entry-title { font-size: clamp(48px, 12vw, 72px); letter-spacing: -1.9px; }
  .entry-screen .loading-mark { margin-bottom: 26px; width: 35px; height: 42px; }
  .entry-screen .loading-intro { margin-bottom: 38px; font-size: 12px; }
  .entry-screen .entry-signal { position: absolute; left: 28px; bottom: 32px; max-width: calc(100% - 175px); line-height: 1.6; }
  .loading-steps li { font-size: 9px; gap: 6px; }
  .entry-screen .error-content { padding: 26px; }
}
@media (max-height: 590px) and (min-width: 761px) {
  .halo-preview .entry-screen { padding-top: 32px; padding-bottom: 80px; }
  .entry-screen .loading-mark { display: none; }
  .halo-preview .entry-screen h2.entry-title { font-size: 52px; }
  .entry-screen .loading-intro { margin: 20px 0 25px; }
  .halo-preview .entry-screen .loading-note { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .entry-scenery::after { animation: none; } .halo-preview .entry-screen.is-ready { transition: none; } .halo-preview .entry-screen #loading-progress::-webkit-progress-value { transition: none; } }

/* The artwork drifts independently of the text and form. Its overscan covers
   the viewport at both ends of the movement, including narrow screens. */
.entry-scenery[data-animated="true"] { background-image: none; }
.entry-landscape { position: absolute; inset: -3%; background: var(--entry-art) var(--entry-art-position, center) / cover no-repeat; transform-origin: 56% 48%; animation: entry-camera 32s ease-in-out infinite alternate; }
.entry-scenery::before { z-index: 2; }
.entry-scenery::after { z-index: 1; background: radial-gradient(ellipse at 8% 90%, rgb(238 155 66 / 18%), transparent 34%), radial-gradient(ellipse at 67% 35%, rgb(142 189 182 / 9%), transparent 48%); animation: entry-warmth 7s ease-in-out infinite alternate; }
.entry-screen .entry-scenery::after { background: radial-gradient(ellipse at 16% 85%, rgb(231 135 58 / 16%), transparent 36%), radial-gradient(ellipse at 74% 44%, rgb(199 163 113 / 7%), transparent 40%); }
.entry-haze { position: absolute; z-index: 1; inset: 35% -10% -10%; opacity: .5; background: radial-gradient(ellipse at 24% 73%, rgb(185 199 190 / 18%), transparent 45%), radial-gradient(ellipse at 75% 48%, rgb(194 202 190 / 13%), transparent 37%); animation: entry-haze 23s ease-in-out infinite alternate; }
.entry-embers { position: absolute; z-index: 3; inset: 0; }
.entry-embers i { position: absolute; left: var(--x); top: var(--y); width: 2px; height: 2px; border-radius: 50%; background: #dbc29c; box-shadow: 0 0 5px rgb(231 167 89 / 45%); opacity: 0; animation: entry-ember var(--duration, 17s) var(--delay, 0s) linear infinite; }
.entry-embers i:nth-child(3n) { width: 3px; height: 3px; background: #dfa167; }
.entry-embers i:nth-child(4n) { background: #bcd0c4; box-shadow: none; }
.entry-embers i:nth-child(1) { --x: 6%; --y: 96%; --delay: -4s; --duration: 17s; }
.entry-embers i:nth-child(2) { --x: 18%; --y: 87%; --delay: -11s; --duration: 23s; }
.entry-embers i:nth-child(3) { --x: 29%; --y: 100%; --delay: -8s; --duration: 19s; }
.entry-embers i:nth-child(4) { --x: 38%; --y: 72%; --delay: -15s; --duration: 24s; }
.entry-embers i:nth-child(5) { --x: 44%; --y: 94%; --delay: -2s; --duration: 15s; }
.entry-embers i:nth-child(6) { --x: 52%; --y: 86%; --delay: -12s; --duration: 22s; }
.entry-embers i:nth-child(7) { --x: 63%; --y: 100%; --delay: -6s; --duration: 18s; }
.entry-embers i:nth-child(8) { --x: 70%; --y: 62%; --delay: -18s; --duration: 26s; }
.entry-embers i:nth-child(9) { --x: 78%; --y: 96%; --delay: -9s; --duration: 20s; }
.entry-embers i:nth-child(10) { --x: 89%; --y: 90%; --delay: -3s; --duration: 16s; }
.entry-embers i:nth-child(11) { --x: 14%; --y: 63%; --delay: -14s; --duration: 21s; }
.entry-embers i:nth-child(12) { --x: 33%; --y: 80%; --delay: -20s; --duration: 27s; }
.entry-embers i:nth-child(13) { --x: 57%; --y: 74%; --delay: -7s; --duration: 19s; }
.entry-embers i:nth-child(14) { --x: 82%; --y: 78%; --delay: -16s; --duration: 25s; }
.entry-signal::before { animation: entry-link 2.8s ease-in-out infinite; }
.entry-screen .loading-mark { overflow: visible; }
.loading-trace { stroke: #d8eed8; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 16 84; animation: entry-trace 5s linear infinite; }
.loading-steps li.is-current::before { animation: entry-step 2.4s ease-in-out infinite; }
.entry-open:not(.auth-open) #loading .loading-content > * { animation: entry-reveal .75s both cubic-bezier(.2,.7,.25,1); }
.entry-open:not(.auth-open) #loading .loading-content > :nth-child(2) { animation-delay: .06s; }
.entry-open:not(.auth-open) #loading .loading-content > :nth-child(3) { animation-delay: .12s; }
.entry-open:not(.auth-open) #loading .loading-content > :nth-child(n+4) { animation-delay: .18s; }
@keyframes entry-camera { from { transform: scale(1) translate3d(-.5%, .3%, 0); } to { transform: scale(1.035) translate3d(.5%, -.3%, 0); } }
@keyframes entry-haze { from { transform: translate3d(-3%, 2%, 0); opacity: .3; } to { transform: translate3d(4%, -2%, 0); opacity: .75; } }
@keyframes entry-ember { 0% { opacity: 0; transform: translate3d(-18px, 30px, 0); } 18% { opacity: .6; } 72% { opacity: .35; } 100% { opacity: 0; transform: translate3d(80px, -240px, 0); } }
@keyframes entry-warmth { 0%, 100% { opacity: .45; } 30% { opacity: .8; } 64% { opacity: .6; } 84% { opacity: 1; } }
@keyframes entry-link { 0%, 100% { opacity: .4; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes entry-trace { to { stroke-dashoffset: -100; } }
@keyframes entry-step { 0%, 100% { opacity: .45; } 50% { opacity: 1; box-shadow: 0 0 10px rgb(193 219 179 / 32%); } }
@keyframes entry-reveal { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
/* Only the visible entry screen animates; the 3D world gets these resources back. */
.auth-open .entry-screen *, .auth-open .entry-screen::before, .auth-open .entry-screen::after,
.auth-open .entry-screen *::before, .auth-open .entry-screen *::after,
body:not(.entry-open) .entry-screen *, body:not(.entry-open) .entry-screen *::before, body:not(.entry-open) .entry-screen *::after,
.entry-paused .entry-screen *, .entry-paused .account-gate *,
.entry-paused .entry-screen *::before, .entry-paused .entry-screen *::after,
.entry-paused .account-gate *::before, .entry-paused .account-gate *::after { animation-play-state: paused !important; }
@media (max-width: 760px) {
  .account .entry-scenery { --entry-art-position: 27% center; }
  .entry-embers i:nth-child(n+9) { display: none; }
  .entry-landscape { animation-duration: 40s; }
  .entry-haze { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  .entry-scenery *, .entry-scenery::before, .entry-scenery::after, .entry-signal::before,
  .loading-trace, .loading-steps li.is-current::before,
  .entry-open:not(.auth-open) #loading .loading-content > * { animation: none !important; }
  .entry-embers { display: none; }
}
