/* ============================================================
   슈가 × 얼짱시대 — 치지직 1차 재현 v2
   - 모바일 우선 일반 흐름
   - 데스크톱(>=1025px): 2048px 레퍼런스 고정좌표 (--s 스케일)
   ============================================================ */

:root {
  --sugar-bg: #000000;
  --sugar-card: #1a1a1a;
  --sugar-deep: #170315;
  --sugar-purple: #54144b;
  --sugar-plum: #280a27;
  --sugar-wine: #6b1b33;
  --sugar-pink-main: #df4a89;
  --sugar-pink-brand: #e4619b;
  --sugar-pink-light: #e676a3;
  --sugar-pink-soft: #eec9e0;
  --sugar-white: #ffffff;
  --sugar-offwhite: #eeeff0;
  --sugar-cyan: #44b2d0;
  --sugar-teal-dark: #20363e;
  --sugar-gold: #f2bd43;
  --sugar-orange-gold: #e39937;

  --ref-w: 2048;
  --s: calc(100vw / var(--ref-w));
  --header-h: 56px;
  --shadow-pink: 0 24px 80px rgba(223, 74, 137, 0.28);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--sugar-bg);
  color: var(--sugar-white);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}

/* ---------------- HEADER ---------------- */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 6px clamp(14px, 3vw, 48px);
  background: rgba(8, 0, 6, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sugar-logo {
  width: clamp(70px, 6vw, 110px);
  height: auto;
}
.ulzzang-logo {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px 4px;
  border: 1px solid rgba(238, 201, 224, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(84, 20, 75, 0.95), rgba(223, 74, 137, 0.28));
  color: var(--sugar-pink-soft);
  font-family: "Black Han Sans", Pretendard, sans-serif;
  font-size: clamp(12px, 1vw, 17px);
  white-space: nowrap;
}
.desktop-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.desktop-nav a,
.share-button,
.mobile-nav a {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sugar-offwhite);
  padding: 7px 12px;
  font-size: clamp(11px, 0.8vw, 14px);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.desktop-nav a:hover,
.share-button:hover,
.mobile-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(223, 74, 137, 0.8);
  box-shadow: 0 0 24px rgba(223, 74, 137, 0.28);
}
.on-air-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sugar-pink-main), var(--sugar-gold));
  color: #13020e;
  font-size: clamp(10px, 0.8vw, 13px);
  font-weight: 900;
  letter-spacing: 0.06em;
}
.mobile-nav {
  display: none;
  gap: 6px;
}

/* ---------------- SHARED ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sugar-pink-main), var(--sugar-gold));
  color: #13020e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s, background 0.18s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pink);
}
.btn-primary {
  background: linear-gradient(135deg, var(--sugar-pink-main), var(--sugar-pink-light));
  color: #fff;
  box-shadow: var(--shadow-pink);
}
.btn-secondary {
  background: #fff;
  color: #170315;
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

h1,
h2 {
  font-family: "Black Han Sans", Pretendard, sans-serif;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

/* ---------------- SECTION BACKGROUNDS ---------------- */
.section-dark {
  background:
    radial-gradient(circle at 18% 12%, rgba(223, 74, 137, 0.26), transparent 40%),
    linear-gradient(150deg, #050005, var(--sugar-deep) 56%, #04000a);
  color: #fff;
}
.section-wine {
  background:
    radial-gradient(circle at 74% 26%, rgba(223, 74, 137, 0.32), transparent 38%),
    linear-gradient(140deg, var(--sugar-plum), var(--sugar-wine));
  color: #fff;
}
.section-light {
  background:
    radial-gradient(circle at 16% 14%, rgba(223, 74, 137, 0.12), transparent 34%),
    linear-gradient(180deg, var(--sugar-offwhite), #fff6fb);
  color: #150212;
}

/* torn / zigzag divider between sections */
.section-light,
.section-dark,
.section-wine {
  position: relative;
  isolation: isolate;
}
.section-light::before,
.section-dark::before,
.section-wine::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 16px;
  z-index: 5;
  background-repeat: repeat-x;
  background-size: 26px 16px;
  pointer-events: none;
}
.section-light::before {
  background-image:
    linear-gradient(-45deg, #f4eef4 50%, transparent 51%),
    linear-gradient(45deg, #f4eef4 50%, transparent 51%);
  background-position: 0 0;
}
.section-dark::before {
  background-image:
    linear-gradient(-45deg, #07000b 50%, transparent 51%),
    linear-gradient(45deg, #07000b 50%, transparent 51%);
}
.section-wine::before {
  background-image:
    linear-gradient(-45deg, var(--sugar-plum) 50%, transparent 51%),
    linear-gradient(45deg, var(--sugar-plum) 50%, transparent 51%);
}

/* =========================================================
   MOBILE-FIRST (default, flow layout)
   ========================================================= */
.rs {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 56px 5vw;
}
.pos {
  position: static;
}
.obj {
  display: none;
} /* floating objects: desktop only */

/* hero */
.hero {
  min-height: 78vh;
  justify-content: center;
  padding-top: calc(var(--header-h) + 24px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 0, 8, 0.32), rgba(8, 0, 8, 0.5));
}
.hero-badge {
  width: min(440px, 82vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 24px 60px rgba(223, 74, 137, 0.38));
}
.hero-helper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.helper-pills {
  display: flex;
  gap: 8px;
}
.helper-pills span {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}
.helper-line {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 700;
}

/* bridge */
.bridge {
  gap: 14px;
}
.bridge h2 {
  font-size: clamp(22px, 5.4vw, 34px);
  margin: 8px 0 14px;
}
.bridge-sched {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(560px, 100%);
}
.sched-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 26px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}
.sched-time {
  font-size: 14px;
  font-weight: 800;
  color: var(--sugar-pink-soft);
  white-space: nowrap;
}
.sched-name {
  font-family: "Black Han Sans", Pretendard, sans-serif;
  font-size: 19px;
  font-weight: 400;
}
.sched-desc {
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

/* generic copy blocks */
.ev-copy,
.ev-head-center,
.bridge-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ev-copy h2,
.ev-head-center h2,
.live-heading {
  font-size: clamp(26px, 6vw, 40px);
}
.ev-lead {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
}
.section-light .ev-lead {
  color: rgba(21, 2, 18, 0.72);
}
.eyebrow {
  margin: 0 auto;
}

/* card images (mobile: stacked, centered) */
.benefit-panel {
  width: min(560px, 92vw);
  margin: 0 auto;
  filter: drop-shadow(0 22px 50px rgba(40, 10, 39, 0.18));
}
.live-heading {
  font-family: "Black Han Sans", Pretendard, sans-serif;
  font-weight: 400;
  color: #150212;
  margin-top: 14px;
}
.live-card,
.rcard,
.scard,
.slcard,
.lkcard {
  width: min(340px, 84vw);
  margin: 0 auto;
  border-radius: 22px;
  transition: transform 0.2s;
}
.live-card img,
.qcard img {
  border-radius: 22px;
}
.qcard {
  width: min(440px, 92vw);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.qcard img {
  width: 100%;
  height: auto;
  border-radius: 22px;
}

/* card group wrappers: stacked on mobile, rows on tablet, transparent on desktop (.pos absolute) */
.card-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}
.pkg {
  width: min(420px, 80vw);
  margin: 0 auto;
  filter: drop-shadow(0 26px 60px rgba(40, 10, 39, 0.26));
}
.live-card:hover,
.rcard:hover,
.scard:hover,
.slcard:hover,
.lkcard:hover,
.qcard:hover {
  transform: translateY(-6px);
}
.light-notice {
  font-size: 13px;
  color: rgba(21, 2, 18, 0.6);
}
.section-light .live-card img,
.scard,
.benefit-panel {
  filter: drop-shadow(0 18px 38px rgba(40, 10, 39, 0.16));
}

/* trust list */
.trust-list {
  display: grid;
  gap: 10px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
  counter-reset: t;
  width: 100%;
  max-width: 520px;
  text-align: left;
}
.trust-list li {
  counter-increment: t;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #170315;
  font-weight: 800;
  font-size: 15px;
}
.trust-list li::before {
  content: counter(t);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 999px;
  background: var(--sugar-gold);
  color: #170315;
  font-weight: 900;
}

/* ---------------- FINAL CTA + TERMS (flow) ---------------- */
.final-cta {
  padding: 64px 5vw 76px;
}
.flow-inner {
  width: min(900px, 100%);
  margin: 0 auto;
}
.center {
  text-align: center;
}
.footer-logo {
  width: min(220px, 56vw);
  margin: 0 auto 18px;
}
.final-cta h2 {
  font-size: clamp(26px, 5vw, 44px);
  margin-bottom: 22px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cta-row.center {
  justify-content: center;
}
.footer-notice {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
}
.terms-section {
  background: #131215;
  color: rgba(255, 255, 255, 0.72);
}
.terms-inner {
  width: min(900px, calc(100% - 10vw));
  margin: 0 auto;
  padding: 64px 0 86px;
}
.terms-inner h2 {
  font-family: Pretendard, sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: 22px;
  margin-bottom: 16px;
}
.terms-inner > p {
  margin-bottom: 26px;
  font-size: 14px;
}
.terms-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.terms-columns article {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.terms-columns h3 {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
}
.terms-columns p {
  font-size: 13px;
  line-height: 1.75;
}

/* ---------------- SEO TRUST ---------------- */
.seo-trust {
  padding: clamp(64px, 8vw, 120px) 5vw;
}
.seo-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.seo-inner > h2 {
  max-width: 780px;
  margin-top: 18px;
  color: #1f1720;
  font-family: "Black Han Sans", Pretendard, sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.08;
}
.seo-lead {
  max-width: 860px;
  margin-top: 22px;
  color: #5f4f5d;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.75;
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.seo-grid article,
.seo-faq article {
  border: 1px solid rgba(84, 20, 75, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 46px rgba(40, 10, 39, 0.08);
}
.seo-grid article {
  padding: 26px;
}
.seo-grid h3,
.seo-faq h3 {
  margin-bottom: 10px;
  color: #2d0e28;
  font-size: 19px;
}
.seo-grid p,
.seo-faq p {
  color: #6a5966;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}
.seo-faq {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.seo-faq article {
  padding: 22px 26px;
}

/* reveal */
.reveal {
  opacity: 1;
  transform: none;
}

/* =========================================================
   TABLET (701 - 1024): 2-column card grids
   ========================================================= */
@media (min-width: 701px) and (max-width: 1024px) {
  .card-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
  }
  .card-row.cols-3 > * {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: calc((100% - 40px) / 3);
    margin: 0;
  }
  .card-row.cols-4 > * {
    flex: 0 0 calc((100% - 20px) / 2);
    width: auto;
    max-width: calc((100% - 20px) / 2);
    margin: 0;
  }
  .card-row.quest-row {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .card-row.quest-row > .qcard {
    width: min(680px, 100%);
  }
  .terms-columns {
    grid-template-columns: 1fr 1fr;
  }
  .seo-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   DESKTOP (>= 1025): 2048px reference coordinate layout
   ========================================================= */
@media (min-width: 1025px) {
  .rs {
    display: block;
    text-align: left;
    padding: 0;
    height: calc(var(--h) * var(--s));
    overflow: hidden;
  }
  .pos {
    position: absolute;
    left: calc(var(--x) * var(--s));
    top: calc(var(--y) * var(--s));
    width: calc(var(--w) * var(--s));
    margin: 0;
  }
  .pos img {
    width: 100%;
    height: auto;
  }
  [style*="--fs"] {
    font-size: calc(var(--fs) * var(--s));
    line-height: 1.08;
  }
  .obj {
    display: block;
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.34));
  }
  .obj-chip {
    opacity: 0.96;
  }

  /* hero */
  .hero {
    min-height: 0;
    padding-top: 0;
  }
  .hero-badge {
    width: calc(var(--w) * var(--s));
    margin: 0;
    filter: drop-shadow(0 30px 70px rgba(223, 74, 137, 0.45));
    animation: badge-pop 0.9s 0.15s cubic-bezier(0.2, 1, 0.2, 1) both;
  }
  .hero-helper {
    align-items: center;
    text-align: center;
    gap: calc(18 * var(--s));
  }
  .helper-line {
    white-space: nowrap;
  }

  /* bridge */
  .bridge-left {
    align-items: flex-start;
    text-align: left;
    gap: calc(24 * var(--s));
  }
  .bridge-left h2 {
    line-height: 1.12;
  }
  .bridge-btn {
    min-height: calc(70 * var(--s));
    padding: calc(20 * var(--s)) calc(46 * var(--s));
    border-radius: 999px;
    margin-top: calc(6 * var(--s));
  }
  .bridge-sched {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(16 * var(--s));
    width: calc(var(--w) * var(--s));
  }
  .sched-row {
    gap: calc(20 * var(--s));
    padding: calc(16 * var(--s)) calc(44 * var(--s));
    border-radius: calc(18 * var(--s));
  }

  /* copy blocks */
  .ev-copy {
    align-items: flex-start;
    text-align: left;
    gap: calc(26 * var(--s));
  }
  .ev-copy h2,
  .bridge-left h2 {
    line-height: 1.08;
  }
  .ev-head-center {
    align-items: center;
    text-align: center;
    gap: calc(26 * var(--s));
  }
  .live-heading {
    text-align: center;
  }
  .ev-lead {
    max-width: none;
  }
  .rs .btn {
    min-height: calc(66 * var(--s));
    padding: calc(18 * var(--s)) calc(42 * var(--s));
    border-radius: 999px;
  }
  .rs .ev-cta {
    min-height: calc(76 * var(--s));
    padding: calc(22 * var(--s)) calc(48 * var(--s));
    margin-top: calc(8 * var(--s));
    font-weight: 900;
  }
  .collect-cta {
    justify-content: center;
    text-align: center;
  }
  .rs .collect-cta {
    min-height: calc(82 * var(--s));
    padding: calc(24 * var(--s)) calc(44 * var(--s));
  }

  /* card drop shadows on desktop */
  .live-card img,
  .rcard,
  .scard,
  .slcard,
  .lkcard,
  .qcard img,
  .benefit-panel,
  .pkg {
    filter: drop-shadow(0 calc(22 * var(--s)) calc(46 * var(--s)) rgba(0, 0, 0, 0.32));
    border-radius: 0;
  }
  .section-light .benefit-panel,
  .section-light .scard,
  .section-light .live-card img,
  .section-light .pkg {
    filter: drop-shadow(0 calc(20 * var(--s)) calc(40 * var(--s)) rgba(40, 10, 39, 0.2));
  }
  .live-card,
  .rcard,
  .scard,
  .slcard,
  .lkcard,
  .qcard {
    width: calc(var(--w) * var(--s));
    transition: transform 0.2s;
  }
  .trust-list {
    width: 100%;
    max-width: none;
    gap: calc(20 * var(--s));
    margin: calc(8 * var(--s)) 0;
  }
  .trust-list li {
    padding: calc(22 * var(--s)) calc(28 * var(--s));
    border-radius: calc(18 * var(--s));
    font-size: calc(26 * var(--s));
    gap: calc(18 * var(--s));
  }
  .trust-list li::before {
    width: calc(44 * var(--s));
    height: calc(44 * var(--s));
    font-size: calc(22 * var(--s));
  }
  .eyebrow {
    margin: 0;
    padding: calc(11 * var(--s)) calc(24 * var(--s));
    font-size: calc(var(--fs, 16) * var(--s));
    letter-spacing: 0.04em;
  }
  .ev-head-center .eyebrow,
  .live-heading {
    margin-left: auto;
    margin-right: auto;
  }

  /* hover lift scaled */
  .live-card:hover,
  .rcard:hover,
  .scard:hover,
  .slcard:hover,
  .lkcard:hover,
  .qcard:hover {
    transform: translateY(calc(-10 * var(--s))) scale(1.012);
  }
}

@keyframes badge-pop {
  from {
    transform: scale(0.92);
  }
  to {
    transform: scale(1);
  }
}

/* =========================================================
   PHONE (<= 700) fine tuning
   ========================================================= */
@media (max-width: 700px) {
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: flex;
    margin-left: auto;
  }
  .mobile-nav a {
    padding: 7px 9px;
    font-size: 11px;
  }
  .rs {
    padding: 44px 18px;
    gap: 14px;
  }
  .hero {
    min-height: 64vh;
  }
  .hero-helper {
    gap: 14px;
  }
  .ev-copy h2,
  .ev-head-center h2,
  .live-heading,
  .final-cta h2 {
    font-size: clamp(24px, 7vw, 32px);
  }
  .live-card,
  .rcard,
  .scard,
  .slcard,
  .lkcard {
    width: min(300px, 86vw);
  }
}

/* =========================================================
   EVENT THUMB CAROUSEL (mobile-first)
   ========================================================= */
.benefit-sub {
  color: rgba(21, 2, 18, 0.7);
  font-weight: 700;
  font-size: 15px;
}
/* desktop positioning handled by .pos; relative only needed on mobile (arrows hidden there) */
.ev-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 44px;
  scroll-padding-left: 18px;
  scrollbar-width: none;
}
.ev-carousel::-webkit-scrollbar {
  display: none;
}
.ev-thumb {
  position: relative;
  flex: 0 0 auto;
  width: min(78vw, 320px);
  padding: 0;
  border: 0;
  background: none;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: center;
  box-shadow: 0 12px 34px rgba(20, 2, 18, 0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ev-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}
.ev-thumb::after {
  content: "＋ 혜택 보기";
  position: absolute;
  right: 10px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(223, 74, 137, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}
.ev-thumb:hover,
.ev-thumb:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(223, 74, 137, 0.36);
  outline: none;
}
.carousel-arrow {
  display: none;
}
/* mobile/tablet: constrain wrap so the carousel scrolls internally (avoid page-wide overflow).
   desktop uses .pos (absolute, fixed width) instead. */
@media (max-width: 1024px) {
  .ev-carousel-wrap {
    align-self: stretch;
    margin-left: -5vw;
    margin-right: -5vw;
  }
}

/* =========================================================
   LIVE VIDEO CARDS (mobile-first)
   ========================================================= */
.live-vcard {
  position: relative;
  width: min(330px, 86vw);
  margin: 0 auto;
  aspect-ratio: 682 / 1024;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  container-type: inline-size;
  filter: drop-shadow(0 14px 30px rgba(40, 10, 39, 0.18));
}
.live-vcard.frame-pink {
  background-image: url("./public/assets/sugar-v2/frames/live-frame-pink.webp");
}
.live-vcard.frame-blue {
  background-image: url("./public/assets/sugar-v2/frames/live-frame-blue.webp");
}
/* video sits exactly inside the frame's top window (guideline-measured) */
.live-video-slot {
  position: absolute;
  left: 7.8%;
  top: 7.5%;
  width: 84.1%;
  height: 55.1%;
  border-radius: 5.5cqw;
  overflow: hidden;
}
.live-video-slot video,
.live-video-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--video-y, 8%);
  display: block;
}
.live-vcard[data-live="geumdong"] {
  --video-y: 6%;
}
.live-vcard[data-live="eundong"] {
  --video-y: 20%;
}
.live-vcard[data-live="dongdong"] {
  --video-y: 20%;
}
/* gift promo banner (S03.5) */
.gift-banner img {
  display: block;
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
@media (max-width: 1024px) {
  .gift-banner img {
    width: min(92vw, 560px);
    margin: 0 auto;
    border-radius: 18px;
  }
}
.live-badge {
  position: absolute;
  top: 5.4%;
  left: 6%;
  display: inline-flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 1.5cqw 3.2cqw;
  border-radius: 999px;
  background: rgba(40, 18, 34, 0.62);
  color: #fff;
  font-size: 3.4cqw;
  font-weight: 900;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.live-badge::before {
  content: "";
  width: 2.4cqw;
  height: 2.4cqw;
  border-radius: 50%;
  background: #d3c2cd;
}
.live-vcard.is-live .live-badge {
  background: rgba(223, 30, 70, 0.95);
}
.live-vcard.is-live .live-badge::before {
  background: #fff;
  animation: live-pulse 1.4s infinite;
}
/* name pill window */
.live-name-slot {
  position: absolute;
  left: 0;
  right: 0;
  top: 68.9%;
  height: 6.5%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-name {
  font-family: "Black Han Sans", Pretendard, sans-serif;
  font-weight: 400;
  font-size: 6cqw;
  line-height: 1;
  letter-spacing: 0.02em;
  transform: translateY(0.62cqw);
}
/* bottom text window */
.live-text-slot {
  position: absolute;
  left: 9.7%;
  width: 81.9%;
  top: 76%;
  height: 16.2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4cqw;
  text-align: center;
}
.live-time {
  font-size: 5cqw;
  font-weight: 800;
  line-height: 1.1;
}
.live-desc {
  font-size: 3.25cqw;
  font-weight: 700;
  line-height: 1.25;
  max-width: 96%;
}
.frame-pink .live-name {
  color: #7a1f47;
}
.frame-pink .live-time {
  color: #d4357a;
}
.frame-pink .live-desc {
  color: #8a5a6e;
}
.frame-blue .live-name {
  color: #1f4a7a;
}
.frame-blue .live-time {
  color: #2f7fce;
}
.frame-blue .live-desc {
  color: #5a7088;
}
@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* =========================================================
   REWARD CARD FLOAT (event 1)
   ========================================================= */
@keyframes rcard-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
  100% {
    transform: translateY(0);
  }
}
.rcard-float {
  animation: rcard-float 4.6s var(--fd, 0s) ease-in-out infinite;
  will-change: transform;
}

/* =========================================================
   EVENT DETAIL MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px max(36px, env(safe-area-inset-bottom));
  background: rgba(8, 0, 8, 0.66);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.modal-overlay[hidden] {
  display: none;
}
.modal-overlay.is-open {
  opacity: 1;
}
#benefit-heading {
  scroll-margin-top: 96px;
}
.modal {
  position: relative;
  width: min(540px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #1d0718, #120310);
  border: 1px solid rgba(223, 74, 137, 0.3);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.24s ease;
}
.modal-overlay.is-open .modal {
  transform: none;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s;
}
.modal-close:hover {
  background: rgba(223, 74, 137, 0.9);
}
.modal-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px 24px 0 0;
}
.modal-body {
  padding: 22px 26px 42px;
}
.modal-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sugar-pink-main), var(--sugar-gold));
  color: #13020e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.modal-title {
  font-family: "Black Han Sans", Pretendard, sans-serif;
  font-weight: 400;
  font-size: 28px;
  margin: 12px 0 18px;
  color: #fff;
  line-height: 1.15;
}
.modal-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 11px;
}
.modal-benefits li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}
.modal-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sugar-pink-main), var(--sugar-pink-light));
}
.modal-benefits li::after {
  content: "✓";
  position: absolute;
  left: 3px;
  top: 4px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
}
.modal-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.modal-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.modal-cta .btn {
  flex: 1 1 auto;
  min-height: 52px;
}
body.modal-open {
  overflow: hidden;
}

/* =========================================================
   DESKTOP component sizing (>= 1025px, 2048 ref scale)
   ========================================================= */
@media (min-width: 1025px) {
  .benefit-sub {
    font-size: calc(20 * var(--s));
    margin-top: calc(4 * var(--s));
  }
  .ev-carousel {
    gap: calc(24 * var(--s));
    padding: calc(30 * var(--s)) calc(72 * var(--s)) calc(58 * var(--s));
    scroll-padding-left: calc(72 * var(--s));
  }
  .ev-thumb {
    width: calc(572 * var(--s));
    border-radius: calc(20 * var(--s));
    box-shadow: 0 calc(14 * var(--s)) calc(44 * var(--s)) rgba(20, 2, 18, 0.18);
  }
  .ev-thumb img {
    border-radius: calc(20 * var(--s));
  }
  .ev-thumb::after {
    right: calc(14 * var(--s));
    bottom: calc(14 * var(--s));
    padding: calc(7 * var(--s)) calc(15 * var(--s));
    font-size: calc(16 * var(--s));
    border-radius: 999px;
  }
  .carousel-arrow {
    display: grid;
    place-items: center;
    position: absolute;
    top: calc(177 * var(--s));
    transform: translateY(-50%);
    width: calc(62 * var(--s));
    height: calc(62 * var(--s));
    border: none;
    border-radius: 50%;
    background: rgba(20, 2, 18, 0.72);
    color: #fff;
    font-size: calc(38 * var(--s));
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    box-shadow: 0 calc(8 * var(--s)) calc(20 * var(--s)) rgba(0, 0, 0, 0.34);
    transition: background 0.18s, transform 0.18s;
  }
  .carousel-arrow:hover {
    background: var(--sugar-pink-main);
  }
  .carousel-arrow.prev {
    left: calc(24 * var(--s));
  }
  .carousel-arrow.next {
    right: calc(24 * var(--s));
  }

  /* live video cards: width from coordinate; inner layout uses % + cqw (frame-based) */
  .live-vcard {
    position: absolute;
    width: calc(var(--w) * var(--s));
  }
  .light-notice {
    text-align: center;
  }

  /* slot card richer hover */
  .slcard {
    transition: transform 0.26s ease, filter 0.26s ease;
  }
  .slcard:hover {
    transform: translateY(calc(-18 * var(--s))) scale(1.06);
    filter: drop-shadow(0 calc(28 * var(--s)) calc(52 * var(--s)) rgba(223, 74, 137, 0.5));
    z-index: 3;
  }
  .qcard {
    cursor: pointer;
    padding: 0;
    border: 0;
    background: none;
  }

  /* footer (flow) — generous PC spacing */
  .footer-logo {
    margin-bottom: 26px;
  }
  .final-cta h2 {
    margin-bottom: 42px;
  }
  .final-cta .cta-row {
    gap: 16px;
  }
  .final-cta .btn {
    min-height: 60px;
    padding: 17px 36px;
    font-size: 17px;
  }
  .final-cta .footer-notice {
    margin-top: 36px;
  }
}

/* =========================================================
   PHONE component tweaks (<= 700)
   ========================================================= */
@media (max-width: 700px) {
  .ev-carousel-wrap {
    margin-left: -18px;
    margin-right: -18px;
  }
  .live-vcard {
    width: min(320px, 88vw);
  }
  .ev-thumb {
    width: min(80vw, 300px);
  }
  .modal-body {
    padding: 18px 18px 22px;
  }
  .modal-title {
    font-size: 24px;
  }
  .seo-trust {
    padding: 56px 18px;
  }
  .seo-grid {
    grid-template-columns: 1fr;
  }
  .seo-grid article,
  .seo-faq article {
    padding: 20px;
    border-radius: 18px;
  }
}

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