/* 背景选择屏：布局与氛围（Zoland 蓝） */

.background-screen {
  display: flex;
  flex-direction: column;
  padding: calc(24px + env(safe-area-inset-top, 0px)) clamp(20px, 5vw, 44px) 24px;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(0, 111, 170, .28), transparent 60%),
    radial-gradient(120% 100% at -10% 110%, rgba(19, 36, 53, .9), transparent 55%),
    var(--deep);
}

.background-screen::before {
  position: absolute;
  inset: 0;
  background: var(--selected-background, none) center / cover no-repeat;
  opacity: .12;
  transform: scale(1.08);
  content: "";
  pointer-events: none;
}

.intro-head,
.intro-copy,
.background-picker,
.picker-footer {
  position: relative;
  z-index: 1;
}

.intro-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.intro-copy {
  max-width: 720px;
  margin-top: clamp(16px, 3vh, 32px);
}

.intro-copy h1 {
  margin: 10px 0 12px;
  color: var(--ink);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.02;
}

.intro-copy h1 em {
  color: var(--teal);
  transform: scale(1.05);
}

.intro-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.background-picker {
  display: flex;
  flex: 1;
  align-items: center;
  gap: clamp(10px, 3vw, 26px);
  margin: clamp(14px, 3vh, 30px) 0 12px;
  min-height: 0;
}

.arrow-button {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(240, 245, 250, .4);
  border-radius: 50%;
  background: rgba(10, 19, 30, .4);
  color: var(--ink);
  font-size: 20px;
  transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
}

.arrow-button:hover {
  background: rgba(100, 180, 232, .18);
  border-color: rgba(100, 180, 232, .7);
}

.arrow-button:active {
  transform: scale(.94);
}

.background-stage {
  position: relative;
  flex: 1;
  height: 100%;
  min-height: 42vh;
  overflow: hidden;
  border: 1px solid rgba(240, 245, 250, .28);
  border-radius: 4px;
  background: var(--deep-soft);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
}

.background-art {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: background-image .25s ease;
}

.background-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 22, 34, .05) 40%, rgba(10, 22, 34, .72));
}

.background-meta {
  position: absolute;
  left: 16px;
  bottom: 12px;
  display: grid;
  gap: 4px;
}

.background-meta span {
  color: var(--teal);
  font: 600 11px/1 "DM Mono", "SFMono-Regular", monospace;
  letter-spacing: 1.2px;
}

.background-meta strong {
  color: var(--ink);
  font-size: 16px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .72);
}

.picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: calc(14px + env(safe-area-inset-bottom, 0px));
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(100, 180, 232, .8);
  border-radius: 50%;
  background: transparent;
  transition: background-color .2s ease, transform .2s ease;
}

.dot.active {
  background: var(--teal);
  transform: scale(1.15);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 2px;
  background: var(--teal);
  color: var(--deep);
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, filter .2s ease;
}

.primary-action span {
  margin-left: 12px;
  font-size: 18px;
  font-weight: 400;
}

@media (max-width: 500px) {
  .background-screen {
    padding-left: 18px;
    padding-right: 18px;
  }

  .intro-copy h1 {
    font-size: 38px;
  }

  .background-stage {
    min-height: 48vh;
  }

  .picker-footer {
    gap: 12px;
  }
}
