@font-face {
  font-family: 'GmarketSansBold';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: #080512;
  color: #f8f5ff;
  font-family: 'Pretendard Variable', Pretendard, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.composition {
  --shine: 0;
  --pulse: 0;
  --text-glow: 0;
  --progress: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #080512;
  box-shadow: inset 0 0 42px rgba(4, 2, 10, .92);
}

/* 마녀서버 2.0 달빛 아케인 오로라 쉬머 오버레이 */
.composition::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 30%, rgba(192, 132, 252, .24), transparent 56%),
    radial-gradient(circle at 30% 80%, rgba(52, 211, 153, .12), transparent 52%),
    linear-gradient(125deg, transparent 22%, rgba(243, 232, 255, .14) 48%, rgba(168, 85, 247, .12) 58%, transparent 80%);
  opacity: calc(.38 + var(--shine) * .58);
  mix-blend-mode: screen;
}

/* 마녀서버 2.0 아메시스트·만월골드 앤티크 이중 액자 테두리 */
.composition::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(192, 132, 252, .72);
  box-shadow:
    inset 0 0 0 3px rgba(8, 5, 18, .9),
    inset 0 0 0 4px rgba(253, 224, 71, .32),
    inset 0 0 26px rgba(168, 85, 247, calc(.16 + var(--pulse) * .22));
  pointer-events: none;
  z-index: 25;
}

.art, .magic-circle, .grimoire-aura, .chest, .potion, .glow, .flare, .glint, .badge, .live-dot, .rule, .brand-row, .cta-pill, .tag {
  will-change: transform, opacity;
}

/* 1. 만월 성채 · 아케인 구름 배경 */
.art {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  filter: brightness(.98) contrast(1.08) saturate(1.16);
  z-index: 1;
}

/* 2. 원경 보라빛 달빛 광선 (Moonlight Rays) */
.godrays {
  position: absolute;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    -36deg,
    transparent 0px,
    transparent 36px,
    rgba(233, 213, 255, .045) 40px,
    rgba(168, 85, 247, .095) 46px,
    transparent 54px,
    transparent 96px
  );
  mix-blend-mode: screen;
}

/* 3. 좌측 카피 가독성을 극대화하는 옵시디언 바이올렛 셰이드 */
.shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 3, 14, .95) 0%, rgba(11, 6, 24, .88) 42%, rgba(16, 9, 34, .44) 72%, rgba(8, 5, 18, .22) 100%),
    radial-gradient(circle at 80% 42%, rgba(168, 85, 247, .22), transparent 64%);
}

/* 4. 아케인 달빛 궤적 SVG */
.arcane-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* 5. 실시간 별빛 & 가마솥 스파크 캔버스 */
.ember-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 14;
  pointer-events: none;
}

/* 6. 뒤편 회전 아케인 마법진 SVG */
.magic-circle {
  position: absolute;
  z-index: 9;
  pointer-events: none;
  opacity: .56;
  filter: drop-shadow(0 0 14px rgba(192, 132, 252, .62));
}

/* 7. 고대 아케인 마도서 · 발광 오라 레이어 */
.grimoire-aura {
  position: absolute;
  z-index: 14;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(192, 132, 252, .56) 0%,
    rgba(253, 224, 71, .28) 42%,
    rgba(126, 34, 206, .22) 64%,
    transparent 80%
  );
  filter: blur(10px);
}

/* 8. 고대 마도서 · 비술 포션 · 자수정 봉인 마도서 */
.chest,
.potion {
  position: absolute;
  pointer-events: none;
  object-fit: contain;
}

.chest.supply {
  z-index: 17;
  filter:
    drop-shadow(0 10px 20px rgba(0, 0, 0, .92))
    drop-shadow(0 0 18px rgba(192, 132, 252, .6));
}

.chest.royal {
  z-index: 16;
  filter:
    drop-shadow(0 8px 18px rgba(0, 0, 0, .9))
    drop-shadow(0 0 16px rgba(253, 224, 71, .5));
}

.potion {
  z-index: 15;
  filter:
    drop-shadow(0 6px 14px rgba(0, 0, 0, .88))
    drop-shadow(0 0 14px rgba(52, 211, 153, .58));
}

/* 9. 보라·달빛 광원 & 4각 별 플레어 */
.glow {
  position: absolute;
  border-radius: 50%;
  z-index: 4;
  background: radial-gradient(circle, rgba(168, 85, 247, .36) 0%, rgba(126, 34, 206, .14) 50%, transparent 74%);
  pointer-events: none;
}

.flare {
  position: absolute;
  border-radius: 50%;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(circle, rgba(243, 232, 255, .44) 0%, rgba(192, 132, 252, .22) 45%, transparent 74%);
}

.glint {
  position: absolute;
  z-index: 19;
  width: 16px;
  height: 16px;
  pointer-events: none;
  transform-origin: center;
}
.glint::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f5d0fe 48%, #a855f7 100%);
  clip-path: polygon(50% 0%, 58% 40%, 100% 50%, 58% 60%, 50% 100%, 42% 60%, 0% 50%, 42% 40%);
}
.glint::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(192, 132, 252, .62) 46%, transparent 76%);
}
.glint.sm { width: 12px; height: 12px; }
.glint.lg { width: 22px; height: 22px; }
.glint.gold::before {
  background: linear-gradient(180deg, #ffffff 0%, #fef08a 52%, #f59e0b 100%);
}
.glint.gold::after {
  background: radial-gradient(circle, #fffef2 0%, rgba(253, 224, 71, .68) 46%, transparent 76%);
}

/* 10. 마녀서버 브랜드 유닛 (헤더 공식 텍스트 로고 단독 표기) */
.brand-row {
  display: flex;
  width: fit-content;
  align-items: center;
  z-index: 18;
}

.brand-word-kor {
  display: block;
  width: auto;
  height: 36px;
  object-fit: contain;
  filter:
    drop-shadow(0 4px 10px rgba(0, 0, 0, .94))
    drop-shadow(0 0 14px rgba(192, 132, 252, .48));
}

/* 11. 타이포그래피 & 배지 & 배율 칩 */
.copy {
  position: absolute;
  z-index: 18;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e9d5ff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .98);
  white-space: nowrap;
}

.live-dot {
  display: inline-block;
  width: 6.5px;
  height: 6.5px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ffffff, #c084fc);
  transform: rotate(45deg);
  box-shadow: 0 0 9px rgba(192, 132, 252, .98);
}

h1, p { margin: 0; }

h1 {
  font-family: 'GmarketSansBold', 'Pretendard Variable', Pretendard, 'Malgun Gothic', sans-serif;
  letter-spacing: -.035em;
  line-height: 1.18;
  font-weight: 800;
  color: #faf5ff;
  text-shadow:
    0 3px 14px rgba(0, 0, 0, .98),
    0 0 calc(10px + var(--text-glow) * 14px) rgba(168, 85, 247, calc(.25 + var(--text-glow) * .42));
}

.gold {
  position: relative;
  display: inline-block;
  color: #fde047;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, .98),
    0 0 8px rgba(18, 8, 36, .95),
    0 0 14px rgba(250, 204, 21, .52);
}

.violet {
  color: #d8b4fe;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, .98),
    0 0 14px rgba(168, 85, 247, .65);
}

.detail {
  color: #e9d5ff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .98);
}

.rule {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, rgba(253, 224, 71, .92) 0%, rgba(192, 132, 252, .72) 58%, transparent 100%);
  box-shadow: 0 0 8px rgba(192, 132, 252, .55);
  transform-origin: left;
}
.rule::before {
  content: '';
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  background: #fde047;
  transform: rotate(45deg);
  box-shadow: 0 0 8px #fde047;
}

.rate-pills {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
}

.rate-pills b {
  position: relative;
  display: inline-block;
  padding: 3px 7px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .03em;
  color: #f3e8ff;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(28, 16, 48, .94), rgba(12, 7, 24, .96));
  border: 1px solid rgba(192, 132, 252, .62);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(243, 232, 255, .2), 0 2px 8px rgba(0, 0, 0, .82);
}

.rate-pills b.highlight {
  color: #1a0b2e;
  background: linear-gradient(180deg, #fffef5 0%, #fef08a 42%, #facc15 100%);
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(250, 204, 21, .75), inset 0 1px 0 #ffffff;
}

.rate-pills b.slot-pill {
  color: #ecfdf5;
  background: linear-gradient(135deg, #065f46 0%, #022c22 100%);
  border-color: #34d399;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 10px rgba(52, 211, 153, .45);
}

.cta-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .03em;
  white-space: nowrap;
  color: #fffef5;
  background: linear-gradient(180deg, #9333ea 0%, #581c87 65%, #2e1065 100%);
  border: 1px solid rgba(253, 224, 71, .88);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .85), 0 0 16px rgba(168, 85, 247, .55);
}

.frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 22;
  opacity: .76;
  pointer-events: none;
}

/* =========================================================================
   1. 388x182 (EMBLEM: 마녀 비술의 만월 각성, MANYUE 2.0)
   ========================================================================= */
.emblem .copy {
  left: 15px;
  top: 12px;
  width: 230px;
}
.emblem .brand-row { margin-bottom: 5px; }
.emblem .brand-word-kor { height: 32px; }
.emblem .eyebrow { display: flex; font-size: 8.5px; letter-spacing: .1em; margin-bottom: 3px; color: #c084fc; }
.emblem h1.emblem-headline {
  font-size: 16.5px;
  line-height: 1.15;
  margin: 0 0 3px;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.emblem .detail {
  font-size: 10px;
  color: #e9d5ff;
  margin-bottom: 4px;
  white-space: nowrap;
}
.emblem .rule { width: 196px; margin: 4px 0 6px; }
.emblem .rate-pills { gap: 4px; }
.emblem .rate-pills b { padding: 3px 6px; font-size: 9px; }

.emblem .magic-circle { width: 146px; height: 146px; right: 6px; top: 14px; opacity: .62; }
.emblem .grimoire-aura { width: 136px; height: 110px; right: 10px; bottom: 16px; }
.emblem .chest.supply { width: 124px; right: 8px; bottom: 10px; }
.emblem .chest.royal { width: 70px; right: 92px; bottom: 8px; opacity: .96; }
.emblem .flare { width: 140px; height: 140px; right: 12px; top: 14px; opacity: .52; }
.emblem .g1 { left: 170px; top: 20px; }
.emblem .g2 { right: 42px; top: 14px; }
.emblem .g3 { right: 18px; bottom: 60px; }
.emblem .g4 { left: 104px; top: 14px; }

/* =========================================================================
   2. 500x300 (POSTER: 만월 성채 다크엘프 · 슬롯머신 · 진화 포스터)
   ========================================================================= */
.poster .shade {
  background:
    linear-gradient(180deg, rgba(8, 5, 18, .72) 0%, rgba(10, 6, 22, .16) 40%, rgba(10, 5, 22, .90) 72%, #070410 100%),
    linear-gradient(90deg, rgba(8, 5, 18, .82) 0%, rgba(10, 6, 22, .22) 60%, rgba(10, 6, 22, .48) 100%);
}
.poster .brand-row {
  position: absolute;
  left: 20px;
  top: 14px;
}
.poster .brand-word-kor {
  height: 76px;
  filter:
    drop-shadow(0 6px 14px rgba(0, 0, 0, .95))
    drop-shadow(0 0 18px rgba(192, 132, 252, .56));
}
.poster .edition {
  position: absolute;
  z-index: 18;
  right: 18px;
  top: 16px;
  padding: 5px 11px;
  background: rgba(20, 10, 38, .9);
  border: 1px solid rgba(192, 132, 252, .75);
  border-radius: 999px;
  color: #fde047;
  font: 800 9.5px/1 'Pretendard Variable', sans-serif;
  letter-spacing: .12em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .82), 0 0 12px rgba(168, 85, 247, .35);
}
.poster .magic-circle { width: 186px; height: 186px; right: 16px; top: 32px; opacity: .62; }
.poster .grimoire-aura { width: 176px; height: 138px; right: 20px; top: 52px; }
.poster .chest.supply { width: 152px; right: 16px; top: 38px; }
.poster .chest.royal { width: 96px; right: 142px; top: 72px; }
.poster .potion { width: 50px; left: 28px; top: 118px; opacity: .96; }

.poster .copy { left: 20px; right: 20px; bottom: 14px; }
.poster .eyebrow { display: flex; font-size: 9.5px; color: #c084fc; margin-bottom: 4px; }
.poster h1 { font-size: 21px; margin: 0 0 4px; white-space: nowrap; }
.poster .evo-line {
  font-size: 10.5px;
  font-weight: 700;
  color: #ddd6fe;
  letter-spacing: -.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .98);
}
.poster .rule { width: 300px; margin: 6px 0 8px; }
.poster .poster-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.poster .flare { width: 180px; height: 180px; right: 24px; top: 40px; opacity: .48; }
.poster .g1 { left: 168px; top: 22px; }
.poster .g2 { left: 215px; top: 34px; }
.poster .g3 { right: 44px; top: 52px; }
.poster .g4 { right: 148px; top: 108px; }

/* =========================================================================
   3. 911x90 (STRIP: 커뮤니티 상단 와이드 스트립)
   ========================================================================= */
.strip { display: flex; align-items: center; }
.strip .shade {
  background:
    linear-gradient(90deg, #070410 0%, rgba(12, 7, 26, .92) 34%, rgba(16, 9, 34, .74) 68%, rgba(10, 6, 22, .45) 100%);
}
.strip .brand-row {
  position: absolute;
  left: 22px;
  top: 21px;
  height: 48px;
}
.strip .brand-word-kor { height: 46px; }
.strip .divider {
  position: absolute;
  z-index: 18;
  left: 134px;
  top: 16px;
  height: 58px;
  width: 1px;
  background: linear-gradient(180deg, transparent, #c084fc, transparent);
}
.strip .copy {
  left: 150px;
  top: 17px;
  width: 295px;
}
.strip .eyebrow {
  font-size: 9px;
  letter-spacing: .04em;
  color: #c084fc;
  margin-bottom: 4px;
}
.strip h1 {
  font-size: 16px;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.strip .rates {
  position: absolute;
  left: 462px;
  top: 18px;
  display: flex;
  gap: 5px;
  z-index: 18;
}
.strip .rates > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 7px;
  background: rgba(18, 10, 36, .92);
  border: 1px solid rgba(192, 132, 252, .62);
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
  color: #e9d5ff;
  letter-spacing: .06em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .78);
}
.strip .rates strong {
  display: block;
  font: 800 13.5px/1.15 'GmarketSansBold', sans-serif;
  color: #fde047;
  margin-top: 2px;
}
.strip .magic-circle { width: 96px; height: 96px; right: 126px; top: -3px; opacity: .58; }
.strip .grimoire-aura { width: 96px; height: 76px; right: 126px; bottom: 6px; }
.strip .chest.supply { width: 86px; right: 124px; bottom: 1px; }
.strip .chest.royal { width: 54px; right: 192px; bottom: 6px; opacity: .95; }
.strip .tag {
  position: absolute;
  z-index: 18;
  right: 12px;
  top: 25px;
  border: 1px solid #fde047;
  border-radius: 999px;
  background: linear-gradient(180deg, #9333ea 0%, #581c87 100%);
  color: #fffef5;
  font-weight: 800;
  padding: 9px 13px;
  font-size: 10.5px;
  letter-spacing: .03em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .88), 0 0 16px rgba(168, 85, 247, .55);
}
.strip .rule {
  position: absolute;
  z-index: 20;
  bottom: 1px;
  left: 0;
  width: 911px;
}
.strip .g1 { left: 98px; top: 12px; }
.strip .g2 { left: 134px; top: 20px; }
.strip .g3 { right: 222px; top: 14px; }
.strip .g4 { right: 136px; top: 16px; }

/* =========================================================================
   4. 450x120 (COMPACT: 아케인 문장 실속형 배너)
   ========================================================================= */
.compact .shade {
  background:
    linear-gradient(90deg, #070410 0%, rgba(12, 7, 26, .92) 52%, rgba(16, 9, 34, .42) 100%);
}
.compact .badge {
  position: absolute;
  z-index: 8;
  width: 106px;
  height: 112px;
  left: 10px;
  top: 0;
  background: linear-gradient(165deg, rgba(168, 85, 247, .3), rgba(88, 28, 135, .1));
  border-inline: 1px solid rgba(192, 132, 252, .52);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
}
.compact .badge-brand {
  position: absolute;
  z-index: 18;
  left: 10px;
  top: 0;
  width: 106px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compact .brand-word-kor {
  height: 44px;
  width: auto;
}
.compact .copy {
  left: 126px;
  top: 13px;
  width: 222px;
}
.compact .eyebrow { font-size: 9px; color: #c084fc; margin-bottom: 3px; }
.compact h1 { font-size: 18.5px; margin: 0 0 3px; white-space: nowrap; }
.compact .detail { font-size: 10px; margin-bottom: 6px; white-space: nowrap; }
.compact .rate-pills { gap: 4px; }
.compact .rate-pills b { padding: 3px 6px; font-size: 9px; }

.compact .magic-circle { width: 112px; height: 112px; right: 6px; top: 4px; opacity: .6; }
.compact .grimoire-aura { width: 108px; height: 90px; right: 8px; bottom: 10px; }
.compact .chest.supply { width: 100px; right: 6px; bottom: 6px; }
.compact .chest.royal { width: 60px; right: 86px; bottom: 6px; opacity: .95; }
.compact .flare { width: 110px; height: 110px; right: 4px; top: 6px; opacity: .46; }
.compact .g1 { left: 90px; top: 14px; }
.compact .g2 { left: 116px; top: 38px; }
.compact .g3 { right: 62px; top: 12px; }
.compact .g4 { right: 16px; bottom: 56px; }

/* =========================================================================
   5. 830x360 (WIDE: 만월 성채 마녀서버 그랜드 오픈 와이드)
   ========================================================================= */
.wide .shade {
  background:
    linear-gradient(90deg, #070410 0%, rgba(12, 7, 26, .92) 44%, rgba(16, 9, 34, .42) 72%, rgba(8, 5, 18, .18) 100%),
    linear-gradient(0deg, #070410 0%, transparent 28%);
}
.wide .glow { width: 380px; height: 380px; right: 16px; top: -20px; }
.wide .flare { width: 240px; height: 240px; right: 108px; top: 38px; opacity: .48; }
.wide .copy {
  top: 20px;
  left: 32px;
  width: 488px;
}
.wide .brand-row {
  margin-bottom: 10px;
}
.wide .brand-word-kor { height: 52px; }
.wide .eyebrow { display: flex; font-size: 10px; color: #c084fc; margin-bottom: 5px; }
.wide h1 { font-size: 27.5px; margin: 0 0 7px; line-height: 1.18; }
.wide .detail { font-size: 11.5px; margin-bottom: 7px; color: #ede9fe; white-space: nowrap; }
.wide .evo-bar {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #ddd6fe;
  background: rgba(24, 14, 46, .85);
  border: 1px solid rgba(192, 132, 252, .42);
}
.wide .rule { width: 330px; margin: 9px 0 10px; }
.wide .wide-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.wide .wide-meta .rate-pills b { padding: 4px 8px; font-size: 10px; }

.wide .magic-circle { width: 268px; height: 268px; right: 22px; top: 24px; opacity: .62; }
.wide .grimoire-aura { width: 236px; height: 186px; right: 34px; top: 64px; }
.wide .chest.supply { width: 212px; right: 24px; top: 46px; }
.wide .chest.royal { width: 130px; right: 176px; bottom: 44px; opacity: .96; }
.wide .potion { width: 66px; right: 282px; bottom: 46px; }
.wide .signature {
  position: absolute;
  right: 22px;
  bottom: 15px;
  padding: 5px 12px;
  background: rgba(16, 9, 32, .92);
  border: 1px solid rgba(192, 132, 252, .65);
  border-radius: 999px;
  color: #fde047;
  font: 800 9.5px/1 'Pretendard Variable', sans-serif;
  letter-spacing: .14em;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .82);
}
.wide .g1 { left: 195px; top: 26px; }
.wide .g2 { left: 265px; top: 44px; }
.wide .g3 { right: 64px; top: 36px; }
.wide .g4 { right: 204px; bottom: 132px; }
