/* Leave the hero's photograph and typography untouched. A fixed city
   continues behind the sections, with the brighter original kept in the hero. */
body { isolation: isolate; }

.site-ambience,
.arena-ambience {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-ambience {
  position: fixed;
  z-index: -1;
  contain: paint;
  background: #07080c;
}

.site-ambience__panorama {
  position: absolute;
  inset: -5%;
  opacity: .66;
  animation: ambience-pan 26s ease-in-out infinite alternate;
}

.site-ambience__panorama img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 53%;
}

.site-ambience::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #06070bd6 0%, #06070ba8 37%, #06070b62 68%, #08070b8c 100%),
    linear-gradient(0deg, #07080bb5, transparent 29%, transparent 69%, #07080b3b);
}

/* Same layer as the hero's dark veil, before it in paint order. */
.arena-ambience {
  position: absolute;
  z-index: -1;
}

.ambience-light {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.ambience-light--ruby {
  inset: 10% -12% auto auto;
  width: 65%;
  height: 76%;
  background: radial-gradient(ellipse closest-side, #f6364b49, #cb1a3535 37%, #d5293114 66%, transparent);
  animation: ambience-ruby 15s ease-in-out infinite alternate;
}

.ambience-light--ice {
  inset: auto auto 4% 12%;
  width: 76%;
  height: 55%;
  background: radial-gradient(ellipse closest-side, #47dbfb34, #209ebc29 34%, #1387a610 65%, transparent);
  animation: ambience-ice 19s ease-in-out infinite alternate;
}

.arena-ambience .ambience-light--ruby {
  inset: 24% -10% auto auto;
  width: 65%;
  height: 70%;
  background: radial-gradient(ellipse closest-side, #ff354830, #e0293a24 34%, #d529310d 68%, transparent);
}

.arena-ambience .ambience-light--ice {
  inset: auto -3% -8% auto;
  width: 55%;
  height: 66%;
  background: radial-gradient(ellipse closest-side, #32def120, #169fbb1c 38%, #1387a60a 66%, transparent);
}

.site-ambience__panorama,
.ambience-light { animation-play-state: paused; }

:root[data-ambience="playing"] .site-ambience__panorama,
:root[data-ambience="playing"] .site-ambience .ambience-light,
:root[data-ambience="playing"] .arena-in-view .arena-ambience .ambience-light { animation-play-state: running; }

@keyframes ambience-pan {
  from { transform: translate3d(-1.35%, .65%, 0) scale(1.015); }
  to { transform: translate3d(1.35%, -1.1%, 0) scale(1.047); }
}

@keyframes ambience-ruby {
  0% { transform: translate3d(9%, 12%, 0) scale(.9); opacity: .48; }
  58% { transform: translate3d(-18%, 4%, 0) scale(1.04); opacity: .92; }
  100% { transform: translate3d(-29%, -11%, 0) scale(1.15); opacity: .68; }
}

@keyframes ambience-ice {
  0% { transform: translate3d(-11%, 4%, 0) scale(.92); opacity: .6; }
  47% { transform: translate3d(14%, -16%, 0) scale(1.1); opacity: .94; }
  100% { transform: translate3d(26%, -2%, 0) scale(.98); opacity: .48; }
}

/* Broad washes let the city through; individual reading surfaces stay solid. */
.trust-strip { background: #100e18a6; }
.trust-strip article { background: #080a0dbd; }
.catalog { background: linear-gradient(180deg, #08090d42, #08090d1a 28%, #08090d55); }
.compat { background: linear-gradient(135deg, #090c12a8, #14091291); }
.buying { background: linear-gradient(180deg, #0a091052, #090a1029); }
.faq { background: linear-gradient(105deg, #09090fc9, #0d0a1463); }
.final-cta {
  background: radial-gradient(circle at 50% 120%, #b6183452, transparent 57%), #0a0c12d9;
}
body > footer { background: #08090cce; }

.ambience-toggle {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .5rem;
  padding: .5rem .7rem;
  border: 1px solid #34404c;
  border-radius: .25rem;
  background: #14151e;
  color: #ebdfe9;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}
.ambience-toggle svg { color: #9fe8fa; flex: none; }
.ambience-toggle:hover { border-color: #75c3d2; color: #fff; }
.ambience-toggle[hidden],
.ambience-toggle[aria-pressed="true"] .ambience-toggle__play,
.ambience-toggle[aria-pressed="false"] .ambience-toggle__pause { display: none; }

@media (max-width: 52rem) {
  .site-ambience__panorama { opacity: .52; }
  .site-ambience__panorama img { object-position: 69% 54%; }
  .site-ambience::after {
    background: linear-gradient(90deg, #08090ca8, #08090c82 60%, #08090c8f),
      linear-gradient(0deg, #08090c91, transparent 38%, #08090c3b);
  }
  .site-ambience .ambience-light--ruby { width: 98%; }
  .site-ambience .ambience-light--ice { width: 96%; inset-inline-start: -2%; }
  .arena-ambience .ambience-light--ruby { inset-block-start: 38%; width: 99%; height: 52%; }
  .arena-ambience .ambience-light--ice { height: 48%; width: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  .site-ambience__panorama, .ambience-light { animation: none; }
  .ambience-light { opacity: .52; }
  .ambience-toggle { display: none; }
}

@media (forced-colors: active) {
  .site-ambience, .arena-ambience, .ambience-toggle { display: none; }
}
