:root {
  --background: #06101b;
  --foreground: #f3eadf;
  --font-geist-sans: Arial, Helvetica, sans-serif;
  --font-geist-mono: "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color-scheme: dark;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell,
#scroll-world {
  min-height: 100vh;
}

#scroll-world {
  --sw-bg: #06101b;
  --sw-ink: #f3eadf;
  --sw-ink-soft: #a8b2bd;
  --sw-accent: #e3a65f;
  --sw-font-display: "Iowan Old Style", Baskerville, Georgia, serif;
  --sw-font-body: var(--font-geist-sans), system-ui, sans-serif;
  background: #06101b;
}

#scroll-world::after {
  position: fixed;
  z-index: 64;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

#scroll-world .sw-sky__grad {
  background: radial-gradient(60% 48% at 76% 42%, color-mix(in srgb, var(--sw-accent) 11%, transparent), transparent 72%),
    linear-gradient(180deg, #071523 0%, #040a12 100%);
}

#scroll-world .sw-sky__glow {
  opacity: 0.3;
  background: radial-gradient(46% 36% at 68% 40%, color-mix(in srgb, var(--sw-accent) 18%, transparent), transparent 72%);
}

#scroll-world .sw-topbar {
  padding-top: 25px;
}

#scroll-world .sw-brand {
  gap: 11px;
  color: #f3eadf;
}

#scroll-world .sw-brand__mark {
  width: 13px;
  height: 13px;
  border: 1px solid color-mix(in srgb, var(--sw-accent) 65%, #fff);
  border-radius: 50%;
  background: radial-gradient(circle, var(--sw-accent) 0 24%, transparent 28% 100%);
  box-shadow: 0 0 20px color-mix(in srgb, var(--sw-accent) 42%, transparent);
}

#scroll-world .sw-brand__name {
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 0.7rem;
  font-weight: 570;
  letter-spacing: 0.18em;
}

#scroll-world .sw-nav {
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(243, 234, 223, 0.13);
  border-radius: 12px;
  background: rgba(5, 13, 23, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

#scroll-world .sw-nav__item {
  padding: 8px 15px;
  border-radius: 8px;
  color: #a8b2bd;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#scroll-world .sw-nav__item.is-active {
  background: var(--sw-accent);
  color: #07111c;
}

#scroll-world .sw-scrollbar {
  height: 2px;
  background: rgba(243, 234, 223, 0.08);
}

#scroll-world .sw-copylayer::before {
  width: min(63vw, 920px);
  background: linear-gradient(90deg, rgba(4, 10, 18, 0.97) 0%, rgba(4, 10, 18, 0.82) 31%, rgba(4, 10, 18, 0.35) 62%, transparent 100%);
}

#scroll-world .sw-copy {
  width: min(40vw, 535px);
}

#scroll-world .sw-copy__num {
  color: #82909d;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

#scroll-world .sw-copy__eyebrow {
  margin-top: 23px;
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0.17em;
}

#scroll-world .sw-copy__title {
  max-width: 10.5ch;
  margin-top: 15px;
  color: #f3eadf;
  font-size: clamp(2.8rem, 5.2vw, 5.7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-shadow: 0 4px 32px #040a12;
}

#scroll-world .sw-copy__body {
  max-width: 46ch;
  margin-top: 24px;
  color: #bdc5ca;
  font-size: clamp(0.96rem, 1.12vw, 1.1rem);
  line-height: 1.62;
  text-wrap: pretty;
}

#scroll-world .sw-copy__tags {
  gap: 7px;
  margin-top: 26px;
}

#scroll-world .sw-copy__tags li {
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--sw-accent) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--sw-accent) 8%, rgba(4, 10, 18, 0.72));
  color: color-mix(in srgb, var(--sw-accent) 75%, #f3eadf);
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.09em;
}

#scroll-world .sw-route::before {
  width: 1px;
  opacity: 0.22;
}

#scroll-world .sw-route__dot i {
  width: 8px;
  height: 8px;
  border: 1px solid color-mix(in srgb, var(--sw-accent) 55%, #fff);
  background: #06101b;
}

#scroll-world .sw-route__dot.is-active i {
  background: var(--sw-accent);
  box-shadow: 0 0 0 5px rgba(6, 16, 27, 0.72), 0 0 18px var(--sw-accent);
}

#scroll-world .sw-route__label {
  border: 1px solid rgba(243, 234, 223, 0.13);
  border-radius: 8px;
  background: rgba(5, 13, 23, 0.82);
  color: #d9dde0;
  font-size: 0.66rem;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#scroll-world .sw-hint {
  bottom: 30px;
  color: #8795a1;
  font-size: 0.6rem;
  letter-spacing: 0.17em;
}

#scroll-world .sw-hint i {
  width: 18px;
  height: 29px;
  border: 1px solid rgba(243, 234, 223, 0.26);
}

.field-note {
  position: fixed;
  z-index: 45;
  right: clamp(18px, 5vw, 64px);
  bottom: 26px;
  display: flex;
  gap: 18px;
  color: rgba(243, 234, 223, 0.44);
  font-family: var(--font-geist-sans), sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.13em;
  pointer-events: none;
}

.field-note span + span::before {
  content: "·";
  margin-right: 18px;
  color: rgba(243, 234, 223, 0.2);
}

@media (max-width: 860px) {
  .field-note {
    display: none;
  }

  #scroll-world .sw-copylayer::before {
    width: 100%;
    background: linear-gradient(0deg, #06101b 8%, rgba(6, 16, 27, 0.82) 48%, transparent 100%);
  }

  #scroll-world .sw-copy {
    width: auto;
  }

  #scroll-world .sw-copy__title {
    font-size: clamp(2.35rem, 10vw, 3.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #scroll-world::after {
    display: none;
  }
}
