/* ==========================================================================
   미우기프트 스타일
   ※ 색을 바꾸려면 아래 :root 의 색상 값만 고치세요.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #0e0f14;            /* 페이지 바탕 (로고 배경의 검정) */
  --surface: #16171e;       /* 카드 바탕 */
  --surface-2: #1e1f27;     /* 카드 위에 한 겹 더 올린 바탕 */
  --line: rgba(255, 255, 255, 0.09);

  --gold: #f4b942;          /* 포인트 금색 */
  --gold-light: #ffe3a6;    /* 연한 금색 */
  --cream: #fff6e6;         /* 제목 글자 */
  --gold-soft: rgba(244, 185, 66, 0.13); /* 아이콘 뒤 은은한 금색 */
  --gold-line: rgba(244, 185, 66, 0.38); /* 금색 테두리 */
  --gold-grad: linear-gradient(180deg, #ffeabb 0%, #f4b942 100%);
  --on-gold: #241a06;       /* 금색 위 글자 */

  --text: #d8d3c8;          /* 일반 본문 */
  --muted: #a39f95;         /* 보조 글자 */
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 18px 42px rgba(244, 185, 66, 0.12);
  --header-h: 72px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto,
    "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

/* ── 기본 ─────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

html:has(.modal[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(900px 520px at 80% -120px, rgba(244, 185, 66, 0.1), transparent 70%), var(--bg);
  background-repeat: no-repeat;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

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

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

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

/* ── 버튼 ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s, filter 0.2s;
}

.btn--gold,
.btn--buy {
  background: var(--gold-grad);
  color: var(--on-gold);
}

.btn--gold {
  box-shadow: 0 10px 26px rgba(244, 185, 66, 0.22);
}

.btn--gold:hover,
.btn--buy:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1.5px var(--gold-line);
}

.btn--ghost:hover {
  background: var(--gold-soft);
}

.btn--buy,
.btn--soldout {
  min-height: 40px;
  padding: 0 22px;
  font-size: 14px;
}

.btn--soldout {
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
}

/* ── 상품권 카드 그림 (assets/cards 폴더) ────────────────────────────────── */
.product__card {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.side__card {
  flex: none;
  width: 46px;
  height: auto;
  border-radius: 5px;
}

/* ── 맨 위 메뉴 ───────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 15, 20, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
}

.logo__mark {
  width: 40px;
  height: 38px;
}

.logo__text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo__text em {
  font-style: normal;
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.nav__link:hover {
  color: var(--gold-light);
  background: var(--gold-soft);
}

.nav__login {
  margin-left: 6px;
  padding: 8px 22px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.2s, color 0.2s;
}

.nav__login:hover {
  background: var(--gold);
  color: var(--on-gold);
}

/* ── 전체 배치 ────────────────────────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

/* ── 왼쪽 상품권 바로가기 ─────────────────────────────────────────────────── */
.side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.side__title {
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.side__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background-color 0.2s, color 0.2s;
}

.side__item:hover {
  background: var(--gold-soft);
  color: var(--gold-light);
}

/* ── 메인 배너 ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 340px;
  padding: 48px 52px;
  overflow: hidden;
  border: 1px solid rgba(244, 185, 66, 0.16);
  border-radius: 28px;
  color: var(--cream);
  background: linear-gradient(135deg, #20212a 0%, #15161c 55%, #101116 100%);
  box-shadow: var(--shadow-card);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -8%;
  top: 50%;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--gold), transparent);
  opacity: 0.17;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero__rings {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: var(--gold);
  pointer-events: none;
}

.hero__content {
  position: relative;
  min-width: 0;
}

.hero__tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
}

.hero__title {
  margin-top: 18px;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.hero__title em {
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin-top: 14px;
  color: var(--text);
  font-size: clamp(15px, 1.4vw, 18px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero__art {
  position: relative;
  flex: none;
  width: clamp(260px, 30vw, 380px);
  height: auto;
}

/* ── 공통 구역 ────────────────────────────────────────────────────────────── */
.section {
  margin-top: 72px;
}

.section__head {
  margin-bottom: 32px;
  text-align: center;
}

.section__title {
  display: inline-block;
  color: var(--cream);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: var(--gold-grad);
}

.section__desc {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

/* ── 상품권 목록 ──────────────────────────────────────────────────────────── */
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.products__note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 14px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product:not(.product--soldout):hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow-hover);
}

.product:not(.product--soldout):hover .product__card {
  transform: translateY(-2px) rotate(-1.2deg);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.product__tag {
  margin-top: 16px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
}

.product__name {
  margin: 8px 0 18px;
  color: var(--cream);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.product .btn {
  margin-top: auto;
}

.product--soldout {
  background: #121318;
  box-shadow: none;
}

.product--soldout .product__card {
  filter: grayscale(0.7) brightness(0.72);
  box-shadow: none;
}

.product--soldout .product__tag {
  background: var(--surface-2);
  color: var(--muted);
}

.product--soldout .product__name {
  color: var(--muted);
}

.product__badge {
  position: absolute;
  z-index: 1;
  top: 24px;
  right: 24px;
  padding: 2px 9px;
  border-radius: 6px;
  background: #3a3b45;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

/* ── 특장점 ───────────────────────────────────────────────────────────────── */
.features {
  padding: 56px 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.features__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  padding: 32px 24px;
  border-radius: 20px;
  background: var(--surface-2);
  text-align: center;
}

.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--gold-soft);
  color: var(--gold);
}

.feature__icon svg {
  width: 30px;
  height: 30px;
}

.feature__title {
  margin-top: 18px;
  color: var(--cream);
  font-size: 19px;
  font-weight: 800;
}

.feature__text {
  margin-top: 8px;
  color: var(--text);
  font-size: 15px;
}

/* ── 공지사항 · 자주묻는질문 ──────────────────────────────────────────────── */
.board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 80px;
}

.board__card {
  padding: 28px 28px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.board__title {
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold);
  color: var(--cream);
  font-size: 21px;
  font-weight: 800;
  text-align: center;
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa:last-child {
  border-bottom: 0;
}

.qa summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 4px;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa__q {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}

.qa summary:hover .qa__q,
.qa[open] .qa__q {
  color: var(--gold-light);
}

.qa__date {
  flex: none;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.qa__chev {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.2s;
}

.qa[open] .qa__chev {
  transform: rotate(180deg);
}

.qa__a {
  margin: 0 4px 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
}

/* ── 맨 아래 ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: #08090c;
  color: var(--muted);
  font-size: 14px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 36px;
}

.footer__slogan {
  margin-top: 14px;
}

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

.footer__info div {
  display: flex;
  flex-direction: column;
}

.footer__info dt {
  color: var(--muted);
  font-size: 12px;
}

.footer__info dd {
  color: var(--cream);
  font-weight: 600;
}

.footer__cs {
  padding: 22px 24px;
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  background: var(--gold-soft);
}

.footer__cs-label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.footer__cs-title {
  margin-top: 4px;
  color: var(--cream);
  font-weight: 700;
}

.footer__cs-phone {
  margin-top: 8px;
  color: var(--cream);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.footer__cs-hours {
  margin-top: 4px;
  color: var(--text);
}

.footer__cs-link {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fee500;
  color: #191600;
  font-weight: 700;
  transition: filter 0.2s;
}

.footer__cs-link:hover {
  filter: brightness(1.06);
}

.footer__warn {
  display: flex;
  gap: 12px;
  margin: 0 max(24px, calc((100% - 1232px) / 2));
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

.footer__warn svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--gold);
}

.footer__warn strong {
  margin-right: 6px;
  color: var(--cream);
}

.footer__copy {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  color: var(--muted);
  font-size: 12px;
}

/* ── 안내 팝업 ────────────────────────────────────────────────────────────── */
.modal {
  width: min(360px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--gold-line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--cream);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.modal::backdrop {
  background: rgba(4, 4, 7, 0.68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal[open] {
  animation: modal-in 0.22s ease-out;
}

.modal[open]::backdrop {
  animation: fade-in 0.22s ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.modal__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 28px 28px;
  text-align: center;
}

.modal__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
}

.modal__icon svg {
  width: 30px;
  height: 30px;
}

.modal__msg {
  margin-top: 20px;
  color: var(--cream);
  font-size: 20px;
  font-weight: 800;
}

.modal__ok {
  width: 100%;
  margin-top: 26px;
}

/* ── 카카오톡 오픈채팅 버튼 (스크롤해도 오른쪽 아래에 고정) ───────────────── */
.kakao-fab {
  position: fixed;
  z-index: 15;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fee500;
  color: #191600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.kakao-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

.kakao-fab svg {
  width: 38px;
  height: 38px;
}

/* ── 태블릿 ───────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1023px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    display: none;
  }
}

@media (max-width: 860px) {
  .board {
    grid-template-columns: minmax(0, 1fr);
  }

  .features__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 18px;
    padding: 22px;
    text-align: left;
  }

  .feature__icon {
    grid-row: span 2;
    align-self: center;
  }

  .feature__title {
    margin-top: 0;
  }

  .feature__text {
    margin-top: 2px;
  }
}

/* ── 휴대폰 ───────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }

  .header__inner,
  .layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .layout {
    padding-top: 12px;
  }

  .logo__mark {
    width: 34px;
    height: 32px;
  }

  .logo__text {
    font-size: 19px;
  }

  .nav__link--cs {
    display: none;
  }

  .nav__link,
  .nav__login {
    font-size: 14px;
  }

  .nav__login {
    margin-left: 2px;
    padding: 6px 16px;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 32px 24px 28px;
    border-radius: 24px;
  }

  .hero::after {
    right: -20%;
    top: auto;
    bottom: -18%;
    width: 110%;
    transform: none;
  }

  .hero__art {
    align-self: center;
    width: min(290px, 90%);
  }

  .hero__actions .btn {
    flex: 1;
    padding: 0 16px;
  }

  .section {
    margin-top: 56px;
  }

  .section__head {
    margin-bottom: 24px;
  }

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

  .product {
    padding: 10px 10px 16px;
    border-radius: 18px;
  }

  .product__card {
    border-radius: 10px;
  }

  .product__tag {
    margin-top: 12px;
  }

  .product__name {
    margin-bottom: 14px;
    font-size: 16px;
  }

  .btn--buy,
  .btn--soldout {
    width: 100%;
    padding: 0 12px;
  }

  .product__badge {
    top: 16px;
    right: 16px;
  }

  .features {
    margin-left: -16px;
    margin-right: -16px;
    padding: 44px 16px;
    border-width: 1px 0;
    border-radius: 0;
  }

  .board {
    margin-bottom: 56px;
  }

  .board__card {
    padding: 22px 18px 12px;
  }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 44px 16px 28px;
  }

  .footer__warn {
    margin: 0 16px;
  }

  .footer__copy {
    padding: 20px 16px 88px; /* 카카오톡 버튼에 가리지 않도록 아래를 비워 둡니다 */
  }

  .kakao-fab {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    height: 54px;
  }

  .kakao-fab svg {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 380px) {
  .logo__text {
    font-size: 17px;
  }

  .nav__link {
    padding: 6px 8px;
  }

  .footer__info {
    grid-template-columns: minmax(0, 1fr);
  }
}
