/* 도화서원 index · Figma 02 / image1 + V3 / 09 / image8, image9 */
:root {
  --ink: #191b30;
  --muted: #777887;
  --navy: #191b37;
  --pink: #d35b9b;
  --gold: #ba9460;
  --line: #eeeef3;
  --shell: 450px;
  --bottom-nav: 74px;
  --radius: 15px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}
body {
  margin: 0;
  background: #eff0f4;
  color: var(--ink);
  font-family:
    "Pretendard",
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #8764c8;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
}
button:active:not(:disabled) {
  filter: brightness(0.97);
}
[hidden] {
  display: none !important;
}
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  background: var(--navy);
  color: white;
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.app-shell {
  max-width: var(--shell);
  min-height: 100dvh;
  margin: auto;
  background: #fff;
  padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
  box-shadow: 0 0 80px #1c1b3410;
  overflow: clip;
}
.site-header {
  height: 60px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  letter-spacing: -1.4px;
  white-space: nowrap;
}
.brand-moon {
  position: relative;
  font-size: 47px;
  line-height: 1;
  color: var(--navy);
  font-weight: 400;
  transform: rotate(-13deg);
  width: 43px;
}
.brand-moon i {
  font-size: 21px;
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--gold);
  font-style: normal;
}
.header-actions {
  display: flex;
  gap: 8px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;
}
.icon-button:hover {
  background: #f4f3f8;
}
.icon-button .icon {
  width: 26px;
  height: 26px;
}
.notification-dot {
  position: absolute;
  right: 9px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e26080;
  border: 1px solid white;
}
.category-nav {
  display: flex;
  background: #fff;
  gap: 5px;
  padding: 0px 20px 6px;
  border-bottom: 1px solid #faf9fc;
}
.category-tab {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  border-radius: 24px;
  padding: 2px 10px;
  color: #555569;
  white-space: nowrap;
}
.category-tab:hover {
  background: #f3f1f8;
}
.category-tab.is-active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 3px 7px #191b3722;
}
main {
  padding: 0 22px;
  padding-top: 20px;
}
.hero-section {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 4px;
  background: #21162e;
}
.hero-track {
  position: relative;
  aspect-ratio: 4/3;
}
.hero-slide {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-controls {
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  pointer-events: none;
}
.slider-dots {
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: auto;
}
.slider-dots button {
  width: 24px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}
.slider-dots button:after {
  content: "";
  width: 6px;
  height: 6px;
  background: #ffffff65;
  border-radius: 100%;
  transition:
    width 0.2s,
    background 0.2s;
}
.slider-dots button.is-active:after {
  width: 8px;
  height: 8px;
  background: #fff;
}
.slide-pause {
  width: 29px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  font-size: 12px;
  color: white;
  background: #15122b40;
  pointer-events: auto;
}
.slide-count {
  margin-left: auto;
  color: white;
  font-size: 12px;
  letter-spacing: 1px;
  background: #111321a6;
  padding: 3px 11px;
  border-radius: 12px;
}
.slide-count b {
  font-weight: 500;
}
.quick-menu {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
  margin: 14px 0 28px;
}
.quick-item {
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 2px 12px;
  min-height: 95px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.quick-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px #16172c08;
}
.quick-item .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.4;
}
.quick-item span {
  font-size: 12px;
  font-weight: 650;
  color: #3f3f51;
  white-space: nowrap;
}
.tone-pink {
  background: #fff1f7;
}
.tone-pink .icon {
  color: #e35498;
  fill: #e35498;
  stroke: #e35498;
}
.tone-cream {
  background: #f8f6f2;
}
.tone-cream .icon {
  color: #ab8e60;
}
.tone-blue {
  background: #f1f4f9;
}
.tone-blue .icon {
  color: #525e9b;
}
.tone-gold {
  background: #fdf7ec;
}
.tone-gold .icon {
  color: #eaa43e;
}
.tone-rose {
  background: #fcf0f5;
}
.tone-rose .icon {
  color: #dc6396;
}
.tone-purple {
  background: #f6f1fc;
}
.tone-purple .icon {
  color: #9670ce;
}
.tone-peach {
  background: #fff5ee;
}
.content-section {
  margin: 0 0 26px;
  scroll-margin-top: 138px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
}
.section-heading h1,
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: -0.8px;
}
.section-symbol {
  display: inline-flex;
  align-items: center;
}
.section-symbol .icon {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}
.pink-symbol {
  color: #e86c9c;
}
.blue-symbol {
  color: #5488bc;
}
.gold-symbol {
  color: #eab15a;
}
.coral-symbol {
  color: #ef7374;
}
.more-link {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: #797988;
  white-space: nowrap;
  padding: 4px 0;
}
.more-link .icon {
  width: 14px;
  height: 14px;
}
.more-link:hover {
  color: var(--pink);
}
.sample-label {
  font-size: 10px;
  color: #9693a2;
  border: 1px solid #e8e5ef;
  border-radius: 15px;
  padding: 3px 8px;
  white-space: nowrap;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.service-card {
  display: block;
  text-align: left;
  padding: 0;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid #eeeef4;
  background: #fff;
  min-width: 0;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px #201b3510;
}
.card-art {
  position: relative;
  aspect-ratio: 1.4;
  overflow: hidden;
  background: #efeaf4;
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.8);
  transform-origin: 75% 22%;
  transition: transform 0.4s;
}
.card-art img[src*="tarot_"] {
  transform: none;
}
.service-card:hover .card-art img:not([src*="tarot_"]) {
  transform: scale(1.9);
}
.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #ffffff50;
  box-shadow: 0 2px 5px #0001;
}
.rank-0 {
  background: #e96998;
}
.rank-1 {
  background: #a2b3c8;
}
.rank-2 {
  background: #eeb45c;
}
.card-copy {
  padding: 9px 10px 11px;
}
.card-copy h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.7px;
}
.card-copy p {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: -0.35px;
  margin-top: 3px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-tag {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #8a6883;
  margin-top: 8px;
  font-weight: 600;
}
.card-tag.tone-blue {
  color: #627b9c;
}
.card-tag.tone-peach {
  color: #b68a65;
}
.compact-grid .service-card {
  border: 0;
}
.compact-grid .card-art {
  aspect-ratio: 1.4;
}
.compact-grid .card-copy {
  padding: 8px 10px 10px;
}
.compact-grid .card-copy h3 {
  font-size: 16px;
}
.compact-grid .tone-pink {
  background: #fff2f7;
}
.compact-grid .tone-purple {
  background: #f5f0fc;
}
.compact-grid .tone-blue {
  background: #f0f4f8;
}
.compact-grid .tone-peach {
  background: #fff4e9;
}
.story-banner {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 214px;
  margin: 0 0 26px;
  color: #fff;
  background: #141b31;
}
.story-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
.story-banner:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #101020eb, #11122652 66%, #12152900);
}
.story-copy {
  position: relative;
  z-index: 1;
  padding: 23px 24px;
}
.mini-brand {
  font-family: Georgia, serif;
  color: #e9d7aa;
  font-size: 14px;
}
.story-copy h2 {
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 500;
  margin-top: 7px;
}
.story-copy p {
  font-size: 13px;
  color: #e4dfed;
  margin-top: 2px;
}
.story-copy button {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #7461af, #59438e);
  border: 1px solid #c9bcef77;
  border-radius: 22px;
  margin-top: 15px;
  color: white;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 600;
}
.story-copy button .icon {
  width: 18px;
  height: 18px;
}
.play-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 22%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 59px;
  height: 59px;
  border-radius: 50%;
  border: 1px solid #fff9;
  background: #11142360;
  color: white;
}
.play-button .icon {
  width: 29px;
  height: 29px;
  fill: currentColor;
  stroke-width: 1;
}
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.review-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.review-top {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
}
.avatar {
  width: 37px;
  height: 37px;
  object-fit: cover;
  object-position: 75% 22%;
  border-radius: 50%;
  border: 2px solid #f3ebf1;
}
.review-stars {
  display: block;
  font-size: 16px;
  letter-spacing: 1px;
  color: #eab057;
  line-height: 1.2;
}
.review-name {
  display: block;
  font-size: 11px;
  color: #8d8997;
  margin-top: 3px;
}
.review-time {
  font-size: 9px;
  color: #a9a3af;
  margin-left: auto;
  align-self: flex-start;
}
.review-card p {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 9px;
  letter-spacing: -0.4px;
  color: #515161;
  word-break: keep-all;
}
.review-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.review-tags span {
  background: #f0f0f7;
  color: #71718b;
  font-size: 10px;
  border-radius: 13px;
  padding: 3px 8px;
}
.review-disclaimer {
  font-size: 10px;
  color: #a4a0ac;
  margin: 7px 0 0;
  line-height: 1.5;
}
.package-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.package-card {
  position: relative;
  text-align: left;
  min-height: 132px;
  overflow: hidden;
  color: white;
  background: #272039;
  border-radius: 13px;
  isolation: isolate;
  padding: 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.package-card > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 25%;
}
.package-card:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #3e275aea, #3c294a6b 70%, #35204005);
}
.package-destiny:after {
  background: linear-gradient(90deg, #233f67ed, #18365766 70%, #23365400);
}
.package-card b {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.8px;
  display: block;
}
.package-card small {
  display: block;
  font-size: 11px;
  color: #f1e7f4;
  margin-top: 4px;
}
.package-card em {
  display: inline-block;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.5px;
  border-radius: 11px;
  padding: 3px 8px;
  background: #f6b5d2;
  color: #6d3859;
  margin-top: 12px;
  font-weight: 650;
}
.package-destiny em {
  background: #b8dff5;
  color: #325a83;
}
.package-card > .icon {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  padding: 4px;
  border: 1px solid #fffa;
  background: #261e4055;
}
.ranking-list {
  border-top: 1px solid #f0eef4;
}
.ranking-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 11px 4px;
  border-bottom: 1px solid #f0eef4;
}
.rank-number {
  width: 28px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}
.rank-number-0 {
  color: #e46185;
}
.rank-number-1 {
  color: #8176c4;
}
.rank-number-2 {
  color: #c3a170;
}
.ranking-item > img {
  width: 60px;
  height: 43px;
  object-fit: cover;
  border-radius: 7px;
}
.ranking-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ranking-copy b {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.ranking-copy small {
  font-size: 12px;
  color: #888494;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ranking-item > .icon {
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: #9893a4;
}
.ranking-item:hover {
  background: #faf8fc;
}
.closing-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 -8px;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  color: white;
  min-height: 127px;
  display: grid;
  place-items: center;
}
.closing-banner > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}
.closing-banner:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #16193277;
}
.closing-banner p {
  font-size: 12px;
  color: #e7e0ee;
}
.closing-banner span {
  font-family: Georgia, serif;
  font-size: 33px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  display: block;
}
.closing-banner small {
  font-size: 11px;
  color: #dbd7e5;
  margin-top: 5px;
  display: block;
}
.preview-note {
  text-align: center;
  padding: 22px 0 13px;
}
.preview-note > span {
  font-size: 9px;
  letter-spacing: 2px;
  color: #a297ad;
}
.preview-note p {
  font-size: 10px;
  color: #aaa3b1;
  line-height: 1.7;
  margin-top: 5px;
}
.site-footer {
  text-align: center;
  padding: 0 18px 17px;
  font-size: 9px;
  color: #b3adb9;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.site-footer button {
  font-size: 9px;
  text-decoration: underline;
  padding: 0;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--shell));
  height: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
  padding: 8px 10px calc(7px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fffffff0;
  backdrop-filter: blur(20px);
  border-top: 1px solid #eee9f2;
  box-shadow: 0 -5px 25px #201b3505;
  z-index: 30;
  border-radius: 19px 19px 0 0;
}
.bottom-nav > a,
.bottom-nav > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-direction: column;
  border-radius: 12px;
  color: #97939e;
  font-size: 10px;
  padding: 3px 2px;
}
.bottom-nav .icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.5;
}
.bottom-nav .is-active {
  color: var(--navy);
  font-weight: 700;
}
.bottom-nav .is-active .icon {
  fill: var(--navy);
  stroke-width: 1.3;
}
.bottom-nav > a:hover,
.bottom-nav > button:hover {
  background: #f7f4fb;
  color: var(--navy);
}
.filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f3fb;
  color: #806793;
  border-radius: 9px;
  padding: 10px 12px;
  margin-bottom: 20px;
  font-size: 12px;
}
.filter-status button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}
.filter-status .icon {
  width: 13px;
  height: 13px;
}
.empty-state {
  padding: 28px 15px 40px;
  text-align: center;
  color: #96909e;
}
.empty-state > .icon {
  width: 35px;
  height: 35px;
}
.empty-state h2 {
  font-size: 17px;
  color: #61566e;
  margin: 12px 0 4px;
}
.empty-state p {
  font-size: 12px;
}
.empty-state button {
  margin-top: 15px;
  padding: 8px 17px;
  background: var(--navy);
  border-radius: 20px;
  color: white;
  font-size: 12px;
}
/* Native dialogs supply focus trapping, Escape handling and an inert background. */
dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
  box-shadow: 0 -10px 80px #08081835;
}
dialog::backdrop {
  background: #0c0b1880;
  backdrop-filter: blur(2px);
}
.promo-dialog {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: min(100%, var(--shell));
  max-width: var(--shell);
  max-height: 92dvh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
.promo-dialog[open] {
  animation: sheet-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.promo-art {
  position: relative;
  aspect-ratio: 4/3;
  max-height: calc(92dvh - 58px - env(safe-area-inset-bottom));
  overflow: hidden;
  background: #1c1730;
}
.promo-slide {
  padding: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s,
    visibility 0.35s;
}
.promo-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.promo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 48px;
  background: #13112255;
  color: #fff;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.promo-prev {
  left: 10px;
}
.promo-prev .icon {
  transform: rotate(180deg);
}
.promo-next {
  right: 10px;
}
.promo-arrow .icon {
  width: 20px;
  height: 20px;
}
.promo-count {
  position: absolute;
  right: 17px;
  bottom: 14px;
  color: white;
  background: #121221b0;
  border-radius: 13px;
  font-size: 11px;
  padding: 3px 10px;
  letter-spacing: 1px;
}
.promo-count b {
  font-weight: 500;
}
.promo-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}
.promo-footer {
  height: 58px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  color: #5b5563;
  background: #fff;
}
.promo-footer > span {
  height: 16px;
  background: #e7e3ec;
}
.promo-footer button {
  height: 100%;
  font-size: 13px;
  font-weight: 500;
}
.promo-footer button:hover {
  background: #faf6fc;
}
.promo-footer button:last-child {
  font-weight: 650;
  color: var(--ink);
}
.content-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: calc(100% - 36px);
  max-width: 450px;
  max-height: 85dvh;
  border-radius: 23px;
  padding: 32px 26px;
  background: #fff;
  overflow: auto;
}
.content-dialog[open] {
  animation: dialog-in 0.2s ease-out;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: #f6f3fa;
  z-index: 2;
  width: 34px;
  height: 34px;
}
.dialog-close .icon {
  width: 20px;
  height: 20px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  color: #ac86ae;
  letter-spacing: 2px;
  font-weight: 600;
  margin: 3px 0 11px;
}
.content-dialog h2 {
  font-size: 24px;
  letter-spacing: -1px;
  line-height: 1.4;
  margin: 0 24px 12px 0;
}
.detail-image {
  border-radius: 15px;
  width: 100%;
  margin: 14px 0 20px;
  max-height: 310px;
  object-fit: cover;
}
.detail-description {
  font-size: 14px;
  line-height: 1.9;
  color: #787080;
}
.dialog-note {
  font-size: 11px;
  line-height: 1.7;
  color: #9e95a7;
  margin-top: 20px;
  border-top: 1px solid #eee9f2;
  padding-top: 14px;
}
.dialog-primary {
  background: var(--navy);
  color: white;
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 13px;
  margin-top: 20px;
}
.info-copy {
  font-size: 13px;
  line-height: 1.9;
  color: #787080;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 13px;
  border: 1px solid #d9cfe7;
  background: #faf8fd;
  border-radius: 12px;
  margin-top: 22px;
}
.search-input-wrap > .icon {
  width: 20px;
  height: 20px;
  color: #887796;
}
.search-input-wrap input {
  width: 100%;
  min-width: 0;
  outline: none;
  border: 0;
  background: none;
  padding: 7px 0;
  color: var(--ink);
  font-size: 14px;
}
.search-input-wrap button {
  background: var(--navy);
  color: #fff;
  white-space: nowrap;
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 12px;
}
.search-suggestions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 11px;
  color: #a49aaa;
}
.search-suggestions button {
  padding: 5px 12px;
  background: #f5f0fa;
  color: #887395;
  border-radius: 15px;
}
.menu-links {
  margin-top: 20px;
  display: grid;
  gap: 0;
}
.menu-links button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 15px 2px;
  border-bottom: 1px solid #f0eaf5;
  text-align: left;
}
.menu-links .icon {
  width: 18px;
  height: 18px;
  color: #b1a7bc;
}
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav) + 18px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 12px);
  width: max-content;
  max-width: min(90%, 600px);
  background: #262037ed;
  color: #fff;
  border-radius: 11px;
  padding: 12px 18px;
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
  pointer-events: none;
  box-shadow: 0 4px 20px #0001;
}
.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@keyframes sheet-in {
  from {
    transform: translateY(100%);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes dialog-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (min-width: 701px) {
  .promo-dialog {
    border-radius: 20px 20px 0 0;
  }
  .bottom-nav {
    width: 450px;
  }
  .hero-track {
    aspect-ratio: 1.52;
  }
  .hero-slide img {
    object-fit: cover;
    object-position: center 38%;
  }
  .promo-art {
    aspect-ratio: 4/3;
  }
  .quick-menu {
    margin-top: 16px;
  }
}
@media (max-width: 450px) {
  :root {
    --bottom-nav: 67px;
  }
  .site-header {
    height: 60px;
    padding: 0 17px;
  }
  .brand {
    font-size: 25px;
    gap: 5px;
    letter-spacing: -1.2px;
  }
  .brand-moon {
    font-size: 40px;
    width: 35px;
  }
  .brand-moon i {
    font-size: 17px;
    left: 15px;
    top: 14px;
  }
  .header-actions {
    gap: 2px;
  }
  .icon-button {
    width: 35px;
    height: 39px;
  }
  .icon-button .icon {
    width: 23px;
    height: 23px;
  }
  .notification-dot {
    right: 7px;
    top: 6px;
  }
  .category-nav {
    top: 68px;
    padding: 2px 12px 10px;
    gap: 4px;
  }
  .category-tab {
    font-size: 12px;
    padding: 5px 0;
    min-height: 31px;
  }
  main {
    padding: 0 13px;
  }
  .hero-section {
    border-radius: 13px;
  }
  .hero-controls {
    bottom: 10px;
    left: 10px;
    right: 11px;
  }
  .hero-track {
    aspect-ratio: 1.48;
  }
  .hero-slide img {
    object-position: center 30%;
  }
  .quick-menu {
    gap: 7px;
    margin: 10px 0 23px;
  }
  .quick-item {
    border-radius: 12px;
    gap: 7px;
    padding: 11px 1px 10px;
    min-height: 76px;
  }
  .quick-item .icon {
    width: 26px;
    height: 26px;
  }
  .quick-item span {
    font-size: 10px;
    letter-spacing: -0.5px;
  }
  .section-heading {
    margin-bottom: 9px;
  }
  .section-heading h1,
  .section-heading h2 {
    font-size: 17px;
    gap: 6px;
    letter-spacing: -0.75px;
  }
  .section-symbol .icon {
    width: 20px;
    height: 20px;
  }
  .more-link {
    font-size: 10px;
  }
  .sample-label {
    font-size: 8px;
    padding: 2px 6px;
  }
  .content-section {
    margin-bottom: 22px;
  }
  .service-grid {
    gap: 8px;
  }
  .service-card {
    border-radius: 10px;
  }
  .card-copy {
    padding: 7px 7px 9px;
  }
  .card-copy h3,
  .compact-grid .card-copy h3 {
    font-size: 12px;
    letter-spacing: -0.6px;
  }
  .card-copy p {
    font-size: 10px;
    margin-top: 2px;
    letter-spacing: -0.6px;
  }
  .card-tag {
    font-size: 7px;
    padding: 2px 4px;
    margin-top: 6px;
    letter-spacing: 0.1px;
  }
  .compact-grid .card-copy {
    padding: 7px 7px 9px;
  }
  .rank-badge {
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    font-size: 10px;
    border-radius: 6px;
  }
  .story-banner {
    min-height: 170px;
    margin-bottom: 22px;
  }
  .story-copy {
    padding: 18px 16px;
  }
  .mini-brand {
    font-size: 11px;
  }
  .story-copy h2 {
    font-size: 24px;
    margin-top: 5px;
  }
  .story-copy p {
    font-size: 10px;
  }
  .story-copy button {
    font-size: 10px;
    padding: 6px 11px;
    gap: 8px;
    margin-top: 12px;
  }
  .play-button {
    width: 46px;
    height: 46px;
    right: 14%;
  }
  .play-button .icon {
    width: 23px;
    height: 23px;
  }
  .review-grid {
    gap: 8px;
  }
  .review-card {
    padding: 10px;
    border-radius: 11px;
  }
  .review-top {
    gap: 6px;
  }
  .avatar {
    width: 29px;
    height: 29px;
  }
  .review-stars {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  .review-name {
    font-size: 8px;
    margin-top: 3px;
  }
  .review-time {
    font-size: 7px;
    position: absolute;
    right: 0;
    top: -2px;
  }
  .review-card p {
    font-size: 10px;
    margin-top: 9px;
    line-height: 1.8;
    letter-spacing: -0.5px;
  }
  .review-tags {
    gap: 4px;
    margin-top: 7px;
  }
  .review-tags span {
    font-size: 8px;
    padding: 2px 6px;
  }
  .review-disclaimer {
    font-size: 8px;
  }
  .package-grid {
    gap: 9px;
  }
  .package-card {
    min-height: 111px;
    padding: 15px 11px;
    border-radius: 10px;
  }
  .package-card b {
    font-size: 15px;
    letter-spacing: -0.6px;
  }
  .package-card small {
    font-size: 9px;
    letter-spacing: -0.5px;
  }
  .package-card em {
    font-size: 8px;
    padding: 2px 6px;
    margin-top: 10px;
  }
  .package-card > .icon {
    width: 22px;
    height: 22px;
    padding: 3px;
  }
  .ranking-item {
    gap: 10px;
    padding: 9px 2px;
  }
  .rank-number {
    width: 23px;
    font-size: 15px;
  }
  .ranking-item > img {
    width: 49px;
    height: 36px;
  }
  .ranking-copy b {
    font-size: 12px;
  }
  .ranking-copy small {
    font-size: 10px;
  }
  .closing-banner {
    min-height: 103px;
    margin: 0 -5px;
    padding: 16px;
  }
  .closing-banner p {
    font-size: 10px;
  }
  .closing-banner span {
    font-size: 28px;
  }
  .closing-banner small {
    font-size: 9px;
  }
  .bottom-nav .icon {
    width: 23px;
    height: 23px;
  }
  .bottom-nav > a,
  .bottom-nav > button {
    font-size: 9px;
    gap: 3px;
  }
  .content-dialog {
    padding: 29px 22px;
    border-radius: 20px;
  }
  .content-dialog h2 {
    font-size: 22px;
  }
  .promo-dialog {
    border-radius: 18px 18px 0 0;
  }
  .promo-footer {
    height: 54px;
  }
  .promo-footer button {
    font-size: 12px;
  }
  .promo-arrow {
    width: 29px;
    height: 42px;
  }
  .promo-prev {
    left: 7px;
  }
  .promo-next {
    right: 7px;
  }
  .promo-art {
    max-height: calc(92dvh - 54px - env(safe-area-inset-bottom));
  }
  .toast {
    font-size: 11px;
    padding: 11px 15px;
  }
  .content-section {
    scroll-margin-top: 118px;
  }
  html {
    scroll-padding-top: 118px;
  }
}
@media (max-width: 360px) {
  .site-header {
    padding: 0 12px;
  }
  .brand {
    font-size: 22px;
  }
  .brand-moon {
    font-size: 35px;
    width: 30px;
  }
  .header-actions {
    gap: 0;
  }
  .icon-button {
    width: 32px;
  }
  .quick-menu {
    gap: 4px;
  }
  .quick-item span {
    font-size: 9px;
  }
  .card-copy h3,
  .compact-grid .card-copy h3 {
    font-size: 11px;
  }
  .section-heading h1,
  .section-heading h2 {
    font-size: 16px;
  }
  .package-card b {
    font-size: 13px;
  }
  .package-card > .icon {
    display: none;
  }
  .review-time {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .service-card:hover,
  .quick-item:hover {
    transform: none;
  }
}

html.has-dialog,
html.has-dialog body {
  overflow: hidden;
}
.card-art img {
  transform: none;
}
.service-card:hover .card-art img:not([src*="tarot_"]) {
  transform: scale(1.04);
}

.promo-footer button:focus-visible {
  outline: 2px solid #8764c8;
  outline-offset: -6px;
  border-radius: 8px;
}

/* Revision 2: native swipe, pointer drag and automatic carousels. */
.carousel-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.hero-track {
  aspect-ratio: 1000/747;
}
.hero-slide,
.promo-slide {
  position: relative;
  inset: auto;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  opacity: 1;
  visibility: visible;
  transition: none;
  padding: 0;
}
.hero-slide img,
.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.hero-controls {
  left: 0;
  right: 0;
  bottom: 10px;
  justify-content: center;
  height: 28px;
  pointer-events: none;
}
.hero-controls .slider-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #13112245;
  border-radius: 20px;
  padding: 0 3px;
}
.hero-controls .slide-count {
  position: absolute;
  right: 14px;
  margin: 0;
}
.promo-art {
  aspect-ratio: 1000/747;
}
.promo-track {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.promo-dots {
  background: #13112245;
  border-radius: 20px;
  padding: 0 3px;
}
.quick-item {
  padding: 7px 2px 11px;
  gap: 4px;
}
.quick-icon {
  width: 68px;
  height: 51px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}
@media (max-width: 450px) {
  .hero-track {
    aspect-ratio: 1000/747;
  }
  .hero-controls {
    bottom: 7px;
  }
  .hero-controls .slide-count {
    right: 10px;
  }
  .quick-item {
    padding: 5px 0 9px;
    gap: 2px;
    min-height: 76px;
  }
  .quick-icon {
    width: 54px;
    height: 41px;
  }
}
@media (max-width: 360px) {
  .quick-icon {
    width: 46px;
    height: 35px;
  }
}

/* 도화서원 r3: user-edited 450px baseline is preserved above. */
html {
  scrollbar-gutter: stable;
}
.hero-section,
.hero-track {
  height: 258px;
  min-height: 258px;
  max-height: 258px;
  aspect-ratio: auto;
}
.hero-slide img {
  object-fit: cover;
  object-position: center;
}
.promo-dialog[open] {
  animation: sheet-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.promo-dialog[open].is-closing {
  animation: sheet-out 0.26s cubic-bezier(0.4, 0, 0.7, 0.3) forwards;
  pointer-events: none;
}
.promo-dialog.is-closing::backdrop {
  animation: promo-backdrop-out 0.26s ease forwards;
}
.promo-dialog .promo-dots,
.promo-dialog .promo-count {
  display: none;
}
@keyframes sheet-out {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0.6;
  }
}
@keyframes promo-backdrop-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.brand,
.mini-brand,
.closing-banner span {
  font-family: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;
}
@media (prefers-reduced-motion: reduce) {
  .promo-dialog[open],
  .promo-dialog[open].is-closing,
  .promo-dialog.is-closing::backdrop {
    animation: none;
  }
}

/* 도화서원 r4: keep requested popup motion even when OS reduced-motion is enabled. */
.sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}
.hero-controls .slider-dots {
  background: none;
  box-shadow: none;
  border: 0;
}
.promo-dialog[open] {
  animation: sheet-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) !important;
}
.promo-dialog[open].is-closing {
  animation: sheet-out 0.26s cubic-bezier(0.4, 0, 0.7, 0.3) forwards !important;
}
.promo-dialog.is-closing::backdrop {
  animation: promo-backdrop-out 0.26s ease forwards !important;
}
.carousel-track.is-jumping {
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
}

/* Category navigation: full-width downward gradient, inside the 450px shell. */
.category-nav {
  position: relative;
  top: auto;
  z-index: 18;
  box-shadow: none;
}
.category-nav::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 9px;
  background: linear-gradient(
    to bottom,
    rgba(25, 27, 55, 0.12) 0%,
    rgba(25, 27, 55, 0.045) 38%,
    rgba(25, 27, 55, 0) 100%
  );
  pointer-events: none;
}
