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

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

.tp {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
}

.tp__window {
  --px: 0;
  position: relative;
  overflow: hidden;
  width: clamp(232px, 60vw, 296px);
  height: clamp(104px, 28vw, 136px);
  border-radius: 16px;
  border: 3px solid #17141a;
  background: #2f6df6;
}

.tp__window:focus-visible {
  outline: 3px solid #17141a;
  outline-offset: 8px;
}

.tp__layer {
  position: absolute;
  left: -12%;
  right: -12%;
  transform: translateX(calc(var(--px) * var(--depth)));
}

.tp__layer--sky {
  --depth: 8px;
  top: 0;
  height: 62%;
  background: linear-gradient(180deg, #2f6df6 0%, rgba(255, 247, 230, 0.5) 100%);
}

.tp__sun {
  position: absolute;
  left: 62%;
  top: 22%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffd23f;
  box-shadow: 0 0 20px rgba(255, 210, 63, 0.9);
}

.tp__layer--hill {
  --depth: 22px;
  bottom: 26%;
  height: 48%;
}

.tp__peak {
  position: absolute;
  bottom: 0;
  height: 100%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.tp__peak--l {
  left: 14%;
  width: 34%;
  background: rgba(23, 20, 26, 0.78);
}

.tp__peak--r {
  left: 46%;
  width: 44%;
  height: 82%;
  background: #17141a;
}

.tp__layer--field {
  --depth: 44px;
  bottom: 0;
  height: 30%;
  background: repeating-linear-gradient(96deg, #17141a 0 14px, rgba(23, 20, 26, 0.82) 14px 28px);
  border-top: 3px solid #17141a;
}

.tp__caption {
  position: absolute;
  left: 12px;
  top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.92);
  color: #17141a;
  font-weight: 800;
  font-size: clamp(9px, 2.4vw, 11px);
}

.tp__hint {
  margin: 0;
  color: #17141a;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
}

.tp.is-demo .tp__layer {
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.tp.is-demo .tp__layer--sky {
  animation-name: tpSky;
}

.tp.is-demo .tp__layer--hill {
  animation-name: tpHill;
}

.tp.is-demo .tp__layer--field {
  animation-name: tpField;
}

@keyframes tpSky {
  0%, 6% {
    transform: translateX(-8px);
  }
  46%, 58% {
    transform: translateX(8px);
  }
  94%, 100% {
    transform: translateX(-8px);
  }
}
@keyframes tpHill {
  0%, 6% {
    transform: translateX(-22px);
  }
  46%, 58% {
    transform: translateX(22px);
  }
  94%, 100% {
    transform: translateX(-22px);
  }
}
@keyframes tpField {
  0%, 6% {
    transform: translateX(-44px);
  }
  46%, 58% {
    transform: translateX(44px);
  }
  94%, 100% {
    transform: translateX(-44px);
  }
}
@media (max-width: 340px) {
  .tp__caption {
    left: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tp.is-demo .tp__layer {
    animation: none !important;
  }
  .tp.is-demo .tp__layer--sky {
    transform: translateX(4px) !important;
  }
  .tp.is-demo .tp__layer--hill {
    transform: translateX(12px) !important;
  }
  .tp.is-demo .tp__layer--field {
    transform: translateX(24px) !important;
  }
}
