@font-face {
  font-family: "Baloo 2";
  src: url("assets/Baloo2-Regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Baloo 2";
  src: url("assets/Baloo2-Bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

:root {
  --porcelain: #fffefF;
  --blush-mist: #ffe1f1;
  --candy-glass: #feabd8;
  --gem-pink: #ed56a5;
  --berry-ink: #812139;
  --champagne: #f4cf80;
  --safe-top: max(16px, env(safe-area-inset-top));
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--blush-mist);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--berry-ink);
  background: var(--porcelain);
  font-family: "Baloo 2", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.promotion {
  min-height: 100svh;
  overflow: hidden;
  background: var(--porcelain);
}

.skip-button {
  position: fixed;
  z-index: 20;
  top: var(--safe-top);
  right: 16px;
  min-width: 76px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 999px;
  color: var(--porcelain);
  background: rgb(69 14 33 / 68%);
  box-shadow: 0 8px 24px rgb(46 8 24 / 22%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.skip-button span {
  display: inline-block;
  margin-left: 4px;
  font-size: 20px;
  line-height: 0;
  transform: translateY(1px);
}

.runway {
  position: relative;
  min-height: 49svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 73% 28%, rgb(254 171 216 / 88%), transparent 34%),
    linear-gradient(150deg, #c73e83 0%, #8d2449 58%, #461326 100%);
}

.runway-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.runway-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(52 11 29 / 14%) 0%, transparent 38%),
    linear-gradient(0deg, rgb(63 12 31 / 56%) 0%, transparent 47%);
}

.atelier-mark {
  position: absolute;
  left: 22px;
  bottom: 52px;
  display: grid;
  grid-template-columns: auto 38px;
  align-items: center;
  gap: 0 10px;
  color: var(--porcelain);
  text-shadow: 0 2px 18px rgb(47 8 23 / 34%);
}

.atelier-word {
  grid-column: 1 / -1;
  font-size: clamp(46px, 14vw, 72px);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.065em;
}

.atelier-rule {
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.78;
}

.atelier-caption {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.crystal-orbit {
  position: absolute;
  right: -36px;
  bottom: 18px;
  width: 152px;
  height: 152px;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 50%;
  transform: rotate(-11deg);
}

.coin-seal {
  position: absolute;
  inset: 37px;
  display: grid;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 76%);
  border-radius: 50%;
  color: var(--berry-ink);
  background: linear-gradient(145deg, #fff9d9, var(--champagne));
  box-shadow: inset 0 0 0 5px rgb(255 255 255 / 28%), 0 14px 28px rgb(55 8 24 / 32%);
  font-family: Georgia, serif;
  font-size: 34px;
  font-style: italic;
}

.facet {
  position: absolute;
  width: 17px;
  height: 24px;
  background: rgb(255 255 255 / 82%);
  clip-path: polygon(50% 0, 100% 35%, 78% 100%, 22% 100%, 0 35%);
  filter: drop-shadow(0 4px 5px rgb(62 11 30 / 28%));
}

.facet-one { top: -8px; left: 66px; }
.facet-two { right: 4px; bottom: 24px; transform: rotate(46deg) scale(.8); }
.facet-three { left: 1px; bottom: 18px; transform: rotate(-34deg) scale(.66); }

.offer-card {
  position: relative;
  z-index: 4;
  margin-top: -28px;
  padding: 29px 22px calc(24px + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--porcelain);
  box-shadow: 0 -16px 36px rgb(77 17 39 / 14%);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gem-pink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(31px, 9vw, 47px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
}

h1 em {
  color: var(--gem-pink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.offer-ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 23px;
  padding: 14px 16px;
  border: 1px solid rgb(129 33 57 / 13%);
  border-radius: 17px;
  background:
    linear-gradient(105deg, rgb(255 225 241 / 80%), rgb(255 254 255 / 94%)),
    var(--porcelain);
}

.offer-ticket strong,
.offer-ticket span {
  display: block;
}

.offer-ticket strong {
  font-size: 29px;
  line-height: .9;
  letter-spacing: -.03em;
}

.offer-ticket strong + span {
  margin-top: 5px;
  color: rgb(129 33 57 / 68%);
  font-size: 13px;
}

.reference-price {
  flex: 0 0 auto;
  padding-left: 17px;
  border-left: 1px solid rgb(129 33 57 / 14%);
  text-align: right;
}

.reference-price small {
  display: block;
  color: rgb(129 33 57 / 56%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.reference-price span {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
}

.product-use {
  margin: 17px 2px;
  color: rgb(129 33 57 / 73%);
  font-size: 14px;
  line-height: 1.45;
}

.purchase-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  color: var(--porcelain);
  background: var(--gem-pink);
  box-shadow: 0 12px 24px rgb(237 86 165 / 25%);
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.purchase-button svg {
  width: 18px;
  height: 18px;
}

.purchase-button:active {
  transform: scale(.975);
  background: #d94593;
  box-shadow: 0 7px 16px rgb(237 86 165 / 22%);
}

.status {
  margin: 9px 12px 0;
  color: rgb(129 33 57 / 58%);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.status:empty {
  display: none;
}

.preview-dialog {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(69 14 33 / 55%);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.preview-dialog[hidden] {
  display: none;
}

.preview-card {
  width: min(100%, 380px);
  padding: 24px;
  border-radius: 24px;
  background: var(--porcelain);
  box-shadow: 0 24px 70px rgb(50 8 24 / 32%);
}

.preview-card h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
}

.preview-card p:not(.eyebrow) {
  margin: 12px 0 18px;
  color: rgb(129 33 57 / 72%);
  line-height: 1.45;
}

.preview-card button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--porcelain);
  background: var(--berry-ink);
  font-weight: 700;
  cursor: pointer;
}

button:focus-visible {
  outline: 3px solid var(--champagne);
  outline-offset: 3px;
}

@media (min-width: 700px) {
  .promotion {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  }

  .runway {
    min-height: 100svh;
  }

  .offer-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 64px clamp(36px, 6vw, 88px);
    border-radius: 0;
    box-shadow: -18px 0 42px rgb(77 17 39 / 10%);
  }

  .crystal-orbit {
    right: -21px;
    bottom: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .runway-film {
    display: none;
  }
}
