html:has(.atmosphere-dialog[open]) { overflow: hidden; overscroll-behavior: none; }
body:has(.atmosphere-dialog[open]) {
  position: fixed; inset-inline: 0; inset-block-start: var(--atmosphere-return-top, 0px);
}
.atmosphere-dialog {
  --room-gutter: clamp(1rem, 5.5vw, 6.2rem);
  position: fixed; inset: 0; inline-size: 100%; block-size: 100vh; block-size: 100dvh;
  max-inline-size: none; max-block-size: none; margin: 0; padding: 0;
  overflow: hidden; border: 0; border-radius: 0;
  background: #090912; color: #faf7ff; color-scheme: dark;
  font-family: Manrope, "Golos Text", system-ui, sans-serif;
}
.atmosphere-dialog[open] { display: grid; grid-template: auto minmax(0,1fr) auto / minmax(0,1fr); }
.atmosphere-dialog::backdrop { background: #090912; }
.atmosphere-stage {
  grid-area: 1 / 1 / -1 / -1; position: relative; isolation: isolate; overflow: clip;
  background: #090912; touch-action: pan-y pinch-zoom;
}
.atmosphere-stage > .atmosphere-interior {
  position: absolute; inset: 0; isolation: isolate;
  display: grid; grid-template-rows: var(--atmosphere-top,5rem) minmax(0,1fr) var(--atmosphere-bottom,4.5rem);
  background: #090912; color: #faf7ff;
}
.atmosphere-interior::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg,#090912a3 0%,#09091212 28%,#0a0a1475 60%,#090911f5 100%),
    linear-gradient(105deg,#080810b8,transparent 72%);
}
.atmosphere-media, .atmosphere-media :is(picture,img) {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.atmosphere-media { z-index: -2; overflow: hidden; }
.atmosphere-media img { object-fit: cover; object-position: 50% 44%; }
#atmosphere-bar .atmosphere-media img { object-position: 50% 34%; }

.atmosphere-dialog :is(.atmosphere-header,.atmosphere-tablist,.atmosphere-scroll) {
  padding-inline: max(var(--room-gutter), env(safe-area-inset-left)) max(var(--room-gutter), env(safe-area-inset-right));
}
.atmosphere-header, .atmosphere-tablist { grid-column: 1; z-index: 1; }
.atmosphere-header {
  grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: max(.75rem,calc(env(safe-area-inset-top,0px) + .4rem)) .62rem;
  background: linear-gradient(#0b0a136b,transparent);
}
.atmosphere-header .night-mark { width: clamp(2.75rem,5.8vw,4rem); height: auto; aspect-ratio: 1; }
.atmosphere-close, .atmosphere-action {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 2.75rem; padding: .52rem .86rem; border-radius: 999px;
  font: 650 .82rem/1.15 Manrope, system-ui, sans-serif;
  touch-action: manipulation;
}
.atmosphere-close {
  background: #0d0b1ce8; color: #fbfaff; border: 1px solid #eee6ff56;
  cursor: pointer;
}
.atmosphere-close svg, .atmosphere-action svg { flex: none; width: 1.05rem; height: 1.05rem; }
.atmosphere-scroll {
  grid-row: 2; min-height: 0; display: flex; flex-direction: column;
  overflow: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom;
  padding-block: .6rem clamp(.8rem,3.5vh,2.35rem);
}
.atmosphere-copy { margin-block-start: auto; min-width: 0; max-width: min(51rem,100%); }
.editorial .atmosphere-copy h2 {
  color: #faf7ff; font: 730 clamp(2.85rem,8.9vw,7.35rem)/.96 Manrope, system-ui, sans-serif;
  margin: 0; letter-spacing: -.078em; text-wrap: balance; overflow-wrap: anywhere;
  text-shadow: 0 .15rem 1.2rem #09081299;
}
.atmosphere-copy p { font-size: clamp(.94rem,1.55vw,1.17rem); color: #ede7fb; margin: .75rem 0 .92rem; max-width: 34ch; }
.atmosphere-action {
  max-width: 100%; padding-inline: 1rem; color: #171326; background: #e2dafa; overflow-wrap: anywhere;
  border: 1px solid #f0e9ff;
}
.atmosphere-tablist {
  grid-row: 3; width: min(100%,42rem); justify-self: start;
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .28rem;
  padding-block: .48rem max(.75rem,calc(env(safe-area-inset-bottom,0px) + .35rem));
  background: linear-gradient(transparent,#090912c2);
}
.atmosphere-tab {
  display: grid; place-items: center; min-width: 0; min-height: 2.8rem; padding: .38rem .32rem;
  text-align: center; overflow-wrap: anywhere; background: #171323d9; border: 1px solid #c6b5ed40;
  color: #e1daef; font: 650 clamp(.75rem,2.7vw,.9rem)/1.2 Manrope, system-ui, sans-serif;
  cursor: pointer; border-radius: .55rem; touch-action: manipulation;
}
.atmosphere-tab[aria-pressed="true"] { background: #372b55; color: #fff; border-color: #cab4ff8c; }
.atmosphere-dialog :is(a,button):focus-visible { outline: 2px solid #e4d8ff; outline-offset: 3px; }
@media (max-width: 48rem) and (orientation: portrait) {
  .atmosphere-interior::after {
    background: linear-gradient(180deg,#090913a1 0%,#09091210 27%,#0909120d 39%,#090913a8 67%,#090911f2 100%);
  }
  .editorial .atmosphere-copy h2 { font-size: clamp(2.4rem,11.7vw,4.3rem); }
}
@media (max-height: 31rem) {
  .editorial .atmosphere-copy h2 { font-size: clamp(2.05rem,6.8vw,3.05rem); }
  .atmosphere-copy p { margin-block: .45rem .58rem; }
}
@media (hover: hover) {
  .atmosphere-close:hover { background: #282039; }
  .atmosphere-tab:hover { background: #302644; }
  .atmosphere-action:hover { background: #f2ebff; }
}
