:root {
  --primary-color: #ff5f00;
  /* Orange from reference */
  --secondary-color: #1e293b;
  --background-color: #ffffff;
  /* White background for body */
  --app-background: #ffffff;
  /* White background for app */
  --text-primary: #111111;
  --text-secondary: #666666;
  --border-color: #e5e7eb;

  font-family: "SeoulHangang", sans-serif;
  line-height: 1.6;
  font-weight: 400;

  color-scheme: only light;
  color: var(--text-primary);
  background-color: var(--background-color);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  color-scheme: only light;
  background-color: var(--background-color);
}
body {
  margin: 0;
  display: flex;
  place-items: center;
  /* Centers the #root vertically and horizontally */
  justify-content: center;
  min-width: 320px;
  min-height: 100vh;
  background-color: var(--background-color);
}
h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 800;
  background: none;
  -webkit-text-fill-color: initial;
}
h2,
h3 {
  color: var(--text-primary);
}
button {
  border-radius: 12px;
  border: none;
  padding: 1em 1.5em;
  font-size: 1.1em;
  font-weight: 800;
  font-family: inherit;
  background-color: black;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  /* Full width buttons */
}
button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
button:active {
  transform: translateY(0);
}
.customer-top-bar { position: fixed; top: 0; left: 0; width: 100%; z-index: 160; pointer-events: none; }
.customer-top-bar__row {
  max-width: 480px; margin: 0 auto; padding: .85rem .9rem 0; box-sizing: border-box;
  display: flex; align-items: center; justify-content: flex-end; gap: .75rem;
  min-height: 48px; position: relative; opacity: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}
.customer-top-bar__row.is-hidden { opacity: 0; transform: translateY(-6px); visibility: hidden; }
.customer-top-bar__brand { display: inline-flex; align-items: center; line-height: 0; pointer-events: auto;
  cursor: pointer; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.customer-top-bar__brand img { display: block; width: 104px; height: auto; object-fit: contain; }
.customer-top-bar__account {
  width: 48px; height: 48px; border-radius: 16px; background: rgba(17,17,17,.72);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 12px 30px rgba(0,0,0,.2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); pointer-events: auto;
  color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
}
.customer-top-bar__account.has-login-label { width: 74px; font-size: .95rem; font-weight: 800; }
.customer-top-bar--light .customer-top-bar__account { color: #111827; background: rgba(255,255,255,.88);
  border-color: rgba(17,24,39,.1); box-shadow: 0 10px 28px rgba(15,23,42,.08); }
.customer-top-bar--shrine { position: absolute; }
.customer-top-bar--shrine .customer-top-bar__brand {
  left: 20px; transform: translateY(-35%); color: #edcd87; border: 1px solid #c49a4b;
  border-radius: 4px; padding: 9px 16px; font-size: 20px; letter-spacing: .2em;
  text-decoration: none; line-height: 1.2;
}
.customer-top-bar--shrine .customer-top-bar__account {
  height: 40px; border-radius: 999px; color: #3c2519; background: #fff4e3;
  border-color: #e8ceaa; box-shadow: 0 4px 16px #14090322;
}
.customer-top-bar--shrine .customer-top-bar__brand.has-logo-image {
  left: 50%; top: calc(50% + .425rem); transform: translate(-50%, -50%);
  border: 0; border-radius: 0; padding: 0; line-height: 0;
}
.customer-top-bar--shrine .has-logo-image img { width: 80px; }
.customer-top-bar--shrine :focus-visible { outline: 2px solid #edcd87; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .customer-top-bar__row { transition: none; } }

.product-fortune-card {
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  justify-items: center;
  gap: 5px;
  width: 100%;
  height: 100%;
  padding: 15px 12px 13px;
  border: 5px solid #fff4e4;
  border-radius: 17px;
  background: linear-gradient(155deg, var(--card-start, #fff9ec), var(--card-end, #f4e1c6));
  color: var(--card-ink, #392217);
  box-shadow: inset 0 0 0 1.5px var(--card-line, #e7a38d), 0 0 0 1.5px #4d2d20, 0 14px 22px #10050066;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: background 200ms;
}
.product-fortune-card:active { transform: none; }
.product-fortune-card > * { position: relative; z-index: 1; }
.product-fortune-card strong { margin: 0; font-size: clamp(16px, 4.3vw, 21px); font-weight: 700; line-height: 1.3; word-break: keep-all; }
.product-fortune-card__description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: clamp(11px, 3.2vw, 14px); line-height: 1.45; font-weight: 400; word-break: keep-all; opacity: .85; }
.product-fortune-card__price { font-size: 12px; font-weight: 700; }
.product-fortune-card.is-active { box-shadow: inset 0 0 0 2px var(--card-line, #e7a38d), 0 0 0 2px #fff4e4, 0 18px 28px #10050077; }
@media (max-width: 360px) { .product-fortune-card__description { -webkit-line-clamp: 1; } }

/* 신당 배경: 카드 전체에 깔고, 등불·촛불만 따로 깜빡인다. 아래쪽은 카드 색으로 덮어 글자를 읽기 쉽게 한다. */
.product-fortune-card > .product-fortune-card__backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 12px; pointer-events: none; isolation: isolate; }
.product-fortune-card__room {
  position: absolute; top: -3%; left: 50%; height: 100%; aspect-ratio: 1;
  background-image: var(--fortune-room-image, url("/assets/fortune-shrine-Fz2v6k2E.webp"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform-origin: 50% 62%; translate: calc(-50% + var(--drag-x, 0px) * -.08) 0;
}
.product-fortune-card picture { display: contents; }
@media (max-width: 479px) {
  .product-fortune-card__room {
    background-image: var(--fortune-phone-room-image, var(--fortune-room-image, url("/assets/fortune-shrine-Fz2v6k2E.webp")));
  }
}
.product-fortune-card__lamp { position: absolute; width: 22%; aspect-ratio: 1; margin: -11% 0 0 -11%; border-radius: 50%; background: radial-gradient(circle, #ffb86ccc, #ff7a4a55 35%, transparent 68%); mix-blend-mode: screen; opacity: .7; }
.product-fortune-card__lamp:nth-child(1) { left: 20%; top: 25%; }
.product-fortune-card__lamp:nth-child(2) { left: 50%; top: 28%; animation-delay: -1.1s; }
.product-fortune-card__lamp:nth-child(3) { left: 80.5%; top: 25%; animation-delay: -2.3s; }
.product-fortune-card__lamp:nth-child(4) { left: 38%; top: 67%; width: 10%; margin: -5% 0 0 -5%; animation-delay: -.6s; }
.product-fortune-card__lamp:nth-child(5) { left: 62.5%; top: 67%; width: 10%; margin: -5% 0 0 -5%; animation-delay: -1.7s; }
.product-fortune-card__backdrop::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, var(--card-start, #fff9ec), var(--card-end, #f4e1c6)); mix-blend-mode: color; opacity: .36; }
.product-fortune-card__backdrop::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #1a0a0640 0, transparent 22%, transparent 66%, #1a0a06a6 100%); }
.product-fortune-card--custom-background .product-fortune-card__room {
  top: 0; left: 0; width: 100%; height: 100%; aspect-ratio: auto; translate: none;
}
.product-fortune-card--custom-background .product-fortune-card__backdrop::before { display: none; }
.product-fortune-card--custom-background .product-fortune-card__backdrop::after {
  background: linear-gradient(180deg, #05071212, transparent 40%, #05071216);
}

/* 캐릭터 무대: 신당 앞에 양이 따로 떠 있다. 넘길 때(--drag-x) 배경과 반대로 밀려 깊이감이 생긴다. */
.product-fortune-card__stage { position: relative; width: 100%; height: 100%; min-height: 0; pointer-events: none; }
.product-fortune-card__stage > *, .product-fortune-card__stage > picture > img { position: absolute; pointer-events: none; }
.product-fortune-card__halo {
  left: 14%; right: 14%; top: 14%; bottom: 10%; border-radius: 50%;
  background: radial-gradient(circle, #fff3d8aa 0, var(--card-glow, #ffe08a) 30%, transparent 66%);
  opacity: .5; filter: blur(6px); mix-blend-mode: screen;
}
.product-fortune-card__shadow {
  left: 30%; right: 30%; bottom: 3%; height: 7%; border-radius: 50%;
  background: radial-gradient(closest-side, #2a0e0866, transparent);
}
.product-fortune-card__hero {
  inset: 12% 10% 2%; display: block; width: 80%; height: 86%; object-fit: contain;
  filter: drop-shadow(0 6px 10px #1a080444);
  translate: calc(var(--drag-x, 0px) * .1) 0;
}
.product-fortune-card__spark {
  width: 20px; height: 20px; background: #fffdf6;
  filter: drop-shadow(0 0 4px var(--card-glow, #ffe08a));
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0; translate: calc(var(--drag-x, 0px) * .18) 0;
}
.product-fortune-card__spark:nth-of-type(1) { left: 12%; top: 18%; }
.product-fortune-card__spark:nth-of-type(2) { right: 14%; top: 34%; width: 14px; height: 14px; animation-delay: .7s; }
.product-fortune-card__spark:nth-of-type(3) { left: 20%; top: 62%; width: 12px; height: 12px; animation-delay: 1.4s; }
.product-fortune-card__spark:nth-of-type(4) { right: 22%; top: 8%; width: 16px; height: 16px; animation-delay: 2.1s; }
.product-fortune-card__spark:nth-of-type(5) { right: 9%; bottom: 20%; animation-delay: 2.8s; }

/* 가운데 카드만 움직임 */
.is-active .product-fortune-card__room { animation: fortune-card-zoom 14s ease-in-out infinite alternate; }
.is-active .product-fortune-card__lamp { animation: fortune-card-flicker 2.6s ease-in-out infinite; }
.is-active .product-fortune-card__halo { animation: fortune-card-breathe 3.4s ease-in-out infinite; }
.is-active .product-fortune-card__hero { animation: fortune-card-float 3.4s ease-in-out infinite; }
.is-active .product-fortune-card__shadow { animation: fortune-card-shadow 3.4s ease-in-out infinite; }
.is-active .product-fortune-card__spark { animation-name: fortune-card-twinkle; animation-duration: 3.5s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.product-fortune-card[data-motion-paused="true"] * { animation-play-state: paused !important; }

@keyframes fortune-card-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes fortune-card-flicker { 0%, 100% { opacity: .55; transform: scale(.94); } 30% { opacity: .9; transform: scale(1.04); } 55% { opacity: .65; } 75% { opacity: .85; transform: scale(1); } }
@keyframes fortune-card-breathe { 0%, 100% { transform: scale(.9); opacity: .4; } 50% { transform: scale(1.06); opacity: .65; } }
@keyframes fortune-card-float { 0%, 100% { transform: translateY(2%) rotate(-1.5deg); } 50% { transform: translateY(-5%) rotate(1.5deg); } }
@keyframes fortune-card-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.72); opacity: .55; } }
@keyframes fortune-card-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: 0; transform: scale(.5) rotate(90deg); } }

@media (prefers-reduced-motion: reduce) {
  .product-fortune-card { transition: none; }
  .is-active .product-fortune-card__room, .is-active .product-fortune-card__lamp,
  .is-active .product-fortune-card__stage > *, .is-active .product-fortune-card__stage > picture > img { animation: none; }
  .product-fortune-card__room { translate: -50% 0; }
  .product-fortune-card__stage > *, .product-fortune-card__stage > picture > img { translate: none; }
}

/* 글자: 신년운세 타이틀처럼 붓글씨 먹 + 붉은 먹점 + 낙관 가격 */
.product-fortune-card { padding-bottom: 14px; }
.product-fortune-card__plate { position: relative; display: inline-block; max-width: 100%; margin-top: 6px; padding: 0 10px; }
.product-fortune-card__plate::before {
  content: ""; position: absolute; inset: -14px -26px -10px; z-index: -1;
  background: radial-gradient(closest-side, #fff8ecf2 30%, #f6e8d4c4 62%, transparent);
  filter: blur(2px);
}
.product-fortune-card__plate::after {
  content: ""; position: absolute; left: -2px; top: -4px; width: 30px; height: 26px; z-index: 1;
  background: radial-gradient(circle at 40% 45%, #c8372d 0 5px, transparent 6px), radial-gradient(circle at 74% 22%, #c8372d 0 2px, transparent 3px), radial-gradient(circle at 18% 80%, #a3241c 0 1.6px, transparent 2.6px), radial-gradient(ellipse 9px 4px at 62% 60%, #c8372dcc, transparent);
  opacity: .9; mix-blend-mode: multiply;
}
.product-fortune-card__plate strong {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: "East Sea Dokdo", "SeoulHangang", serif; font-weight: 400;
  font-size: clamp(30px, 8.6vw, 40px); line-height: 1.05; letter-spacing: .01em; color: #1a0f0b;
  text-shadow: 0 0 1px #1a0f0b, 1px 1px 0 #1a0f0b66, 0 0 12px #fff8ec;
}
.product-fortune-card__description { color: #fff3df; opacity: 1; padding: 0 6px; text-shadow: 0 1px 3px #1a0a06, 0 0 10px #1a0a06cc; }
.product-fortune-card__price {
  position: absolute; right: -16px; top: -14px; z-index: 2; padding: 3px 6px 4px; white-space: nowrap;
  border: 2px solid #d8402f; border-radius: 3px; background: #fff3dfe6;
  color: #c8372d; font-weight: 800; font-size: 12px; letter-spacing: .06em; line-height: 1.1;
  transform: rotate(8deg); box-shadow: inset 0 0 0 1px #fff3df, 0 2px 4px #1a0a0655;
}
.product-fortune-card__plate strong.has-image { text-shadow: none; line-height: 0; }
.product-fortune-card__plate strong.has-image:has(> picture) { font-family: inherit; }
.product-fortune-card__title-image { display: block; height: clamp(46px, 13vw, 62px); width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; pointer-events: none; filter: drop-shadow(0 0 6px #fff8ec); }
.product-fortune-card__plate:has(.has-image)::after { display: none; }

.product-fortune-card__title-image.is-stacked { height: clamp(110px, 32vw, 150px); max-width: 100%; }

.product-fortune-card--shelf {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  height: auto; padding: 0; border: 0; border-radius: 0; overflow: visible;
  background: transparent; color: #f5eee4; box-shadow: none; text-align: left;
}
.product-fortune-card--shelf:hover { transform: none; }
.product-fortune-card__artwork {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5;
  overflow: hidden; border: 4px solid #fff4e7; border-radius: 14px;
  background: #241810; box-shadow: 0 7px 14px #0004;
}
.product-fortune-card__artwork > .product-fortune-card__backdrop {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none; isolation: isolate;
}
.product-fortune-card--shelf .product-fortune-card__room {
  top: 0; left: 0; width: 100%; height: 100%; aspect-ratio: auto;
  translate: none; background-size: cover;
}
.product-fortune-card--shelf .product-fortune-card__backdrop::before { opacity: .2; }
.product-fortune-card--shelf .product-fortune-card__backdrop::after {
  background: radial-gradient(ellipse at 50% 40%, #fff7e944, transparent 68%);
}
.product-fortune-card--shelf .product-fortune-card__stage {
  position: absolute; inset: 3% 0 auto; width: 100%; height: 74%; z-index: 1;
}
.product-fortune-card--shelf .product-fortune-card__hero {
  inset: 0 3%; width: 94%; height: 100%; translate: none;
}
.product-fortune-card--shelf .product-fortune-card__plate {
  position: absolute; inset: auto 4% 4%; z-index: 2; height: 22%;
  margin: 0; padding: 0; display: grid; place-items: center;
}
.product-fortune-card--shelf .product-fortune-card__plate::before {
  inset: -10px -5px;
}
.product-fortune-card--shelf .product-fortune-card__title-image {
  width: 100%; height: 100%; max-height: none;
}
.product-fortune-card--shelf .has-image { width: 100%; height: 100%; }
.product-fortune-card__details { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.product-fortune-card__details > strong { font-size: 14px; font-weight: 500; line-height: 1.45; }
.product-fortune-card__details > span { color: #b6aebc; font-size: 12px; font-weight: 400; line-height: 1.55; word-break: keep-all; }
.product-fortune-card__details > .product-fortune-card__shelf-price { margin-top: 4px; color: #f5eee4; font-size: 14px; font-weight: 500; }

.customer-bottom-nav {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px;
  padding: .22rem 1rem calc(.26rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box; z-index: 170; background: rgba(255,255,255,.98);
}
.customer-bottom-nav__items { display: grid; grid-template-columns: repeat(var(--nav-count), minmax(0, 1fr)); gap: .7rem; }
.customer-bottom-nav__items button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .14rem;
  min-height: 30px; border-radius: 18px; color: #6b7280; background: transparent; box-shadow: none;
}
.customer-bottom-nav__items [aria-current="page"] { color: #111827; }
.customer-bottom-nav__icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.customer-bottom-nav__label { font-size: .72rem; font-weight: var(--customer-bottom-nav-font-weight, 800); white-space: nowrap; }
.customer-bottom-nav--floating {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 40px); max-width: 440px;
  padding: 2px 12px; background: #ffffff; border-radius: 19px;
  border: 1px solid #e5e7eb; box-shadow: 0 8px 28px #1b090933;
}
.customer-bottom-nav--floating button { min-height: 44px; border-radius: 0; color: #7c8390; }
.customer-bottom-nav--floating button:hover { transform: none; background: transparent; }
.customer-bottom-nav--floating .customer-bottom-nav__icon,
.customer-bottom-nav--floating .customer-bottom-nav__icon svg { width: 23px; height: 23px; }
.customer-bottom-nav--floating [aria-current="page"] .customer-bottom-nav__icon { color: #c74c40; }
.customer-bottom-nav--floating button:focus-visible { outline: 2px solid #a14335; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .customer-bottom-nav button { transition: none; } }

.shrine-home {
  --shrine-cream: #fff2dc;
  --shrine-coral: #ffa58e;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: 64px 0 calc(112px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  color: var(--shrine-cream);
  background-color: #050505;
  background-image:
    radial-gradient(ellipse 64% 32% at 50% 29%, #ffffff29 0%, #ffffff0d 48%, transparent 78%),
    radial-gradient(ellipse 80% 30% at 50% 54%, #ffffff12 0%, transparent 75%),
    var(--shrine-night-sky, url("/assets/home-night-sky-qWq_-z_P.webp"));
  background-position: 0 0, 0 0, center top;
  background-size: auto, auto, cover;
  background-repeat: no-repeat;
}
.shrine-home__reading { position: relative; z-index: 1; margin-top: 8px; }
.shrine-home__scene { position: relative; width: 100%; max-width: 430px; margin: 0 auto; }
.shrine-home__cat-stage { position: relative; width: 27%; margin: 0 auto; }
.shrine-home__cat { display: block; width: 100%; height: auto; user-select: none; pointer-events: none; }
.shrine-home__paw { position: absolute; inset: 0 0 auto; z-index: 20; }
.shrine-home__paw--left { clip-path: ellipse(10% 8% at 34% 91%); }
.shrine-home__paw--right { clip-path: ellipse(10% 8% at 66% 91%); }
.shrine-home__new-year-notice {
  max-width: min(20rem, calc(100vw - 3rem));
  padding: 1.25rem;
  border: 1px solid var(--shrine-cream);
  border-radius: 1rem;
  color: var(--shrine-cream);
  background: #1a131e;
  text-align: center;
}
.shrine-home__new-year-notice::backdrop { background: #0009; }
.shrine-home__new-year-notice p { margin: 0 0 1rem; }
.shrine-home__new-year-notice button {
  min-height: 44px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
}
@media (max-height: 740px) {
  .shrine-home { padding-top: 64px; }
  .shrine-home__reading { margin-top: 0; }
}

.home-atmosphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.home-atmosphere__stars circle { opacity: .55; }
.home-atmosphere__stars .is-twinkle { animation: home-star-twinkle 3s ease-in-out infinite; }
.home-atmosphere[data-motion-paused="true"] * { animation-play-state: paused !important; }
.home-atmosphere__meteor {
  fill: none;
  stroke: #fff4dc;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: .25 1;
  stroke-dashoffset: .25;
  opacity: 0;
  animation: home-meteor 11s ease-in 4s infinite;
}
@keyframes home-star-twinkle { 0%, 100% { opacity: .2; } 50% { opacity: .95; } }
@keyframes home-meteor {
  0% { stroke-dashoffset: .25; opacity: 0; }
  2% { opacity: 1; }
  9% { stroke-dashoffset: -1; opacity: 0; }
  100% { stroke-dashoffset: -1; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-atmosphere__stars .is-twinkle, .home-atmosphere__meteor { animation: none; }
}

.home-card-carousel { position: relative; margin-top: -2.25%; }
.home-card-carousel__fan { position: relative; height: min(119vw, calc(100svh - 340px), 512px); min-height: 280px; touch-action: pan-y pinch-zoom; user-select: none; cursor: grab; }
.home-card-carousel__fan.is-dragging { cursor: grabbing; }
.home-card-carousel__slot {
  position: absolute;
  width: 83.3333%;
  height: 89%;
  left: 8.3333%;
  top: 0;
  transform-origin: 50% 90%;
  transform: translate(calc(var(--offset) * 52% + var(--drag-x, 0px)), calc(var(--distance) * 19px)) rotate(calc(var(--offset) * 10deg)) scale(calc(1 - var(--distance) * .045));
  transition: transform 360ms cubic-bezier(.22,.75,.25,1);
}
.is-dragging .home-card-carousel__slot { transition: none; }
.home-card-carousel__dots button { display: inline-grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; box-shadow: none; }
.home-card-carousel__dots button:hover { background: #fff2dc0d; }
.home-card-carousel__dots { position: relative; z-index: 20; display: flex; justify-content: center; margin-top: clamp(-52px, -11vw, -30px); }
.home-card-carousel__dots button { width: 32px; }
.home-card-carousel__dots span { width: 7px; height: 7px; border-radius: 20px; background: #8c6250; transition: background 180ms; }
.home-card-carousel__dots [aria-pressed="true"] span { width: 23px; background: #ffa58e; }
.home-card-carousel button:focus-visible { outline: 2px solid #ffbe83; outline-offset: 5px; }
.home-card-carousel__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .home-card-carousel__slot, .home-card-carousel__dots span { transition: none; } }

.home-card-carousel__slot:nth-child(4n + 1) { --card-start: #ffb3a0; --card-end: #ec8278; --card-ink: #482018; --card-line: #cc6b62; --card-glow: #ffe08a;}
.home-card-carousel__slot:nth-child(4n + 2) { --card-start: #e8d9ff; --card-end: #bdace6; --card-ink: #392b56; --card-line: #a38ac7; --card-glow: #f6d9ff;}
.home-card-carousel__slot:nth-child(4n + 3) { --card-start: #d0eee5; --card-end: #88c6b9; --card-ink: #193e38; --card-line: #6cae9f; --card-glow: #f2fff6;}
.home-card-carousel__slot:nth-child(4n + 4) { --card-start: #ffe8c6; --card-end: #efb584; --card-ink: #50321e; --card-line: #d59a6a; --card-glow: #fff0b0;}

.home-product-shelves {
  --shelf-edge-space: max(22px, calc((100% - 430px) / 2 + 22px));
  position: relative; z-index: 1; width: 100%;
  margin: 30px auto 0; display: grid; gap: 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
.home-product-shelves h2 {
  margin: 0 var(--shelf-edge-space) 20px; color: #fff; font-family: inherit;
  font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -.65px;
  word-break: keep-all; text-align: start;
}
.home-product-shelves__row {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--shelf-edge-space);
  /* The scroll viewport reaches both edges; the first card keeps its inset. */
  margin: 0; padding: 3px var(--shelf-edge-space) 12px; list-style: none;
  scrollbar-width: thin; scrollbar-color: #76667c55 transparent;
}
.home-product-shelves__row > li {
  flex: 0 0 86%; min-width: 0; scroll-snap-align: start;
}
.home-product-shelves [data-product="timing"] { --card-start: #cec0e7; --card-end: #cec0e7; }
.home-product-shelves [data-product="deep_compatibility"] { --card-start: #e8c4a7; --card-end: #e8c4a7; }
.home-product-shelves [data-product="self"] { --card-start: #a7cec0; --card-end: #a7cec0; }
.home-product-shelves button:focus-visible { outline: 2px solid #d3b98a; outline-offset: 2px; }
@media (max-width: 360px) {
  .home-product-shelves { --shelf-edge-space: 18px; }
}

/* Generated by scripts/fonts/buildHomeFirstViewFont.py. */
@font-face {
  font-family: "SeoulHangang Home";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/SeoulHangangM.home-Bl7Dz66O.woff2") format("woff2");
  unicode-range: U+20-7E,U+B7,U+AC1C-AC1D,U+AC8C,U+ACA9,U+ACC4,U+ACE0,U+ACFC,U+AD00,U+AD81,U+ADF8,U+AE08,U+AE30,U+AE34,U+AE38,U+AE4C,U+B098,U+B0A8,U+B144,U+B294,U+B2E4,U+B2E8,U+B2EC,U+B2F4,U+B3C4,U+B450,U+B78C,U+B824,U+B85C,U+B8CC,U+B978,U+B97C,U+B9AC,U+B9C8,U+B9CC,U+B9DE,U+BA74,U+BAA8,U+BB18,U+BB34,U+BBF8,U+BCC0,U+BCF4,U+BCF8,U+BD80,U+BD84,U+BD88,U+C0AC,U+C0C1,U+C11D,U+C138,U+C18D,U+C194,U+C2B5,U+C2DC-C2DD,U+C2E0,U+C2EC,U+C378,U+C3ED,U+C544,U+C548,U+C54C,U+C560,U+C5C4,U+C5D0,U+C5F0,U+C608,U+C62C,U+C694,U+C6B4,U+C6D0,U+C720,U+C744,U+C74C,U+C758,U+C774,U+C778,U+C788,U+C798,U+C801,U+C815,U+C8FC,U+C9C0-C9C1,U+C9C4,U+C9DC,U+CCAB,U+CD9C,U+CE35,U+CEA0,U+D398,U+D504,U+D558,U+D55C,U+D569,U+D574,U+D68C,U+D749,U+D751;
}

@font-face {
  font-family: "SeoulHangang Home Subsets";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/SeoulHangangM.home-page-B3iylVeX.woff2") format("woff2");
  unicode-range: U+20-7E,U+AD,U+B7,U+2019,U+25B2,U+25BC,U+AC00,U+AC1C-AC1D,U+AC8C,U+ACA9,U+ACC4,U+ACE0,U+ACFC,U+AD00,U+AD11,U+AD6C,U+AD81,U+ADF8,U+AE00,U+AE08,U+AE30,U+AE34,U+AE38,U+AE4C,U+B098,U+B0A8,U+B110,U+B124,U+B144,U+B204,U+B294,U+B2A5,U+B2E4,U+B2E8,U+B2EC,U+B2F4,U+B300,U+B355,U+B370,U+B3C4,U+B3D9,U+B450,U+B4DC,U+B4F1,U+B77C-B77D,U+B78C,U+B7EC,U+B824,U+B85C-B85D,U+B8CC,U+B974,U+B978,U+B97C,U+B9AC,U+B9B4,U+B9C1,U+B9C8,U+B9CC,U+B9DE,U+B9E4,U+BA54,U+BA74,U+BA85,U+BAA8,U+BB18,U+BB34,U+BBF8,U+BC14,U+BC29,U+BC31,U+BC84,U+BC88,U+BCC0,U+BCF4,U+BCF8,U+BCFC,U+BD80,U+BD84,U+BD88,U+BE44,U+C0AC,U+C0C1,U+C11C-C11D,U+C120,U+C138,U+C140,U+C158,U+C18C-C18D,U+C194,U+C218,U+C2A4,U+C2AC,U+C2B5,U+C2DC-C2DD,U+C2E0,U+C2EC,U+C378,U+C3ED,U+C544,U+C548,U+C54C,U+C560,U+C57D,U+C5B4,U+C5C4-C5C5,U+C5D0,U+C5EC-C5ED,U+C5F0,U+C608,U+C624,U+C62C,U+C694,U+C6A9,U+C6B4,U+C6D0,U+C720,U+C73C,U+C744,U+C74C,U+C758,U+C774,U+C778,U+C77C,U+C788,U+C790,U+C798,U+C7A0,U+C7A5,U+C801,U+C811,U+C815,U+C8FC,U+C9C0-C9C1,U+C9C4,U+C9D1,U+C9DC,U+CC44-CC45,U+CC98,U+CCAB,U+CD9C,U+CE35,U+CE59,U+CE68,U+CE74,U+CE90,U+CEA0,U+D0DD,U+D1A0-D1A1,U+D1B5,U+D2BC,U+D2C0,U+D305,U+D310,U+D37C,U+D398,U+D45C,U+D488,U+D504,U+D558,U+D55C,U+D569,U+D574,U+D638,U+D648,U+D658,U+D68C,U+D749,U+D751,U+D788;
}

@font-face {
  font-family: "SeoulHangang Home Subsets";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/SeoulHangangEB.home-page-N6yACp5Q.woff2") format("woff2");
  unicode-range: U+20-7E,U+AD,U+2019,U+ACE0,U+BA74,U+BB18,U+BE44,U+C0AC,U+C5B4,U+C694,U+C744,U+C788,U+C8FC,U+C900,U+D558,U+D654,U+D751;
}

.shrine-home--fast-artwork:not(.shrine-home--font-subsets) .shrine-home__reading .product-fortune-card__description {
  font-family: "SeoulHangang Home", "SeoulHangang", sans-serif;
}

/* The shared footer and bottom navigation are siblings of the home surface. */
body:has(.shrine-home--font-subsets) {
  font-family: "SeoulHangang Home Subsets", "SeoulHangang", sans-serif;
}

#home-first-view {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  position: relative;
  margin: 0 auto;
  text-align: center;
}

body[data-home-first-view] #root {
  position: absolute;
  inset: 0 0 auto;
  visibility: hidden;
}
