/* Static and highlighted lines share one map and the same drawing coordinates. */
body { position: relative; isolation: isolate; }

.site-atmosphere {
  --terrain-width: max(100%, 74rem);
  --terrain-origin: 50%;
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.site-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./terrain-contours.svg?v=bd18d10a474e") var(--terrain-origin) top / var(--terrain-width) auto repeat-y;
}
.site-atmosphere::before, .contour-map {
  opacity: .28;
  mask-image: linear-gradient(90deg, #000 2%, #0009 12%, #0004 32%, #0003 59%, #0005 76%, #000 99%);
}
.site-atmosphere.has-map::before { display: none; }
.contour-defs { position: absolute; width: 0; height: 0; }
.contour-traces {
  position: absolute;
  top: 0;
  left: var(--terrain-origin);
  width: var(--terrain-width);
  transform: translateX(calc(-1 * var(--terrain-origin)));
}
.trace-tile { position: relative; width: 100%; aspect-ratio: 3 / 2; }
.trace-tile svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.contour-ember { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.contour-guide { stroke: #b18663; stroke-width: 1.1; opacity: .25; }
.ember-wake { stroke: #ff7530; opacity: .43; }
.ember-trail { stroke: #ff933c; opacity: .86; }
.ember-tip { stroke: #ffbd70; }
.ember-bloom { fill: #ff8334; opacity: .12; }
.ember-aura { fill: #ff8c3e; opacity: .43; }
.ember-head { fill: #ffbd72; }
.ember-center { fill: #fff5d7; }
html[data-ember-motion="off"] .contour-lights { display: none; }

@media (max-width: 640px) {
  .site-atmosphere { --terrain-width: 48rem; --terrain-origin: 58%; }
  .site-atmosphere::before, .contour-map {
    opacity: .25;
    mask-image: linear-gradient(90deg, #000 0, #0005 16%, #0004 59%, #0006 84%, #000 100%);
  }
  .contour-ember.desktop-only { display: none; }
  .contour-lights {
    opacity: .76;
    mask-image: linear-gradient(90deg, #000 24%, #000a 36%, #0009 64%, #000 82%);
  }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-ember-motion="on"]) .contour-lights { display: none; }
}
@media (forced-colors: active), print {
  .site-atmosphere { display: none; }
}
