/* =========================================================
   유메 · Dream theme
   연보라빛 꿈, 구름, 버블과 작은 날개를 모티프로 한 최종 테마
   ========================================================= */

:root {
  --bg-main: #f8f5ff;
  --bg-main-soft: #f1ebff;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-hover: rgba(255, 255, 255, 0.94);
  --bg-card-alt: #eee7ff;

  --text-main: #4c4164;
  --text-sub: #75698c;
  --text-faint: #84779d;

  --color-red: #d99ccc;
  --color-blue: #9db9e7;
  --color-yellow: #d6bde9;
  --color-purple: #9d7bd8;
  --color-purple-soft: #c4afea;
  --color-online: #6fb994;

  --shadow-sm: 0 8px 24px rgba(116, 88, 157, 0.09);
  --shadow-md: 0 18px 48px rgba(116, 88, 157, 0.16);
  --shadow-glow: 0 0 0 1px rgba(157, 123, 216, 0.18), 0 16px 40px rgba(157, 123, 216, 0.22);
  --glass-border: 1px solid rgba(157, 123, 216, 0.17);
}

html {
  scrollbar-color: #c2ade8 #f4effd;
}

body {
  position: relative;
  background:
    radial-gradient(circle at 10% 5%, rgba(220, 201, 250, 0.9), transparent 27%),
    radial-gradient(circle at 92% 18%, rgba(202, 220, 250, 0.76), transparent 28%),
    radial-gradient(circle at 45% 72%, rgba(238, 210, 244, 0.58), transparent 34%),
    linear-gradient(180deg, #fbf9ff 0%, #f5f0ff 48%, #faf8ff 100%);
  color: var(--text-main);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 220px;
  height: 220px;
  top: 18vh;
  left: -90px;
  background: rgba(209, 190, 242, 0.48);
}

body::after {
  width: 280px;
  height: 280px;
  right: -120px;
  top: 62vh;
  background: rgba(205, 222, 249, 0.5);
}

::selection {
  color: #fff;
  background: var(--color-purple);
}

.site-header {
  background: rgba(251, 249, 255, 0.78);
  border-bottom: var(--glass-border);
  box-shadow: 0 8px 28px rgba(116, 88, 157, 0.08);
  backdrop-filter: blur(20px) saturate(130%);
}

.brand {
  color: #66527f;
  letter-spacing: 0.04em;
}

.brand-logo.dream-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  font-size: 1rem;
  background: linear-gradient(145deg, #d9caf2, #9f82d7);
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 18px rgba(132, 98, 187, 0.25);
}

.main-nav {
  align-items: center;
}

.main-nav a {
  color: #7b6f91;
  font-size: 0.9rem;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: #7656ad;
}

.main-nav a::after {
  height: 5px;
  bottom: -7px;
  border-radius: 50%;
  background: radial-gradient(circle, #b594e8 0 42%, transparent 47%);
}

.enter-btn,
.btn-primary,
.to-top {
  background: linear-gradient(135deg, #b397e3 0%, #9470ce 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(137, 100, 195, 0.22);
}

.enter-btn {
  position: relative;
  overflow: hidden;
}

.enter-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.65s linear;
  pointer-events: none;
}

.enter-btn:hover,
.btn-primary:hover,
.to-top:hover {
  box-shadow: 0 14px 32px rgba(137, 100, 195, 0.3);
}

.btn-secondary {
  color: #6d578c;
  background: rgba(255, 255, 255, 0.74);
  border: var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.menu-toggle span {
  background: #705b8e;
}

main > section + section {
  position: relative;
  border-top: 0;
}

main > section + section::before {
  content: "✦  ·  ☁  ·  ✦";
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 1rem;
  color: rgba(136, 103, 186, 0.48);
  background: rgba(248, 245, 255, 0.76);
  border-radius: 999px;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  backdrop-filter: blur(6px);
}

main > section.hero {
  overflow: hidden;
}

.hero::before {
  top: -36%;
  width: 1040px;
  height: 1040px;
  background: radial-gradient(circle, rgba(189, 164, 232, 0.24), transparent 62%);
}

.hero-banner.dreamscape {
  isolation: isolate;
  max-width: 940px;
  height: 300px;
  color: #fff;
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.5) 0 3px, transparent 4px),
    radial-gradient(circle at 23% 30%, rgba(255, 255, 255, 0.66) 0 2px, transparent 3px),
    radial-gradient(circle at 54% 18%, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px),
    linear-gradient(145deg, #c7b2ea 0%, #b49bdd 36%, #a9bfe7 72%, #dbc7ed 100%);
  border: 5px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 24px 60px rgba(118, 87, 166, 0.2);
}

.hero-banner.dreamscape::before,
.hero-banner.dreamscape::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  filter: blur(1px);
}

.hero-banner.dreamscape::before {
  width: 420px;
  height: 120px;
  left: -60px;
  bottom: -24px;
  box-shadow: 180px 18px 0 rgba(255, 255, 255, 0.32), 430px -8px 0 rgba(255, 255, 255, 0.28);
}

.hero-banner.dreamscape::after {
  width: 210px;
  height: 210px;
  right: -75px;
  top: -65px;
  background: rgba(242, 226, 255, 0.38);
}

.dream-moon {
  position: absolute;
  top: 30px;
  right: 9%;
  color: rgba(255, 255, 255, 0.94);
  font-family: Georgia, serif;
  font-size: 7.8rem;
  line-height: 1;
  text-shadow: 0 0 32px rgba(255, 255, 255, 0.55);
  transform: rotate(-12deg);
}

.dream-copy {
  position: relative;
  z-index: 2;
  max-width: 540px;
  padding: 0 1.5rem;
  text-align: center;
}

.dream-eyebrow {
  margin-bottom: 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.86;
}

.dream-copy strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.3;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 20px rgba(95, 67, 136, 0.18);
}

.dream-copy p {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.dream-sparkles span {
  position: absolute;
  color: rgba(255, 255, 255, 0.86);
  animation: dreamTwinkle 3s ease-in-out infinite;
}

.dream-sparkles span:nth-child(1) { top: 20%; left: 12%; font-size: 1.2rem; }
.dream-sparkles span:nth-child(2) { top: 64%; left: 20%; animation-delay: 0.7s; }
.dream-sparkles span:nth-child(3) { top: 18%; left: 48%; animation-delay: 1.2s; }
.dream-sparkles span:nth-child(4) { bottom: 14%; right: 16%; font-size: 1.35rem; animation-delay: 1.7s; }

@keyframes dreamTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8) rotate(0); }
  50% { opacity: 1; transform: scale(1.16) rotate(12deg); }
}

.hero-logo.dream-orb {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b68c0;
  font-family: Georgia, serif;
  font-size: 3.4rem;
  background:
    radial-gradient(circle at 36% 30%, #fff 0 8%, transparent 9%),
    linear-gradient(145deg, #fff, #e4d8f7 68%, #ccb6ec);
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(126, 92, 178, 0.2);
}

.hero h1 {
  color: #5b4776;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  letter-spacing: 0.08em;
}

.hero-emojis span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(157, 123, 216, 0.14);
  box-shadow: var(--shadow-sm);
}

.hero-tagline {
  color: #604c7d;
  font-weight: 700;
  font-size: 1.1rem;
}

.status-card {
  background: rgba(255, 255, 255, 0.62);
  border: var(--glass-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.status-live,
.online-dot {
  color: var(--color-online);
}

.online-dot {
  background: var(--color-online);
  box-shadow: 0 0 10px rgba(111, 185, 148, 0.6);
}

.status-divider {
  background: rgba(120, 92, 161, 0.16);
}

.section-title,
.page-hero h1 {
  color: #5c4877;
}

.section-title::before {
  content: "☾";
  display: block;
  margin-bottom: 0.25rem;
  color: #a68bd2;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.page-hero {
  position: relative;
}

.page-hero::after {
  content: "☁  ✦  ☾  ✦  ☁";
  display: block;
  margin-top: 1.25rem;
  color: rgba(137, 103, 187, 0.52);
  letter-spacing: 0.36em;
  font-size: 0.8rem;
}

.card,
.emoji-card,
.accordion-item,
.role-card,
.steps-list li,
.rules-list li,
.empty-box {
  background: var(--bg-card);
  border: var(--glass-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.card:hover,
.emoji-card:hover,
.role-card:hover,
.steps-list li:hover,
.rules-list li:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.feature-card {
  text-align: center;
}

.feature-card .icon,
.contact-card .icon {
  filter: drop-shadow(0 7px 12px rgba(128, 94, 180, 0.18));
}

.emoji-card .emoji-face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #eee6fa);
  box-shadow: inset 0 0 0 1px rgba(153, 119, 207, 0.12), var(--shadow-sm);
}

.emoji-card .emoji-tag {
  color: #76658f;
}

.accordion-header {
  color: #67527f;
}

.accordion-body {
  background: rgba(237, 230, 250, 0.7);
  border-top: 1px solid rgba(157, 123, 216, 0.12);
}

.accordion-body li::before {
  content: "✦ ";
  color: #a184ce;
}

.role-group h3 {
  color: #685682;
}

.role-card.red {
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(241, 214, 235, .72));
}

.role-card.blue {
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(217, 230, 250, .76));
}

.role-card.yellow {
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(236, 222, 249, .8));
}

.role-card.purple {
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(219, 204, 244, .82));
}

.review-card.red,
.review-card.blue,
.review-card.yellow {
  background: linear-gradient(180deg, rgba(233, 219, 250, 0.74), rgba(255, 255, 255, 0.84));
}

.steps-list li .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #fff;
  background: #a689d3;
}

.rules-list li::before {
  content: "☾";
  color: #9b7acb;
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.rules-list li span {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.rules-list li strong {
  color: #5f4c78;
  font-size: 0.96rem;
}

.rules-list li small {
  color: var(--text-sub);
  font-size: 0.82rem;
  line-height: 1.6;
}

.final-cta {
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.76), transparent 24%),
    radial-gradient(circle at 86% 76%, rgba(205, 220, 249, .52), transparent 30%),
    linear-gradient(145deg, rgba(231, 219, 250, .92), rgba(244, 238, 253, .94));
  border: 1px solid rgba(157, 123, 216, 0.2);
  box-shadow: 0 22px 56px rgba(116, 88, 157, 0.14);
}

.final-cta::before {
  content: "✦        ☁        ☾";
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 1.25rem;
  color: rgba(126, 93, 177, 0.2);
  font-size: 2rem;
  background: none;
}

.contact-card .btn {
  border-color: rgba(157, 123, 216, 0.2);
}

.gallery-thumb,
.img-fallback {
  background: linear-gradient(145deg, #eee5fb, #dfe9f8);
}

.site-footer {
  color: #807391;
}

.site-footer::before {
  content: "⋆｡°✩  유메  ✩°｡⋆";
  display: block;
  margin-bottom: 1.3rem;
  color: #a08ac0;
  letter-spacing: 0.13em;
}

.mobile-sticky-enter {
  background: rgba(249, 246, 255, 0.9);
  border-top: var(--glass-border);
  box-shadow: 0 -10px 30px rgba(115, 85, 157, 0.11);
  backdrop-filter: blur(16px);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #8f6ac7;
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    max-height: calc(100vh - var(--header-height) - 1.5rem);
    overflow-y: auto;
    padding: 1rem;
    border: var(--glass-border);
    border-radius: 0 0 22px 22px;
    background: rgba(250, 247, 255, 0.96);
    box-shadow: var(--shadow-md);
    transform: translateY(-118%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--dur-mid) var(--ease-soft), opacity var(--dur-mid) var(--ease-soft), visibility var(--dur-mid);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border-radius: 12px;
    text-align: center;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(226, 214, 246, 0.64);
  }

  .main-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .enter-btn.header-enter {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-banner.dreamscape {
    height: 220px;
    border-radius: 22px;
  }

  .dream-moon {
    top: 18px;
    right: 2%;
    font-size: 5.2rem;
    opacity: 0.54;
  }

  .dream-copy strong {
    font-size: 1.65rem;
  }

  .dream-copy p {
    font-size: 0.85rem;
  }

  .hero-emojis {
    gap: 0.45rem;
  }

  .hero-emojis span {
    width: 36px;
    height: 36px;
  }

  .to-top {
    bottom: calc(82px + env(safe-area-inset-bottom));
    right: 1rem;
    z-index: 960;
  }

  main > section + section::before {
    letter-spacing: 0.12em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dream-sparkles span,
  .hero-logo.dream-orb {
    animation: none !important;
  }
}
