/* Placement and manual pose are separate from the dial's automatic motion. */
.ambient-artwork {
  pointer-events: none;
}
.background-tint-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.artwork-pose {
  width: 100%;
  height: 100%;
  transform: rotate(var(--artwork-angle, 0deg)) scale(var(--artwork-scale, 1));
  transform-origin: center;
}
.artwork-pose > img,
.artwork-pose > svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
.ambient-dial.ambient-artwork {
  animation: none;
  aspect-ratio: 1;
}
.ambient-dial .artwork-pose > img {
  animation: ambient-rotation 180s linear infinite paused;
}
.ambient-dial.is-in-view:not(.artwork-paused) .artwork-pose > img {
  animation-play-state: running;
}
.ambient-artwork.artwork-paused .artwork-pose > img {
  animation: none;
}
.brand-watermark.atlas-ambient {
  width: min(920px, 74vw);
  max-width: none;
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  opacity: 0.13;
}
.background-edit {
  position: absolute;
  bottom: 14px;
  left: max(20px, calc((100% - 1440px) / 2));
  z-index: 4;
  padding: 10px 14px;
  min-height: 44px;
  border: 1px solid #cc9e6d70;
  color: #eee1d0;
  background: #1c3027e8;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.band-light .background-edit {
  color: #1c3027;
  background: #eee1d0ee;
  border-color: #1c30274d;
}
.background-edit:hover,
.background-edit[aria-expanded="true"] {
  border-color: #cc9e6d;
}
.background-panel {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  width: min(350px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  color: #1c3027;
  background: #eee1d0;
  color-scheme: light;
  border: 1px solid #a78d64;
  box-shadow: 0 12px 40px #10241d2e;
  font: 16px/1.4 var(--font-text);
  scrollbar-color: #747a6e #eee1d0;
}
.background-panel[hidden],
.background-panel [hidden] {
  display: none !important;
}
.background-panel * {
  box-sizing: border-box;
}
.background-panel__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.background-panel h2 {
  margin: 0;
  font-size: 22px;
  color: inherit;
  line-height: 1.2;
  flex: 1;
}
.background-panel button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.background-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid #1c302740;
  font-size: 26px !important;
}
.background-panel label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  gap: 12px;
}
.background-panel input[type="range"] {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0;
  margin: 0 0 10px;
  accent-color: #1c3027;
  border: 0;
  background: none;
}
.background-palette {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.background-palette legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 15px;
}
.background-colors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.background-colors button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 72px;
  padding: 8px 3px;
  border: 1px solid #1c302733;
  background: transparent;
  font-size: 14px;
  line-height: 1.2;
}
.background-colors button span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #1c302744;
}
.background-colors button[aria-pressed="true"] {
  border-color: #1c3027;
  box-shadow: inset 0 0 0 1px #1c3027;
  background: #1c302709;
}
.background-panel .background-motion {
  justify-content: flex-start;
  min-height: 44px;
  margin-bottom: 10px;
}
.background-motion input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #1c3027;
}
.background-reset {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid #1c302750;
}
.background-panel p {
  font-size: 13px;
  line-height: 1.5;
  margin: 14px 0 0;
  color: #526055;
}
.background-panel :focus-visible,
.background-edit:focus-visible {
  outline: 2px solid #cc9e6d;
  outline-offset: 4px;
}
@media (max-width: 700px) {
  .brand-watermark.atlas-ambient {
    width: calc(100vw - 32px);
    opacity: 0.1;
  }
  .background-edit {
    left: 16px;
    font-size: 13px;
  }
  .hero .background-edit {
    bottom: 76px;
  }
  .background-panel {
    left: 12px;
    bottom: 76px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 94px);
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-dial .artwork-pose > img {
    animation: none !important;
  }
  .background-motion {
    display: none !important;
  }
}
@media print {
  .background-edit,
  .background-panel {
    display: none !important;
  }
}
