html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.xf {
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  width: min(100%, 400px);
}

.xf__view {
  position: relative;
  display: grid;
  height: clamp(104px, 38vw, 172px);
  border-radius: 16px;
  overflow: hidden;
  background: #17141a;
}

.xf__view:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 2px;
}

.xf__shot {
  grid-area: 1/1;
  position: relative;
  opacity: 0;
  transition: opacity 600ms ease-out;
}

.xf__shot.is-on {
  opacity: 1;
}

.xf__photo {
  position: absolute;
  inset: 0;
  display: block;
}

.xf__photo--rain {
  background: linear-gradient(96deg, rgba(255, 210, 63, 0) 26%, rgba(255, 210, 63, 0.34) 30%, rgba(255, 210, 63, 0) 34%), linear-gradient(to bottom, rgba(23, 20, 26, 0) 63%, rgba(23, 20, 26, 0.44) 63.6%, rgba(23, 20, 26, 0.62)), radial-gradient(58% 42% at 76% 22%, rgba(255, 247, 230, 0.34), rgba(255, 247, 230, 0) 70%), linear-gradient(166deg, #0a4fe8 6%, #6ec8ff 96%);
}

.xf__photo--dusk {
  background: linear-gradient(to bottom, rgba(23, 20, 26, 0) 68%, rgba(23, 20, 26, 0.54) 68.6%, rgba(23, 20, 26, 0.72)), radial-gradient(30% 26% at 70% 30%, rgba(255, 210, 63, 0.88), rgba(255, 210, 63, 0) 72%), linear-gradient(172deg, #ff4d1f 10%, #ff9ebb 94%);
}

.xf__photo--fog {
  background: linear-gradient(to bottom, rgba(255, 247, 230, 0) 70%, rgba(255, 247, 230, 0.44) 70.6%, rgba(255, 247, 230, 0.14)), linear-gradient(to top, rgba(255, 247, 230, 0.46), rgba(255, 247, 230, 0) 46%), radial-gradient(70% 30% at 40% 64%, rgba(255, 247, 230, 0.4), rgba(255, 247, 230, 0) 76%), linear-gradient(158deg, #2b9d74 4%, #4cd4a6 98%);
}

.xf__photo--snow {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.76) 58.6%, rgba(255, 255, 255, 0.92)), linear-gradient(to bottom, rgba(23, 20, 26, 0) 52%, rgba(23, 20, 26, 0.26) 52.4%, rgba(23, 20, 26, 0) 58%), radial-gradient(52% 40% at 26% 24%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 74%), linear-gradient(150deg, #b9a0ff 8%, #fff7e6 96%);
}

.xf__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  font-weight: 700;
  font-size: clamp(11px, 3vw, 13px);
  line-height: 1.5;
  white-space: nowrap;
}

.xf__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.xf__nav {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(23, 20, 26, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #17141a;
  font-size: 14px;
  cursor: pointer;
  transition: transform 220ms ease-out;
}

.xf__nav:hover {
  transform: scale(1.08);
}

.xf__nav:active {
  transform: scale(0.94);
}

.xf__nav:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 2px;
}

.xf__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xf__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.26);
  cursor: pointer;
  transition: transform 220ms ease-out, background-color 220ms ease-out;
}

.xf__dot[aria-current=true] {
  background: #0a4fe8;
  transform: scale(1.5);
}

.xf__dot:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .xf {
    gap: 8px;
  }
  .xf__cap {
    left: 8px;
    bottom: 8px;
    padding: 0 8px;
  }
  .xf__nav {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .xf__shot, .xf__nav, .xf__dot {
    transition: none;
  }
}
