:root {
  --bg: #100b18;
  --panel: #17101f;
  --line: #422a4c;
  --pink: #ff81ba;
  --orange: #ffba8b;
  --mint: #8ff5e0;
  --sunset: linear-gradient(111deg, #ffd292 0%, #ff9a99 43%, #ff71bb 100%);
}

body {
  isolation: isolate;
  background: var(--bg);
}
.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(160deg, #170e22, #100b18 58%, #101522);
  pointer-events: none;
}
.ambient-backdrop i {
  position: absolute;
  width: 80vw;
  height: 85vh;
  left: -35vw;
  top: 36vh;
  background: radial-gradient(ellipse, #7236715c, transparent 68%);
  animation: ambient-swell 16s alternate ease-in-out infinite;
}
.ambient-backdrop i + i {
  width: 72vw;
  left: auto;
  right: -35vw;
  top: -28vh;
  background: radial-gradient(ellipse, #347e8962, transparent 68%);
  animation: ambient-swell 21s alternate-reverse ease-in-out infinite;
}
@keyframes ambient-swell {
  from { transform: translate3d(-5%, -9%, 0); opacity: .55; }
  to { transform: translate3d(21%, 9%, 0); opacity: 1; }
}

.button {
  position: relative;
  isolation: isolate;
  min-height: 2.8rem;
  border-radius: .56rem;
  font-weight: 750;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.button > [data-icon] { font-size: 1.08em; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-primary {
  border-color: #ffe1be8c;
  box-shadow: inset 0 1px 1px #fff8, inset 0 -2px 0 #54163122, 0 5px 22px #fb6e9c38;
}
.button-primary:hover { box-shadow: inset 0 1px 1px #fffd, 0 7px 30px #fb6e9c73; }
.button-glass {
  border-color: #bb8cb65c;
  background: linear-gradient(160deg, #32223be6, #170f23e8);
  box-shadow: inset 0 1px #e4c4f314, 0 3px 10px #0c071445;
}
.button-glass:hover { border-color: #eb92c1c9; background: #382146; }
.hero {
  border-bottom-color: #f778bb64;
  box-shadow: 0 10px 60px #3f1c364c;
}
.hero-image {
  inset: -2.5%;
  background: url("./assets/night-drive.webp") 55% 54% / cover no-repeat;
  animation: city-camera 15s ease-in-out infinite alternate;
}
.hero-shade {
  background: linear-gradient(90deg, #100817f2 0%, #150b1ebe 30%, #150b1e25 63%, transparent 81%), linear-gradient(0deg, #120818d6, transparent 48%);
}
.hero-effects { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.city-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 87% 57%, #ff3c6c93, transparent 43%), radial-gradient(ellipse at 66% 40%, #65efd959, transparent 24%);
  mix-blend-mode: screen;
  animation: city-lights 6s ease-in-out infinite alternate;
}
.city-trail {
  position: absolute;
  width: 40%;
  height: 3px;
  left: 52%;
  top: 80%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #ffa2ca8f, #ffc69c, transparent);
  box-shadow: 0 0 13px 3px #ff479267;
  animation: city-trail 7.5s ease-out infinite;
}
.city-trail-alt { top: 65%; left: 65%; width: 31%; height: 2px; animation-delay: 2.7s; background: linear-gradient(90deg, transparent, #70edd9ac, #c8fff5, transparent); box-shadow: 0 0 12px 3px #42deb346; }
@keyframes city-camera {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-1.75%, .8%, 0) scale(1.11); }
}
@keyframes city-lights {
  from { opacity: .13; transform: translate3d(-3%, 0, 0); }
  to { opacity: .62; transform: translate3d(1%, 3%, 0); }
}
@keyframes city-trail {
  0%, 46% { opacity: 0; transform: translate3d(37%, -10px, 0) rotate(-8deg) scaleX(.18); }
  58% { opacity: .82; }
  79%, 100% { opacity: 0; transform: translate3d(-20%, 18px, 0) rotate(-8deg) scaleX(.88); }
}
.hero-inner { min-height: clamp(30rem, 38vw, 36rem); }
.hero h1 { filter: drop-shadow(0 9px 28px #140719a0); }
.hero-lede { text-shadow: 0 1px 12px #110819; }
.hero-actions .button { min-height: 3.15rem; }
.hero-tools {
  display: flex;
  gap: .58rem;
  align-items: flex-end;
  align-self: flex-end;
}
.hero-release { border-color: #edb3cf61; background: #1d1026c3; }
.motion-control {
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border: 1px solid #deb8d16d;
  border-radius: .52rem;
  background: #1d1026de;
  color: #ffe0eb;
  padding: 0;
  transition: color .2s, background .2s, border-color .2s;
}
.motion-control:not(:disabled):hover { background: #53274b; border-color: #ff9bce; }
.motion-control:disabled { opacity: .6; }
.motion-control svg { display: block; width: 1.2rem; height: 1.2rem; }

.map-search, .region-field { border-color: #614667; }
.category-button[aria-pressed="true"] {
  background: linear-gradient(94deg, color-mix(in srgb, var(--tone) 28%, #21152a), #21152a);
  box-shadow: inset 2px 0 var(--tone), inset 0 1px #ffdcff12;
}
.category-icon, .result-icon, .news-icon { border-radius: .5rem; }
.map-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.map-glow::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at 73% 44%, #8964f94c, transparent 53%), radial-gradient(ellipse at 24% 72%, #36c1bc46, transparent 53%);
  animation: atlas-swell 11s alternate ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes atlas-swell {
  from { opacity: .34; transform: translate3d(-4%, 3%, 0); }
  to { opacity: .95; transform: translate3d(3%, -4%, 0); }
}
.map-mode, .map-compass, .map-controls, .map-attribution { background-color: #1a1027ee; }
.map-compass { border-color: #e2a9d57b; box-shadow: 0 0 21px #f39bc034; }
.map-controls { border-color: #d19ac484; }
.map-controls button { min-width: 2.75rem; min-height: 2.75rem; }
.map-controls button:hover, .map-controls button[aria-pressed="true"] { color: #ffe4f2; background: #592d58; }
.map-pin { background-color: #171125ef; }
.map-pin:hover, .map-pin:focus-visible { filter: drop-shadow(0 1px 6px #0b061aaa); }
.result-card:hover { box-shadow: 0 6px 18px #08050d7c, inset 2px 0 var(--tone); }
.guide-card:hover { box-shadow: 0 11px 36px #100818aa, inset 0 0 19px color-mix(in srgb, var(--tone) 18%, transparent); }

.inline-promo-slot { margin-block: -1rem 3.25rem; }
.news-side { min-width: 0; display: grid; gap: 1rem; align-content: start; }
.support-slot { margin-bottom: 3.6rem; }

@media (max-width: 660px) {
  .hero-inner { min-height: 28rem; }
  .hero-image { background-position: 65% center; }
  .hero-shade { background: linear-gradient(90deg, #160a20ed, #1e0d246e 80%), linear-gradient(0deg, #130b20d8, transparent 63%); }
  .hero-actions .button { min-height: 2.75rem; }
  .hero-tools { align-self: stretch; justify-content: space-between; gap: .42rem; align-items: center; }
  .hero-release { align-self: auto; flex-wrap: wrap; gap: .22rem .45rem; }
  .hero-release div { white-space: nowrap; }
  .inline-promo-slot { margin-block: -.62rem 2.6rem; }
  .support-slot { margin-bottom: 2.6rem; }
}
@media (max-width: 360px) {
  .hero-release { display: block; }
  .hero-release p { margin-top: .12rem; }
}
:is(html[data-atlas-motion="paused"], html.atlas-tab-hidden) :is(.ambient-backdrop i, .hero-image, .city-glow, .city-trail),
.hero.out-of-view :is(.hero-image, .city-glow, .city-trail),
:is(html[data-atlas-motion="paused"] .map-stage, html.atlas-tab-hidden .map-stage, .map-stage.out-of-view) .map-glow::before,
:is(html[data-atlas-motion="paused"] .map-stage, html.atlas-tab-hidden .map-stage, .map-stage.out-of-view) .map-pin.is-featured::before {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .ambient-backdrop i, .hero-image, .city-glow, .city-trail, .map-glow::before { animation: none; }
  .city-glow { opacity: .24; }
  .map-glow::before { opacity: .55; }
}
