@font-face {
  font-family: "Paperlogy";
  src: url("./assets/fonts/Paperlogy-2ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("./assets/fonts/Paperlogy-4Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("./assets/fonts/Paperlogy-5Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("./assets/fonts/Paperlogy-6SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("./assets/fonts/Paperlogy-7Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("./assets/fonts/Pretendard-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("./assets/fonts/Pretendard-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("./assets/fonts/Pretendard-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("./assets/fonts/Pretendard-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --pink: #f62477;
  --ink: #000;
  --paper: #fbf9f6;
  --cream: #f7f3eb;
  --line: #e0dbcf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Paperlogy", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  background: #000;
  color: #fff;
}

.brand {
  position: absolute;
  left: 20px;
  top: 16px;
  display: block;
  width: 284.965px;
  height: 28px;
}

.brand img,
.cart-link img {
  display: block;
  width: 100%;
  height: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 60px;
  font-size: 18px;
  font-weight: 500;
  line-height: 18px;
}

.site-nav a,
.cart-link,
.enter-button,
.add-button,
.checkout-bar button {
  transition: filter 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.cart-link:hover {
  filter: brightness(0.84);
}

.cart-link {
  position: absolute;
  top: 16px;
  right: 38px;
  width: 30px;
  height: 29px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-family: "Pretendard", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* Main */
.home-page {
  min-width: 320px;
  overflow: hidden;
}

.home {
  --home-scale: 1;
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  background: #e9e0d6 url("./assets/images/main-bg.png") center center / cover no-repeat;
}

.home-stage {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 1920px;
  height: 1080px;
  transform: translateX(-50%) scale(var(--home-scale));
  transform-origin: top center;
}

.home-content {
  position: absolute;
  inset: 60px 0 0;
  text-align: center;
}

.home-title {
  position: absolute;
  top: 44px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  font-size: 60px;
  font-weight: 200;
  line-height: 70px;
  white-space: nowrap;
}

.home-title span {
  display: block;
}

.home-title strong {
  font-weight: 600;
}

.question-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 30px;
  font-weight: 400;
  line-height: 30px;
  white-space: nowrap;
}

.home .question-pill {
  position: absolute;
  top: 208px;
  left: calc(50% - 30.5px);
  transform: translateX(-50%);
}

.value-icons {
  position: absolute;
  top: 310px;
  left: calc(50% - 38px);
  display: flex;
  transform: translateX(-50%);
}

.value-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 103px;
  height: 109px;
  background: url("./assets/images/icon-shadow.png") center 17px / 103px 92px no-repeat;
}

.value-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 11px;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 7px 15px rgba(25, 17, 12, 0.14);
  backdrop-filter: blur(12.5px);
}

.value-icon img {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  object-fit: contain;
  transform: translateY(-14px);
}

.enter-button {
  position: absolute;
  top: 650px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 30px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 30px;
  font-weight: 500;
  line-height: 30px;
  backdrop-filter: blur(12px);
}

.enter-button img {
  width: 29px;
  height: 23px;
}

.enter-button:hover {
  transform: translateX(-50%) translateY(-2px);
  background: rgba(246, 36, 119, 0.82);
}

.campaign-credit {
  position: absolute;
  z-index: 3;
  bottom: 25px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

/* Sub hero */
.sub-page {
  min-width: 320px;
  overflow-x: hidden;
}

.sub-hero {
  position: relative;
  height: 594px;
  background: #d9cdc0 url("./assets/images/sub-hero.png") center center / cover no-repeat;
  text-align: center;
}

.sub-hero-copy {
  position: absolute;
  inset: 0;
}

.sub-hero .question-pill {
  position: absolute;
  top: 56px;
  left: calc(50% - 30.5px);
  transform: translateX(-50%);
}

.sub-hero h1 {
  position: absolute;
  top: 140px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  font-size: 60px;
  font-weight: 200;
  line-height: 70px;
  white-space: nowrap;
}

.sub-hero h1 span,
.sub-hero h1 strong {
  display: block;
}

.sub-hero h1 strong {
  font-weight: 600;
}

.hero-description {
  position: absolute;
  top: 295px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

.mouse-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  line-height: 12px;
}

.mouse-scroll img {
  width: 40px;
  height: 62px;
}

/* Steps */
.steps {
  height: 289px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.steps-inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  height: 100%;
  padding-top: 56px;
  position: relative;
}

.step-card {
  position: relative;
  width: 289px;
  height: 229px;
  padding: 21px 47px;
  background: url("./assets/images/step-card.png") center / 289px 210px no-repeat;
}

.step-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 19px;
  width: 251px;
  height: 177px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f9f6f1;
}

.step-card > * {
  position: relative;
  z-index: 1;
}

.step-number {
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
}

.step-icon {
  position: absolute;
  top: 23px;
  right: 49px;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.step-icon-wide {
  width: 28px;
  right: 47px;
}

.step-card h2 {
  margin: 25px 0 5px;
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
  white-space: nowrap;
}

.step-card p {
  margin: 0;
  color: #444;
  font-family: "Pretendard", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.step-arrow {
  width: 13px;
  height: 22px;
}

/* 카드의 실제 테두리 높이(177px) 안에서 화살표(22px)를 정중앙에 둔다. */
@media (min-width: 1001px) {
  .steps-inner > .step-arrow {
    align-self: flex-start;
    margin-top: 77px;
  }
}

/* Products */
.products-section {
  position: relative;
  left: -1.5px;
  width: 1283px;
  margin: 66px auto 149px;
}

.products-section > h2 {
  margin: 0 0 35px 3px;
  font-size: 30px;
  font-weight: 600;
  line-height: 30px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 403px);
  gap: 40px 37px;
}

.product-card {
  position: relative;
  width: 403px;
  height: 393px;
}

.product-image-wrap {
  position: relative;
  display: flow-root;
  width: 400px;
  height: 231px;
  margin-left: 3px;
}

/* 테두리는 이미지 크기를 줄이지 않고 위에만 겹친다. */
.product-image-wrap::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 3px;
  right: 0;
  left: 0;
  height: calc(100% - 3px);
  border: 1px solid #0000001a;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

.product-image {
  display: block;
  width: 100%;
  height: 228px;
  margin: 3px 0 0;
  border-radius: 20px 20px 0 0;
  object-fit: cover;
  transition: opacity 420ms ease, transform 560ms cubic-bezier(.2, .8, .2, 1), filter 420ms ease;
}

.unavailable-badge {
  position: absolute;
  z-index: 2;
  /* 리본은 이미지 안이 아니라 카드 모서리를 감싸도록 바깥으로 걸친다. */
  top: 0;
  left: -3px;
  width: 116px;
  height: 116px;
  transition: opacity 280ms ease, transform 420ms cubic-bezier(.2, .8, .2, 1);
}

.product-unavailable-state {
  position: absolute;
  z-index: 5;
  inset: 3px 0 0 3px;
  overflow: hidden;
  border-radius: 20px;
  background: #111519;
  color: #fff;
  pointer-events: auto;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 8px, 0) scale(.97);
  transition: opacity 240ms ease, transform 360ms cubic-bezier(.2, .8, .2, 1), visibility 360ms;
  will-change: opacity, transform;
  contain: layout paint;
  backface-visibility: hidden;
  container-type: inline-size;
}

.unavailable-burst {
  position: absolute;
  top: 7.18%;
  left: 35%;
  width: 30%;
  height: 30.51%;
}

.unavailable-burst img {
  display: block;
  width: 100%;
  height: 100%;
}

.unavailable-burst span {
  position: absolute;
  inset: 24.37% 28.33% 25.21%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #fff;
  font: 600 min(7.5cqw, 30px)/1 "Pretendard", sans-serif;
  white-space: nowrap;
}

.unavailable-statement {
  position: absolute;
  top: 41.28%;
  left: 15.75%;
  width: 68.75%;
  margin: 0;
  font: 200 min(9cqw, 36px)/1.1667 "Pretendard", sans-serif;
  letter-spacing: 0;
  text-align: center;
  word-break: keep-all;
}

.unavailable-statement strong {
  color: var(--pink);
  font-weight: 600;
}

.unavailable-statement span {
  position: relative;
  left: 50%;
  display: block;
  width: max-content;
  margin: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.unavailable-divider {
  position: absolute;
  top: 71.03%;
  left: 10%;
  width: 80%;
  height: 1px;
  background: #242b31;
}

.unavailable-reason {
  position: absolute;
  top: 77.18%;
  left: 24.25%;
  width: 51.5%;
  margin: 0;
  font: 500 min(5cqw, 20px)/1.3 "Pretendard", sans-serif;
  text-align: center;
  word-break: keep-all;
  white-space: nowrap;
}

.unavailable-reason span {
  position: relative;
  left: 50%;
  display: block;
  width: max-content;
  margin: 0;
  transform: translateX(-50%);
}

.product-card img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.product-card.is-revealed .product-image-wrap,
.product-card.is-revealed .product-info {
  opacity: 0;
  transform: translate3d(0, -4px, 0) scale(.985);
}

.product-card.is-revealed .product-unavailable-state {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

.product-info {
  width: 400px;
  height: 162px;
  margin: 0 0 0 3px;
  padding: 20px 23px;
  border: 1px solid var(--line);
  border-radius: 0 0 20px 20px;
  background: var(--paper);
  font-family: "Pretendard", sans-serif;
}

.product-image-wrap,
.product-info {
  transition: opacity 220ms ease, transform 340ms cubic-bezier(.2, .8, .2, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.product-heading {
  display: flex;
  align-items: center;
  height: 40px;
}

.product-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink);
}

.product-symbol img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.product-heading h3 {
  margin: 0 0 0 15px;
  font-size: 24px;
  font-weight: 600;
  line-height: 24px;
}

.infinity {
  width: 46px;
  height: 20px;
  margin-left: auto;
}

.product-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 22px;
  padding-left: 5px;
}

.product-bottom p {
  margin: 0;
  color: #444;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
}

.add-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 124px;
  height: 60px;
  padding: 0 21px;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  cursor: pointer;
  font-family: "Pretendard", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 20px;
}

.add-button img {
  width: 18px;
  height: 18px;
}

.add-button:hover,
.checkout-bar button:hover {
  filter: brightness(0.92);
}

.add-button:active {
  transform: scale(0.97);
}

.add-button.is-selected {
  background: #111;
}

.add-button:disabled {
  cursor: default;
  opacity: 1;
}

/* Ending */
.campaign-ending {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 590px;
  padding-top: 65px;
  background: #090506 url("./assets/images/sub-bottom.png") center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.not-logo {
  width: 172px;
  height: 132px;
  object-fit: cover;
}

.ending-title {
  margin: 84px 0 0;
  font-size: 60px;
  font-weight: 200;
  line-height: 70px;
}

.ending-title strong {
  color: var(--pink);
  font-weight: 600;
}

.ending-credit {
  margin: 84px 0 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 20px;
}

.checkout-bar {
  position: fixed;
  z-index: 90;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 100px;
  background: #000;
  color: #fff;
  font-family: "Pretendard", sans-serif;
  visibility: hidden;
  opacity: 0;
  transform: translate3d(0, 115%, 0);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .18);
  transition: transform 420ms cubic-bezier(.2, .85, .2, 1), opacity 220ms ease, visibility 420ms;
  will-change: transform;
}

.checkout-bar.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.checkout-bar p {
  margin: 0 55px 0 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 30px;
}

.checkout-bar p strong {
  color: var(--pink);
  font-weight: 600;
}

.checkout-bar button {
  width: 338px;
  height: 100px;
  background: var(--pink);
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  font-weight: 600;
  line-height: 30px;
}

.checkout-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  white-space: nowrap;
}

@media (max-width: 1350px) and (min-width: 1001px) {
  .products-section {
    left: 0;
    width: 843px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 403px);
    gap: 40px 37px;
  }
}

@media (max-width: 1000px) {
  .site-header {
    height: 56px;
  }

  .brand {
    left: 16px;
    top: 18px;
    width: 164px;
    height: auto;
  }

  .site-nav {
    display: none;
  }

  .cart-link {
    top: 14px;
    right: 22px;
    width: 28px;
    height: 27px;
  }

  .home {
    min-height: 700px;
    background-position: center center;
  }

  .home-stage {
    position: static;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .home-content {
    inset: 56px 0 0;
  }

  .home-title {
    top: 34px;
    width: calc(100% - 32px);
    font-size: clamp(29px, 8.2vw, 42px);
    line-height: 1.25;
    white-space: normal;
  }

  .home-title span:last-child {
    max-width: 560px;
    margin: 0 auto;
  }

  .home .question-pill {
    top: 160px;
    left: 50%;
  }

  .question-pill {
    padding: 10px 16px;
    font-size: clamp(15px, 4vw, 22px);
    line-height: 22px;
  }

  .value-icons {
    top: 225px;
    left: 50%;
    display: grid;
    grid-template-columns: repeat(3, 82px);
    gap: 5px 2px;
  }

  .value-icon {
    width: 82px;
    height: 86px;
    background-size: 82px 73px;
    background-position: center 13px;
  }

  .value-icon::before {
    left: 8px;
    width: 66px;
    height: 66px;
    border-radius: 20px;
  }

  .value-icon img {
    width: 27px;
    height: 27px;
    transform: translateY(-10px);
  }

  .enter-button {
    top: auto;
    bottom: 18%;
    gap: 22px;
    padding: 16px 24px;
    font-size: 22px;
    line-height: 24px;
  }

  .campaign-credit {
    bottom: 18px;
    width: 100%;
    padding: 0 12px;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    white-space: normal;
  }

  .sub-hero {
    height: 540px;
    background-position: center;
  }

  .sub-hero .question-pill {
    top: 38px;
    left: 50%;
  }

  .sub-hero h1 {
    top: 105px;
    width: calc(100% - 32px);
    font-size: clamp(32px, 8.5vw, 50px);
    line-height: 1.2;
    white-space: normal;
  }

  .hero-description {
    top: 225px;
    width: calc(100% - 40px);
    font-size: 15px;
    line-height: 22px;
    white-space: normal;
  }

  .mouse-scroll {
    bottom: 18px;
  }

  .steps {
    height: auto;
    padding: 34px 20px;
  }

  .steps-inner {
    flex-direction: column;
    padding-top: 0;
    left: 0;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .products-section {
    left: 0;
    width: min(100% - 40px, 840px);
    margin: 60px auto 100px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .product-card,
  .product-image-wrap {
    width: 100%;
  }

  .product-image,
  .product-info {
    width: calc(100% - 3px);
  }

  .product-card {
    height: auto;
    aspect-ratio: 403 / 393;
  }

  .product-image-wrap {
    height: auto;
    aspect-ratio: 403 / 231;
  }

  .product-image {
    height: calc(100% - 3px);
  }

  .product-info {
    height: auto;
    min-height: 0;
    aspect-ratio: 400 / 162;
  }

  .campaign-ending {
    height: 520px;
    padding: 58px 20px 0;
  }

  .ending-title {
    margin-top: 58px;
    font-size: clamp(32px, 6vw, 48px);
    line-height: 1.25;
  }

  .ending-credit {
    margin-top: 54px;
    font-size: 15px;
  }

  .checkout-bar p {
    margin-right: 28px;
    font-size: 22px;
  }

  .checkout-bar button {
    width: 280px;
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .home {
    background-position: 48% center;
  }

  .home-title {
    top: 28px;
  }

  .home .question-pill {
    top: 168px;
  }

  .value-icons {
    top: 230px;
  }

  .sub-hero {
    height: 500px;
    background-position: 50% center;
  }

  .sub-hero h1 {
    top: 102px;
  }

  .hero-description {
    top: 210px;
  }

  .products-section {
    width: min(100% - 32px, 403px);
  }

  .products-section > h2 {
    margin-left: 0;
    font-size: 25px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-info {
    margin-left: 3px;
    padding: 18px 18px;
  }

  .product-image-wrap {
    margin-left: 0;
  }

  .product-heading h3 {
    font-size: 22px;
  }

  .product-bottom p {
    font-size: 17px;
    line-height: 22px;
  }

  .add-button {
    width: 112px;
    height: 54px;
    padding: 0 18px;
    font-size: 18px;
  }

  .campaign-ending {
    height: 470px;
    background-position: 48% center;
  }

  .not-logo {
    width: 130px;
    height: 100px;
  }

  .ending-title {
    margin-top: 48px;
    font-size: 29px;
  }

  .ending-credit {
    margin-top: 48px;
    font-size: 13px;
  }

  .checkout-bar {
    height: auto;
    flex-direction: column;
  }

  .checkout-bar p {
    width: 100%;
    margin: 0;
    padding: 22px 16px;
    font-size: 20px;
    text-align: center;
  }

  .checkout-bar button {
    width: 100%;
    height: 74px;
    font-size: 22px;
  }
}

.page-transition {
  position: fixed;
  z-index: 200;
  inset: 0;
  pointer-events: none;
  background: var(--pink);
  transform: translate3d(100%, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 620ms cubic-bezier(.72, 0, .18, 1);
}

.is-leaving .home-content,
.is-leaving .campaign-credit {
  animation: entrance-fade 420ms ease forwards;
}

.is-leaving .page-transition {
  transform: translate3d(0, 0, 0);
}

.home-page.is-history-restored .page-transition {
  transform: translate3d(100%, 0, 0);
  transition: none;
}

.is-entering .page-transition {
  transform: translate3d(0, 0, 0);
}

html.is-entering-pending .page-transition {
  transform: translate3d(0, 0, 0);
  transition: none;
}

.is-entering.is-entering-reveal .page-transition {
  transform: translate3d(-100%, 0, 0);
}

.is-entered .page-transition {
  transform: translate3d(-100%, 0, 0);
  transition: none;
}

.mouse-scroll {
  animation: scroll-bob 2.2s ease-in-out infinite;
}

.question-pill {
  animation: pill-glow 3.2s ease-in-out infinite;
}

.cart-count.flash {
  animation: cart-pulse 400ms ease;
}

.add-button.shake {
  animation: button-shake 420ms ease;
}

@keyframes entrance-fade {
  to { opacity: 0; transform: translateY(-8px); }
}

@keyframes scroll-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

@keyframes pill-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(246, 36, 119, 0); }
  50% { box-shadow: 0 0 30px rgba(246, 36, 119, 0.3); }
}

@keyframes cart-pulse {
  50% { transform: scale(1.35); }
}

@keyframes button-shake {
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

.modal-open {
  overflow: hidden;
}

.campaign-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, 0.8);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.campaign-modal.is-open {
  visibility: visible;
  opacity: 1;
}

/* Modal-to-modal navigation keeps the dimmed backdrop on one composited frame.
   This prevents two backdrop-filter layers from briefly darkening the page. */
.campaign-modal.is-swapping,
.campaign-modal.is-swapping .modal-panel {
  transition: none !important;
}

.modal-panel {
  position: relative;
  flex: none;
  max-width: calc(100vw - 40px);
  border: 1px solid #333;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-family: "Pretendard", sans-serif;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  backface-visibility: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  transform: translate3d(0, 18px, 0) scale(0.985);
  transition: transform 280ms cubic-bezier(.2, 1, .3, 1);
  will-change: transform, backdrop-filter;
}

.campaign-modal.is-open .modal-panel {
  transform: none;
}

.modal-close,
.modal-back {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.modal-close {
  top: 20px;
  right: 20px;
  width: 15px;
  height: 15px;
}

.modal-close img,
.modal-back img {
  display: block;
  width: 100%;
  height: 100%;
}

.payment-dialog {
  width: 1280px;
  height: 781px;
}

.payment-status {
  position: absolute;
  top: 47px;
  left: 0;
  width: 100%;
  margin: 0;
  color: var(--pink);
  font-size: 40px;
  font-weight: 600;
  line-height: 40px;
  text-align: center;
}

.payment-dialog > h2 {
  position: absolute;
  top: 115px;
  left: 0;
  width: 100%;
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  line-height: 26px;
  text-align: center;
}

.payment-items {
  position: absolute;
  top: 191px;
  left: 55px;
  display: flex;
  justify-content: center;
  gap: 42px;
  width: 1170px;
  height: 303px;
}

.payment-item {
  flex: none;
  width: 160px;
  height: 303px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  color: #000;
}

.payment-item-image {
  position: relative;
  width: 160px;
  height: 160px;
}

.payment-product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payment-stamp {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 100px;
  height: 100px;
}

.payment-item-copy {
  height: 143px;
  padding: 17px 19px 10px;
}

.payment-item-copy h3 {
  margin: 0 0 11px;
  font-size: 22px;
  font-weight: 600;
  line-height: 22px;
}

.payment-item-copy p {
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.payment-message {
  position: absolute;
  top: 528px;
  left: 0;
  width: 100%;
  text-align: center;
}

.payment-message p {
  margin: 0;
}

.payment-message p:first-child {
  font-size: 32px;
  font-weight: 200;
  line-height: 32px;
}

.payment-message strong {
  color: var(--pink);
  font-weight: 600;
}

.payment-message p:last-child {
  margin-top: 15px;
  font-size: 26px;
  line-height: 26px;
}

.payment-question {
  position: absolute;
  top: 630px;
  left: 55px;
  width: 1170px;
  padding-top: 28px;
  border-top: 1px solid #606060;
  text-align: center;
}

.payment-question h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 22px;
}

.payment-question p {
  margin: 10px 0 0;
  color: #aaa;
  font-size: 18px;
  line-height: 18px;
}

.payment-divider {
  position: absolute;
  top: 630px;
  left: 55px;
  width: 1170px;
  border-top: 1px solid #606060;
}

.participation-row {
  position: absolute;
  top: 676px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.participation-row textarea {
  width: 600px;
  height: 58px;
  padding: 17px 29px;
  resize: none;
  border: 1px solid #3f4347;
  border-radius: 10px;
  outline: 0;
  background: #000;
  color: #fff;
  font: 400 22px/22px "Pretendard", sans-serif;
}

.participation-row textarea::placeholder {
  color: #7e7e7e;
}

.participation-row.has-error textarea {
  border-color: #ff4c87;
  background: rgba(68, 0, 25, .42);
  box-shadow: 0 0 0 3px rgba(246, 36, 119, .1);
}

.participation-row button,
.contact-submit {
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.participation-row button {
  width: 156px;
  height: 58px;
  font-size: 22px;
}

.form-error {
  position: absolute;
  margin: 0;
  color: #ff8ab8;
  font: 400 13px/16px "Pretendard", sans-serif;
  opacity: 0;
  transform: translateY(4px);
}

.form-error.is-visible {
  animation: form-message-in 320ms cubic-bezier(.2, .9, .2, 1) forwards;
}

.form-error.is-success {
  color: #ff5f91;
}

.payment-dialog > .form-error {
  top: 742px;
  left: 252px;
}

.contact-dialog {
  --field-errors-offset: 0px;
  --completion-offset: 0px;
  left: -3px;
  width: 500px;
  height: calc(733px + var(--field-errors-offset) + var(--completion-offset));
  margin-top: 96px;
  background: rgba(0, 0, 0, 0.3);
  transition: transform 280ms cubic-bezier(.2, 1, .3, 1), height 180ms ease;
}

.contact-dialog.field-errors-1 {
  --field-errors-offset: 17px;
}

.contact-dialog.field-errors-2 {
  --field-errors-offset: 34px;
}

.contact-dialog.field-errors-3 {
  --field-errors-offset: 51px;
}

.contact-modal {
  align-items: flex-start;
}

.modal-back {
  top: 24px;
  right: 30px;
  width: 20px;
  height: 16px;
  transform: rotate(180deg);
}

.contact-heading {
  position: absolute;
  top: 40px;
  left: 36px;
  width: 432px;
  text-align: center;
}

.contact-heading h2 {
  margin: 0;
  color: var(--pink);
  font-size: 26px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: 0;
}

.contact-heading p {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0;
}

.contact-fields {
  position: absolute;
  top: 152px;
  left: 36px;
  display: grid;
  gap: 12px;
  width: 432px;
}

.contact-fields label {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: start;
  min-height: 46px;
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
}

.contact-fields label > span:first-child {
  padding-top: 15px;
}

.field-control {
  position: relative;
  display: block;
  min-width: 0;
}

.field-error,
.privacy-error {
  color: #ff6f9f;
  font: 400 10px/12px "Pretendard", sans-serif;
  letter-spacing: 0;
}

.field-error {
  display: block;
  width: 100%;
  height: 0;
  min-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: height 180ms ease, margin-top 180ms ease, opacity 140ms ease;
}

.field-error.is-visible {
  height: 12px;
  min-height: 12px;
  margin-top: 5px;
  opacity: 1;
}

.contact-fields input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 20px;
  border: 1px solid #3f4347;
  border-radius: 10px;
  outline: 0;
  background: #000;
  color: #fff;
  font: 400 16px/16px "Pretendard", sans-serif;
  letter-spacing: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.contact-fields input:focus {
  border-color: #777;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .06);
}

.contact-fields label.has-error input {
  border-color: #ff4c87;
  background: rgba(68, 0, 25, .42);
  box-shadow: 0 0 0 3px rgba(246, 36, 119, .1);
  animation: field-nudge 280ms ease;
}

.contact-fields input::placeholder {
  color: #7e7e7e;
}

.privacy-block {
  position: absolute;
  top: calc(342px + var(--field-errors-offset));
  left: 36px;
  width: 432px;
  padding-top: 28px;
  border-top: 1px solid #464646;
  transition: top 180ms ease;
}

.privacy-block h3 {
  margin: 0 0 19px;
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
}

.privacy-copy {
  color: #bbb;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

.privacy-copy p {
  margin: 0;
}

.privacy-copy ul {
  margin: 6px 0;
  padding-left: 18px;
}

.privacy-check {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-top: 19px;
  cursor: pointer;
}

.privacy-check input {
  position: absolute;
  opacity: 0;
}

.privacy-check span {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid #606060;
  border-radius: 4px;
  background: transparent;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.privacy-check.has-error span {
  border-color: #ff4c87;
  box-shadow: 0 0 0 3px rgba(246, 36, 119, .12);
}

.privacy-check input:checked + span {
  border-color: var(--pink);
  background: var(--pink);
}

.privacy-check input:checked + span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 8px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.privacy-check b {
  font-size: 14px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 0;
}

.privacy-error {
  display: block;
  height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
}

.privacy-error.is-visible {
  height: 12px;
  margin-top: 8px;
  opacity: 1;
}

.contact-dialog > .form-error {
  left: 36px;
  bottom: 94px;
  width: 432px;
  white-space: normal;
}

.contact-submit {
  position: absolute;
  left: 36px;
  bottom: 39px;
  width: 432px;
  height: 50px;
  font-size: 18px;
  line-height: 18px;
  letter-spacing: 0;
  transition: background-color 220ms ease, color 220ms ease, transform 180ms ease, opacity 220ms ease;
}

.contact-submit:disabled {
  background: #777;
  color: #fff;
  cursor: default;
  opacity: 1;
  animation: completion-pop 420ms cubic-bezier(.2, .9, .2, 1);
}

@keyframes form-message-in {
  to { opacity: 1; transform: none; }
}

@keyframes field-nudge {
  33% { transform: translateX(-3px); }
  66% { transform: translateX(3px); }
}

@keyframes completion-pop {
  50% { transform: scale(1.018); }
}

@media (max-width: 480px) {
  .home-page {
    width: 100%;
    min-width: 0;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #000;
  }

  .home {
    width: 360px;
    height: var(--home-height, 783px);
    min-height: var(--home-height, 783px);
    margin: 0;
    overflow: hidden;
    background: none;
    transform: none;
    zoom: var(--home-scale);
  }

  .home > .site-header {
    height: 40px;
  }

  .home > .site-header .brand {
    top: 14px;
    left: 20px;
    width: 120px;
    height: 12px;
  }

  .home > .site-header .cart-link {
    top: 13px;
    right: 19px;
    width: 18px;
    height: 17.4px;
  }

  .home > .site-header .cart-count {
    top: -4px;
    right: -6px;
    width: 12px;
    height: 12px;
    font-size: 8px;
  }

  .home-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 360px;
    height: 100%;
    transform: none;
  }

  .home-stage::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -8.5px;
    left: -5px;
    width: 370px;
    height: calc(100% + 17px);
    background: url("./assets/figma-mobile/main-1.png") center / 370px 100% no-repeat;
  }

  .home-content {
    inset: 0;
  }

  .home-title {
    top: 55px;
    width: 344px;
    font-size: 30px;
    line-height: 40px;
    white-space: normal;
  }

  .home-title span:last-child {
    max-width: 344px;
  }

  .home .question-pill {
    top: 190px;
    left: 180.5px;
    padding: 12px 18px;
    font-size: 18px;
    line-height: 18px;
  }

  .value-icons {
    top: 261px;
    left: 18px;
    display: flex;
    width: 324px;
    transform: none;
  }

  .value-icon {
    width: 54px;
    height: 48px;
    background-size: 54px 48px;
    background-position: center 9px;
  }

  .value-icon::before {
    top: 0;
    left: 6px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .value-icon img {
    width: 22px;
    height: 22px;
    transform: translateY(-3px);
  }

  .enter-button {
    top: 603px;
    bottom: auto;
    gap: 20px;
    padding: 15px 20px;
    font-size: 20px;
    line-height: 20px;
  }

  .enter-button img {
    width: 20px;
    height: 16px;
  }

  .campaign-credit {
    top: auto;
    bottom: 12px;
    width: auto;
    padding: 0;
    font-size: 14px;
    line-height: 14px;
    white-space: nowrap;
  }

  .sub-page {
    min-width: 0;
    overflow-x: hidden;
  }

  .sub-shell {
    --mobile-scale: var(--initial-mobile-scale, 1);
    width: 360px;
    margin: 0;
    zoom: var(--mobile-scale);
  }

  .sub-shell .site-header {
    height: 40px;
  }

  .sub-shell .brand {
    top: 14px;
    left: 20px;
    width: 120px;
    height: 12px;
  }

  .sub-shell .cart-link {
    top: 13px;
    right: 19px;
    width: 18px;
    height: 17.4px;
  }

  .sub-shell .cart-count {
    top: -4px;
    right: -6px;
    width: 12px;
    height: 12px;
    font-size: 8px;
  }

  .sub-hero {
    height: 330px;
    background: #d9cdc0 url("./assets/figma-mobile/sub-2.png") center -18px / 360px 360px no-repeat;
  }

  .sub-hero .question-pill {
    top: 15px;
    left: 180.5px;
    padding: 7px 12px;
    font-size: 14px;
    line-height: 14px;
  }

  .sub-hero h1 {
    top: 58px;
    width: 330px;
    font-size: 30px;
    line-height: 40px;
    white-space: nowrap;
  }

  .hero-description {
    top: 142px;
    width: auto;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
  }

  .mouse-scroll {
    bottom: 18px;
    gap: 7px;
    font-size: 10px;
    line-height: 10px;
  }

  .mouse-scroll img {
    width: 26px;
    height: 40px;
  }

  .steps {
    position: relative;
    height: 653px;
    padding: 0;
  }

  .steps-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1px;
    height: 653px;
    padding-top: 51px;
  }

  .step-card {
    flex: none;
    width: 289px;
    height: 194px;
    padding: 26px 47px 0;
    background: url("./assets/figma-mobile/sub-13.png") center / 289px 194px no-repeat;
  }

  .step-card::before {
    top: 5px;
    height: 138px;
  }

  .step-number {
    font-size: 16px;
    line-height: 16px;
  }

  .step-icon {
    top: 25px;
    right: 42px;
    width: 18px;
    height: 18px;
  }

  .step-icon-wide {
    right: 39px;
    width: 24px;
    height: 17px;
  }

  .step-card h2 {
    margin: 9px 0 10px;
    font-size: 20px;
    line-height: 20px;
  }

  .step-card p {
    font-size: 16px;
    line-height: 20px;
  }

  .step-arrow {
    position: absolute;
    z-index: 3;
    left: calc(50% - 11px);
    /* 13×22 원본 SVG를 비율 그대로 회전해 아래 방향으로 표시한다. */
    width: 13px;
    height: 22px;
    transform: rotate(90deg);
  }

  .step-arrow:nth-of-type(1) { top: 213px; }
  .step-arrow:nth-of-type(2) { top: 408px; }

  .products-section {
    left: 0;
    width: 326px;
    margin: 0 auto 64px;
    padding-top: 49px;
  }

  .products-section > h2 {
    margin: 0 0 20px;
    font-size: 20px;
    line-height: 20px;
    text-align: center;
  }

  .product-grid {
    display: grid;
    grid-template-columns: 323px;
    gap: 20px;
  }

  .product-card {
    width: 323px;
    height: 315px;
  }

  .product-image-wrap {
    width: 320px;
    height: 185px;
    margin-left: 3px;
  }

  .product-image {
    width: 100%;
    height: 182px;
    margin: 3px 0 0;
  }

  .unavailable-badge {
    top: 0;
    left: -3px;
    width: 116px;
    height: 116px;
  }

  .product-info {
    width: 320px;
    min-height: 0;
    height: 130px;
    margin-left: 3px;
    padding: 22px 18px;
  }

  .product-heading {
    height: 30px;
  }

  .product-symbol {
    width: 30px;
    height: 30px;
  }

  .product-symbol img {
    width: 18px;
    height: 18px;
  }

  .product-heading h3 {
    margin-left: 6px;
    font-size: 22px;
    line-height: 22px;
  }

  .infinity {
    width: 30px;
    height: 13px;
  }

  .product-bottom {
    height: 48px;
    margin-top: 8px;
    padding-left: 0;
    align-items: center;
  }

  .product-bottom p {
    font-size: 20px;
    line-height: 24px;
  }

  .add-button {
    width: 80px;
    height: 48px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 16px;
    line-height: 16px;
  }

  .add-button img {
    width: 18px;
    height: 18px;
  }

  .campaign-ending {
    height: 436px;
    padding: 70px 0 0;
    background: #090506 url("./assets/figma-mobile/sub-7.png") center / 360px 436px no-repeat;
  }

  .not-logo {
    width: 90px;
    height: 69px;
  }

  .ending-title {
    width: 300px;
    margin: 44px 0 0;
    font-size: 25px;
    line-height: 36px;
  }

  .ending-credit {
    margin: 112px 0 0;
    font-size: 14px;
    line-height: 14px;
  }

  .checkout-bar {
    height: 56px;
    flex-direction: row;
  }

  .checkout-bar p {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 216px;
    height: 56px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 14px;
  }

  .checkout-bar button {
    width: 144px;
    height: 56px;
    padding: 0 30px;
    font-size: 14px;
    line-height: 18px;
  }
}

@media (max-width: 600px) {
  .campaign-modal {
    display: block;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    scroll-padding: max(20px, env(safe-area-inset-top, 0px)) 0 max(20px, env(safe-area-inset-bottom, 0px));
    font-family: "Pretendard", sans-serif;
  }

  /* 짧은 결제 모달은 화면 가운데, 긴 모달은 상단 안전 여백부터 스크롤한다. */
  .payment-modal {
    display: flex;
    align-items: flex-start;
    height: 100vh;
    min-height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
    max-height: none;
    padding: max(20px, env(safe-area-inset-top, 0px)) 20px max(20px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  .payment-dialog {
    width: min(320px, calc(100vw - 40px));
    height: auto;
    min-height: 0;
    /* 남는 높이는 위·아래에 균등 배분하고, 넘치면 상단 여백부터 시작한다. */
    margin: auto;
    /* 구분선 아래 여백(20px)과 버튼 아래 여백을 동일하게 유지한다. */
    padding: 51px 20px 20px;
    border-radius: 10px;
  }

  .modal-close {
    top: 22px;
    right: 20px;
  }

  .payment-status {
    position: static;
    width: auto;
    margin: 0;
    font-size: 22px;
    line-height: 26px;
  }

  .payment-dialog > h2 {
    position: static;
    width: auto;
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 16px;
  }

  .payment-items {
    position: static;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    height: auto;
    min-height: 172px;
    margin-top: 20px;
  }

  .payment-item {
    display: flex;
    width: 100%;
    height: 80px;
    border-radius: 4px;
  }

  .payment-item-image {
    flex: none;
    width: 80px;
    height: 80px;
  }

  .payment-stamp {
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
  }

  .payment-item-copy {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 80px;
    padding: 13px 12px 8px;
  }

  .payment-item-copy h3 {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 14px;
  }

  .payment-item-copy p {
    font-size: 12px;
    line-height: 16px;
  }

  .payment-message {
    position: static;
    width: auto;
    margin-top: 20px;
  }

  .payment-message p:first-child {
    font-size: 20px;
    line-height: 24px;
  }

  .payment-message p:last-child {
    margin-top: 10px;
    font-size: 16px;
    line-height: 18px;
  }

  .payment-question {
    position: static;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
  }

  .payment-question h3 {
    font-size: 16px;
    line-height: 24px;
  }

  .payment-question p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 22px;
  }

  .payment-divider {
    position: static;
    width: 100%;
    margin-top: 20px;
    border-top: 1px solid #606060;
  }

  .participation-row {
    position: static;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
  }

  .participation-row textarea {
    width: 100%;
    height: 200px;
    padding: 15px;
    font-size: 14px;
    line-height: 22px;
  }

  .participation-row button {
    width: 100%;
    height: 48px;
    font-size: 20px;
  }

  .payment-dialog > .form-error {
    position: static;
    width: 100%;
    min-height: 16px;
    margin: 8px 0 0;
  }

  /* 비어 있는 안내문은 레이아웃 공간을 차지하지 않는다. */
  .payment-dialog > .form-error:not(.is-visible) {
    display: none;
  }

  .payment-dialog > .form-error.is-visible {
    display: block;
  }

  .contact-dialog {
    left: 0;
    width: min(320px, calc(100vw - 40px));
    height: calc(721px + var(--field-errors-offset) + var(--completion-offset));
    margin: max(20px, env(safe-area-inset-top, 0px)) auto max(20px, env(safe-area-inset-bottom, 0px));
    border-radius: 10px;
  }

  .contact-dialog.field-errors-1 {
    --field-errors-offset: 15px;
  }

  .contact-dialog.field-errors-2 {
    --field-errors-offset: 30px;
  }

  .contact-dialog.field-errors-3 {
    --field-errors-offset: 45px;
  }

  .contact-dialog.is-complete {
    --completion-offset: 24px;
  }

  .modal-back {
    top: 6px;
    right: 7px;
    width: 40px;
    height: 37px;
    padding: 12px;
    border-radius: 6px;
  }

  .contact-heading {
    top: 51px;
    left: 19px;
    width: calc(100% - 38px);
  }

  .contact-heading h2 {
    font-size: 26px;
    line-height: 26px;
  }

  .contact-heading p {
    margin-top: 16px;
    font-size: 16px;
    line-height: 22px;
  }

  .contact-fields {
    top: 181px;
    left: 19px;
    gap: 10px;
    width: calc(100% - 38px);
  }

  .contact-fields label {
    grid-template-columns: 70px 1fr;
    min-height: 40px;
    font-size: 12px;
    line-height: 12px;
  }

  .contact-fields label > span:first-child {
    padding-top: 14px;
  }

  .contact-fields input {
    height: 40px;
    padding: 0 7px;
    border-radius: 5px;
    font-size: 12px;
    line-height: 12px;
  }

  .field-error,
  .privacy-error {
    font-size: 9px;
    line-height: 10px;
  }

  .field-error {
    min-height: 0;
    white-space: nowrap;
  }

  .field-error.is-visible {
    height: 10px;
    min-height: 10px;
    margin-top: 5px;
  }

  .privacy-block {
    top: calc(349px + var(--field-errors-offset));
    left: 19px;
    width: calc(100% - 38px);
    padding: 26px 5px 0;
  }

  .privacy-block h3 {
    margin-bottom: 19px;
    font-size: 16px;
    line-height: 16px;
  }

  .privacy-copy {
    height: 164px;
    font-size: 12px;
    line-height: 16px;
  }

  .privacy-copy ul {
    margin: 6px 0;
    padding-left: 18px;
    line-height: 22px;
  }

  .privacy-check {
    margin-top: 19px;
  }

  .privacy-check b {
    font-size: 14px;
  }

  .contact-dialog > .form-error {
    left: 19px;
    bottom: 75px;
    width: calc(100% - 38px);
    max-width: none;
    font-size: 10px;
    line-height: 12px;
  }

  .contact-dialog.is-complete > .form-error {
    bottom: 85px;
  }

  .contact-submit {
    left: 19px;
    bottom: 23px;
    width: calc(100% - 38px);
    height: 48px;
    font-size: 20px;
    line-height: 20px;
  }
}

@media (max-width: 340px) {
  .payment-dialog,
  .contact-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }
}

/* The checkout stays attached to the actual viewport rather than the scaled
   360px Figma canvas. */
@media (max-width: 600px) {
  .sub-page {
    padding-bottom: 0;
  }

  .checkout-bar {
    flex-direction: row;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .checkout-bar p {
    display: flex;
    flex: 3 1 60%;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 56px;
    margin: 0;
    padding: 0 10px;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    white-space: nowrap;
  }

  .checkout-bar button {
    flex: 2 1 40%;
    width: auto;
    height: 56px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 18px;
  }

  .checkout-label {
    flex-direction: column;
    gap: 0;
    line-height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
