:root {
  color-scheme: light;
  --paper: #f8f8f6;
  --ink: #292d2f;
  --muted: #566060;
  --red: #a73728;
  --red-dark: #852a20;
  --red-soft: #f8efed;
  --gold: #aa8b57;
  --line: #d8dada;
  --field: #c4c7c7;
  --serif: "Songti SC", "STSong", "SimSun", serif;
  --sans: "Segoe UI", "Microsoft YaHei", sans-serif;
  --nav-height: 64px;
}
body { isolation: isolate; }
svg.lucide { width: 17px; height: 17px; flex: none; stroke-width: 1.65; }
.scene { position: fixed; inset: var(--nav-height) 0 0; z-index: -1; pointer-events: none; overflow: hidden; }
.scene-composition {
  position: absolute; bottom: 0; left: 50%;
  width: max(100%, calc((100svh - var(--nav-height)) * 16 / 9));
  aspect-ratio: 16 / 9; transform: translateX(-50%);
}
.ink-field {
  position: absolute; inset: 0; width: 100%; aspect-ratio: 16 / 9; --ink-strength: .74;
  mask-image: linear-gradient(to right, #000 12%, #000000b3 23%, #00000012 34%, #00000012 66%, #000000b3 77%, #000 88%);
}
.ink-reveal, .ink-frame, .ink-still, .ink-flow, .lake-flow, .gold-shimmer, .ink-notations, .orbit-lines, .constellations {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.ink-reveal { mask-image: radial-gradient(ellipse, #000 42%, #000000b3 56%, transparent 74%); mask-position: center; mask-size: 300% 300%; mask-repeat: no-repeat; }
.ink-reveal.entering { animation: ink-arrival 1.1s cubic-bezier(.22, .61, .36, 1) both; }
.ink-frame { opacity: var(--ink-strength); }
.ink-still, .ink-flow, .lake-flow { opacity: 0; }
.ink-still { clip-path: polygon(0 57%, 36.5% 57%, 36.5% 0, 71% 0, 71% 73%, 100% 73%, 100% 100%, 0 100%); }
.ink-flow { clip-path: polygon(evenodd, 0 0, 36.5% 0, 36.5% 57%, 0 57%, 0 0, 71% 0, 100% 0, 100% 73%, 71% 73%, 71% 0); }
.flow-ready .ink-frame { opacity: 0; }
.flow-ready .ink-still, .flow-ready .ink-flow { opacity: var(--ink-strength); }
.ink-reveal.lake-ready .ink-frame, .ink-reveal.lake-ready .ink-still { clip-path: polygon(0 0, 100% 0, 100% 94.4%, 0 94.4%); }
.ink-reveal.flow-ready.lake-ready .ink-still { clip-path: polygon(0 57%, 36.5% 57%, 36.5% 0, 71% 0, 71% 73%, 100% 73%, 100% 94.4%, 0 94.4%); }
.ink-reveal.lake-ready .lake-flow { opacity: var(--ink-strength); clip-path: inset(94.4% 0 0); }
.gold-shimmer { opacity: .68; mask-image: linear-gradient(110deg, transparent 22%, #000 42%, #000 56%, transparent 75%); mask-size: 180% 100%; animation: trace-sweep 7s ease-in-out infinite alternate; }
.ink-notations { color: #96794d; mask-image: linear-gradient(to bottom, transparent 10%, #000 25%, #000 53%, transparent 69%); }
.ink-measure { opacity: .38; animation: measure-breathe 14s ease-in-out infinite; }
.measure-arc { stroke: currentColor; stroke-width: 1.1; stroke-dasharray: 54 10 6 10; }
.measure-ticks { stroke: currentColor; stroke-width: 1.4; }
.brush-gold { stroke: #b29660; stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 16 7 4 8 11 54; opacity: .35; }
.brush-gold-left { animation: brush-emerge 14s ease-in-out infinite; }
.brush-gold-right { animation: brush-emerge 17s ease-in-out -6s infinite; }
.orbit-lines { color: #b68b40; opacity: .92; }
.orbit { stroke: currentColor; stroke-width: 1.8; stroke-dasharray: 118 882; stroke-linecap: round; opacity: .12; animation: orbital-trace var(--cycle, 7s) linear infinite; animation-delay: var(--phase, -3.8s); }
.orbit-second { --cycle: 7.8s; --phase: -1.8s; }
.tail-far { stroke-dasharray: 46 954; opacity: .18; }
.tail-mid { --trail-start: -44px; stroke-dasharray: 38 962; stroke-width: 2.2; opacity: .34; }
.tail-near { --trail-start: -80px; stroke-dasharray: 28 972; stroke-width: 2.5; opacity: .65; }
.orbit-head, .orbit-core { --trail-start: -108px; stroke-dasharray: .6 999.4; }
.orbit-head { stroke: #c99a45; stroke-width: 6; opacity: 1; }
.orbit-core { stroke: #fff6de; stroke-width: 2.3; opacity: .95; }
.constellations { opacity: 1; }
.constellation-star { --beat: 0s; opacity: .28; animation: star-awaken 7s ease-in-out infinite; animation-delay: var(--beat); }
.constellation-star:nth-of-type(2) { --beat: .4s; }
.constellation-star:nth-of-type(3) { --beat: .8s; }
.constellation-star:nth-of-type(4) { --beat: 2s; }
.constellation-star:nth-of-type(5) { --beat: 2.4s; }
.constellation-star:nth-of-type(6) { --beat: 2.8s; }
.constellation-star:nth-of-type(7) { --beat: 4s; }
.constellation-star:nth-of-type(8) { --beat: 4.4s; }
.star-core { fill: #bf9144; stroke: #fff5de; stroke-width: 1.2; }
.star-ring { stroke: #ba8f43; stroke-width: 1.3; opacity: 0; transform-box: fill-box; transform-origin: center; animation: star-ripple 7s ease-out infinite; animation-delay: var(--beat); }
.constellation-trace { stroke: #ba8f43; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 34 102; opacity: 0; animation: star-trace 7s linear infinite; }
.trace-right { animation-delay: 2s; }
.trace-lower { animation-delay: 4s; }
.sun { position: absolute; top: max(13.5%, calc(100% - (100svh - var(--nav-height)) + 48px)); left: 73.8%; width: 7.5%; aspect-ratio: 240 / 190; opacity: .88; }
.sun-source, .sun-flow, .mist-source { position: absolute; inset: 0; width: 100%; height: 100%; }
.sun-flow { opacity: 0; }
.sun-ready .sun-source { opacity: 0; }
.sun-ready .sun-flow { opacity: 1; }
.mist { --drift: 1; position: absolute; width: 72%; aspect-ratio: 1400 / 290; opacity: .85; }
.mist-left { top: 62%; left: -12%; mask-image: linear-gradient(to right, #000 22%, #000000b3 42%, transparent 65%); animation: mist-pass 7.5s linear -2s infinite; }
.mist-right { top: 77%; left: 55%; mask-image: linear-gradient(to right, transparent 5%, #000000b3 28%, #000 48%); animation: mist-return 9.5s linear -5s infinite; }
.mobile-landscape, .edge-current { display: none; }
.inscription { position: absolute; color: #68706d; font: 400 22px/1.5 var(--serif); opacity: .42; mix-blend-mode: multiply; }
.inscription-distributed { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 12px; }
.inscription-distributed span { writing-mode: vertical-rl; white-space: nowrap; }
.inscription-distributed span + span { margin-top: 18px; }
.inscription-distributed-sky { top: max(23%, calc(100% - (100svh - var(--nav-height)) + 184px)); left: max(calc(50% - 648px), calc(50% - 50vw + 24px)); gap: 9px; font-size: 16px; opacity: .18; filter: blur(.3px); }
.inscription-distributed-sky span + span { margin-top: 12px; }
.inscription-distributed-left { top: max(41%, calc(100% - (100svh - var(--nav-height)) + 300px)); left: calc(50% - 562px); font-size: 20px; opacity: .3; }
.inscription-distributed-left span { transform: rotate(-2deg); }
.inscription-distributed-right { top: max(20.5%, calc(100% - (100svh - var(--nav-height)) + 164px)); left: calc(50% + 488px); opacity: .38; }
.inscription-distributed-right span { transform: rotate(1deg); }
.inscription-distributed-mountain { top: 65%; left: calc(50% + 510px); gap: 10px; font-size: 18px; opacity: .25; }
.inscription-distributed-mountain span { transform: rotate(-1deg); }
.inscription-distributed-mountain span + span { margin-top: 24px; }
.inscription-coda {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  margin: 34px 0 4px; padding: 0 38px 0 70px; pointer-events: none;
}
.inscription-coda .inscription { position: relative; display: flex; gap: 18px; }
.inscription-coda-near { font-size: 18px; opacity: .28; }
.inscription-coda-far { margin-top: 14px; font-size: 16px; opacity: .2; filter: blur(.2px); }
.inscription-coda span { white-space: nowrap; }
body[data-view="result"] .scene, body[data-view="policy"] .scene { opacity: .32; }
body[data-view="account"] .scene { opacity: .6; }
body:not([data-view="entry"]) .orbit-lines,
body:not([data-view="entry"]) .constellations,
body:not([data-view="entry"]) .ink-notations,
body:not([data-view="entry"]) .edge-current,
body:not([data-view="entry"]) .inscription { display: none; }
body[data-motion="paused"] .moving { animation-play-state: paused; }
body[data-motion="paused"] .ink-reveal.entering { animation: none; }
@keyframes ink-arrival { from { mask-size: 0% 160%; opacity: .2; } to { mask-size: 300% 300%; opacity: 1; } }
@keyframes measure-breathe { 0%, 100% { opacity: .24; } 45%, 65% { opacity: .54; } }
@keyframes brush-emerge { 0%, 100% { opacity: .18; stroke-dashoffset: 3; } 45%, 60% { opacity: .6; stroke-dashoffset: -4; } }
@keyframes trace-sweep { from { mask-position: 100% 0; } to { mask-position: 0 0; } }
@keyframes orbital-trace { from { stroke-dashoffset: var(--trail-start, 0px); } to { stroke-dashoffset: calc(-1000px + var(--trail-start, 0px)); } }
@keyframes star-awaken { 0%, 8%, 46%, 100% { opacity: .22; } 16%, 30% { opacity: 1; } }
@keyframes star-ripple { 0%, 8% { transform: scale(.55); opacity: 0; } 16% { transform: scale(.85); opacity: 1; } 42%, 100% { transform: scale(2.5); opacity: 0; } }
@keyframes star-trace { 0% { stroke-dashoffset: 34; opacity: 0; } 8% { opacity: 1; } 31% { stroke-dashoffset: -100; opacity: .85; } 40%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes mist-pass {
  0% { transform: translate3d(calc(210px * var(--drift)), -8px, 0); opacity: 0; }
  12% { opacity: .55; } 35% { opacity: .98; } 62% { opacity: .92; } 82% { opacity: .5; }
  96%, 100% { opacity: 0; } 100% { transform: translate3d(calc(-190px * var(--drift)), 8px, 0); }
}
@keyframes mist-return {
  0% { transform: translate3d(calc(230px * var(--drift)), 10px, 0); opacity: 0; }
  14% { opacity: .5; } 40% { opacity: .96; } 65% { opacity: .9; } 84% { opacity: .45; }
  96%, 100% { opacity: 0; } 100% { transform: translate3d(calc(-160px * var(--drift)), -8px, 0); }
}
@media (max-width: 1199px) {
  .inscription, .inscription-coda { display: none; }
  .ink-field { --ink-strength: .65; mask-image: linear-gradient(to right, #000 0%, #000 20%, #0000000a 32%, #0000000a 68%, #000 80%, #000 100%); }
}
@media (min-width: 801px) and (max-width: 1199px) {
  .inscription-coda, .inscription-coda .inscription { display: flex; }
}
@media (max-width: 800px) {
  :root { --nav-height: 90px; }
  .sun { opacity: .8; }
  .ink-field { --ink-strength: .62; mask-image: linear-gradient(to right, #000 10%, #000000b3 18%, #00000008 23%, #00000008 77%, #000000b3 82%, #000 90%); }
}
@media (max-width: 540px) {
  :root { --nav-height: 86px; }
  .scene-composition { top: 0; bottom: auto; width: 540px; }
  .ink-field { --ink-strength: .68; mask-image: linear-gradient(to right, #000 0%, #000000b3 16%, #00000008 24%, #00000008 76%, #000000b3 84%, #000 100%); }
  .mobile-landscape {
    display: block; position: absolute; bottom: 0; left: 50%; width: 720px; height: 300px;
    overflow: hidden; transform: translateX(-50%); opacity: .26;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 100%);
  }
  .mobile-landscape .ink-still, .mobile-landscape .lake-flow { top: auto; bottom: 0; height: 405px; clip-path: none; }
  .mobile-landscape .ink-still, .mobile-landscape.lake-ready .lake-flow { opacity: 1; }
  .mobile-landscape.lake-ready .ink-still { opacity: 0; }
  .sun { top: 69px; left: calc(50% + 50vw - 60px); width: 80px; opacity: .78; }
  .mist { --drift: .25; width: 90%; }
  .mist-left { top: 57%; left: -30%; }
  .mist-right { top: 77%; left: 28%; mask-image: linear-gradient(to right, transparent 0%, #000 25%); }
  .orbit-lines { opacity: .75; }
  .star-core { r: 7px; } .star-ring { r: 14px; }
  .edge-current { display: block; position: absolute; top: 150px; left: 0; width: 100%; height: calc(100% - 150px); color: #ba8f43; opacity: .72; }
  .edge-current .orbit { stroke-width: 1.4; }
  .edge-current .orbit-head { stroke-width: 4.5; }
  .edge-current .orbit-core { stroke-width: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  .moving { animation: none !important; }
}
