/* ==========================================================
   IGNIS LEGION 공식 사이트
   - 다크 판타지 톤: 검정 바탕 + 불씨 주황/금빛 + 균열 보라
   - 모바일 먼저 만들고, 넓은 화면에서 칸을 늘린다
   ========================================================== */

/* ── 글꼴 (OFL, build_fonts.py 로 줄인 woff2) ── */
@font-face { font-family: "Cinzel Decorative"; src: url(../assets/fonts/CinzelDecorative-Black.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Nanum Myeongjo";    src: url(../assets/fonts/NanumMyeongjo-ExtraBold.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Black Han Sans";    src: url(../assets/fonts/BlackHanSans-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Do Hyeon";          src: url(../assets/fonts/DoHyeon-Regular.woff2) format("woff2"); font-display: swap; }

/* ── 색과 크기 ── */
:root {
  --bg:        #0b0908;
  --bg-2:      #14100d;
  --panel:     rgba(24, 18, 14, .78);
  --line:      rgba(214, 170, 104, .22);
  --text:      #ece3d6;
  --text-dim:  #b3a594;
  --gold:      #e8c27a;
  --ember:     #ff7a2f;
  --ember-2:   #c7401b;
  --rift:      #a46bff;

  --f-latin:   "Cinzel Decorative", serif;
  --f-title:   "Nanum Myeongjo", serif;
  --f-head:    "Black Han Sans", sans-serif;
  --f-body:    "Do Hyeon", sans-serif;

  --gutter:    16px;
  --wrap:      1180px;
  --gnb-h:     60px;
  color-scheme: dark;
}

/* ── 기본 ── */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; scroll-padding-top: var(--gnb-h); }
body  { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 var(--f-body); letter-spacing: .01em; overflow-x: hidden; }
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
b     { color: var(--gold); font-weight: normal; }
.latin { font-family: var(--f-latin); font-weight: 900; }

/* ── 버튼 ── */
.btn            { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border: 1px solid transparent; border-radius: 2px; font: 18px var(--f-head); letter-spacing: .04em; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover      { transform: translateY(-2px); }
.btn--ember     { background: linear-gradient(180deg, var(--ember), var(--ember-2)); color: #fff6ea; box-shadow: 0 0 0 1px rgba(255, 190, 120, .35) inset, 0 6px 24px rgba(255, 100, 30, .35); }
.btn--ember:hover { box-shadow: 0 0 0 1px rgba(255, 210, 150, .6) inset, 0 8px 34px rgba(255, 110, 30, .55); }
.btn--ghost     { border-color: rgba(232, 194, 122, .55); color: var(--gold); background: rgba(10, 8, 6, .35); backdrop-filter: blur(4px); }
.btn--sm        { padding: 7px 16px; font-size: 15px; }
.btn--lg        { padding: 15px 34px; font-size: 20px; }
.btn--block     { width: 100%; }

/* ── 상단 메뉴 ── */
.gnb               { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--gnb-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.gnb.is-solid      { background: rgba(11, 9, 8, .9); backdrop-filter: blur(8px); border-color: var(--line); }
.gnb__logo         { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--gold); }
.gnb__logo img     { width: 34px; height: 34px; border-radius: 6px; }
.gnb__nav          { display: none; }
.gnb__menu         { width: 40px; height: 40px; background: none; border: 0; display: grid; place-content: center; gap: 6px; cursor: pointer; }
.gnb__menu span    { width: 24px; height: 2px; background: var(--gold); transition: transform .25s, opacity .25s; }
.gnb.is-open .gnb__nav            { display: flex; position: fixed; inset: var(--gnb-h) 0 auto; flex-direction: column; padding: 12px var(--gutter) 24px; gap: 4px; background: rgba(11, 9, 8, .97); border-bottom: 1px solid var(--line); }
.gnb.is-open .gnb__nav a          { padding: 10px 0; font: 19px var(--f-head); }
.gnb.is-open .gnb__nav .btn       { margin-top: 8px; }
.gnb.is-open .gnb__menu span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.gnb.is-open .gnb__menu span:nth-child(2) { opacity: 0; }
.gnb.is-open .gnb__menu span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 900px) {
  .gnb             { padding: 0 32px; }
  .gnb__menu       { display: none; }
  .gnb__nav        { display: flex; align-items: center; gap: 30px; font: 17px var(--f-head); }
  .gnb__nav a:not(.btn)       { color: var(--text-dim); transition: color .2s; }
  .gnb__nav a:not(.btn):hover { color: var(--gold); }
}

/* ── 제목 표기: IGNIS LEGION 크게 위(세로 1.2배), 이그니스 리전 아래 ── */
.title-lockup      { display: flex; flex-direction: column; align-items: center; gap: .35em; font-weight: normal; }
.title-lockup__en  { display: block; font: 900 clamp(30px, 8.6vw, 128px)/1 var(--f-latin); letter-spacing: .02em; white-space: nowrap; transform: scaleY(1.2); color: transparent;
                     background: linear-gradient(180deg, #fff4d6 0%, #f3cd84 42%, #c9822f 70%, #8a3b12 100%); -webkit-background-clip: text; background-clip: text;
                     filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)) drop-shadow(0 0 28px rgba(255, 110, 30, .45)); }
.title-lockup__ko  { font: 800 clamp(22px, 4.6vw, 44px)/1.2 var(--f-title); letter-spacing: .32em; margin-right: -.32em; color: #f6e7cc; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); margin-top: .5em; }

/* ── 메인 비주얼 ── */
.kv              { position: relative; min-height: min(100svh, 980px); display: grid; place-items: center; overflow: hidden; text-align: center; isolation: isolate; }
.kv__bg          { position: absolute; inset: -4%; background: center 40% / cover no-repeat; animation: kvZoom 24s ease-in-out infinite alternate; z-index: -2; }
.kv::after       { content: ""; position: absolute; inset: 0; z-index: -1;
                   background: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, .15), rgba(0, 0, 0, .7) 75%), linear-gradient(180deg, rgba(11, 9, 8, .5) 0%, transparent 30%, transparent 60%, var(--bg) 100%); }
.kv__embers      { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.kv__inner       { padding: calc(var(--gnb-h) + 24px) var(--gutter) 90px; animation: fadeUp 1.4s ease both; }
.kv__eyebrow     { font: 16px var(--f-head); letter-spacing: .5em; margin-right: -.5em; color: var(--ember); margin-bottom: 26px; }
.kv__copy        { margin-top: 30px; font-size: clamp(17px, 2.4vw, 22px); color: #e9dccb; text-shadow: 0 2px 10px #000; }
.kv__cta         { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.stores          { list-style: none; margin: 26px 0 0; padding: 0; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.stores li       { display: flex; flex-direction: column; min-width: 140px; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .45); border-radius: 8px; line-height: 1.3; }
.stores__name    { font: 16px var(--f-head); }
.stores__state   { font-size: 13px; color: var(--text-dim); }
.kv__scroll      { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font: 12px var(--f-latin); letter-spacing: .3em; color: var(--text-dim); padding-bottom: 34px; }
.kv__scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 26px; background: linear-gradient(var(--gold), transparent); animation: scrollCue 2s infinite; }

@keyframes kvZoom    { from { transform: scale(1); } to { transform: scale(1.08) translateY(-1%); } }
@keyframes fadeUp    { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes scrollCue { 0% { opacity: 0; transform: scaleY(0); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; } }

/* ── 클로즈 베타 모집 띠 ── */
.ribbon          { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding: 16px var(--gutter); text-align: center;
                   background: linear-gradient(90deg, transparent, rgba(199, 64, 27, .35), transparent), var(--bg-2); border-block: 1px solid var(--line); }

/* ── 공통 구역 ── */
.sec             { position: relative; padding: 90px var(--gutter); max-width: var(--wrap); margin: 0 auto; }
.sec__head       { text-align: center; margin-bottom: 48px; }
.sec__en         { font: 14px var(--f-latin); letter-spacing: .4em; margin-right: -.4em; color: var(--ember); }
.sec__head h2    { margin-top: 8px; font: 800 clamp(30px, 5vw, 46px)/1.25 var(--f-title); color: #f6e7cc; }
.sec__head h2::after { content: ""; display: block; width: 64px; height: 2px; margin: 18px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.sec__lead       { margin-top: 18px; color: var(--text-dim); font-size: clamp(16px, 2vw, 19px); }

/* 스크롤하면 떠오르는 효과 */
.reveal          { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in    { opacity: 1; transform: none; }

/* ── 게임 소개: 특징 카드 ── */
.features        { display: grid; gap: 14px; grid-template-columns: 1fr; }
.feature         { position: relative; padding: 28px 24px 26px; background: linear-gradient(160deg, rgba(40, 28, 20, .9), rgba(16, 12, 10, .9)); border: 1px solid var(--line); overflow: hidden; }
.feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--ember), transparent); }
.feature__no     { font: 30px var(--f-latin); color: rgba(232, 194, 122, .35); }
.feature h3      { margin: 6px 0 10px; font: 22px var(--f-head); color: #f6e7cc; }
.feature p       { color: var(--text-dim); font-size: 16px; }
@media (min-width: 640px)  { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* ── 세계관 ── */
.sec--world               { max-width: none; isolation: isolate; }
.sec--world > *           { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.sec--world__bg           { position: absolute !important; inset: 0; max-width: none !important; background: center / cover; opacity: .28; z-index: -1;
                            mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }

/* 서막 다섯 장면: 모바일은 가로로 넘기고, 넓은 화면은 한 줄 */
.prologue                 { list-style: none; padding: 0 0 6px; margin-bottom: 70px; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.prologue li              { scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); }
.prologue img             { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.prologue div             { padding: 14px 16px 16px; }
.prologue b               { font: 18px var(--f-head); }
.prologue p               { font-size: 15px; color: var(--text-dim); margin-top: 4px; line-height: 1.5; }
@media (min-width: 1000px) { .prologue { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }

/* 세 세계 패널 */
.worlds                   { display: grid; gap: 22px; }
.world                    { position: relative; display: grid; min-height: 460px; overflow: hidden; border: 1px solid var(--line); isolation: isolate; }
.world__bg                { position: absolute; inset: 0; background: center / cover; z-index: -2; transition: transform 6s ease; }
.world:hover .world__bg   { transform: scale(1.05); }
.world::before            { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 6, 5, .35), rgba(8, 6, 5, .92) 70%); }
.world__body              { align-self: end; padding: 26px 22px; }
.world__no                { font: 15px var(--f-head); color: var(--ember); letter-spacing: .2em; }
.world__title             { font: 800 clamp(26px, 4.5vw, 38px)/1.25 var(--f-title); color: #fff1d8; margin-top: 4px; }
.world__name              { margin-top: 6px; font: 17px var(--f-head); color: var(--gold); }
.world__name small        { font: 15px var(--f-body); color: var(--text-dim); margin-left: 8px; }
.world__desc              { margin-top: 12px; color: #ddd0bf; font-size: 16px; max-width: 640px; }
.world__stages            { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.world__stages li         { padding: 8px 12px; background: rgba(0, 0, 0, .5); border-left: 2px solid var(--ember); font-size: 14px; line-height: 1.4; }
.world__stages li span    { display: block; color: var(--text-dim); font-size: 13px; }
.world__boss              { display: none; }
@media (min-width: 900px) {
  .world                  { grid-template-columns: 1.4fr 1fr; min-height: 520px; }
  .world::before          { background: linear-gradient(90deg, rgba(8, 6, 5, .94) 0%, rgba(8, 6, 5, .75) 48%, rgba(8, 6, 5, .1) 100%); }
  .world__body            { padding: 44px 40px; }
  .world__boss            { display: flex; flex-direction: column; justify-content: end; align-items: center; padding: 24px; text-align: center; }
  .world__boss img        { max-height: 330px; width: auto; filter: drop-shadow(0 0 30px rgba(164, 107, 255, .45)); }
  .world__boss--round img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; max-height: 260px; border: 2px solid rgba(232, 194, 122, .5); }
  .world__boss b          { margin-top: 12px; font: 22px var(--f-head); color: #f6e7cc; }
  .world__boss p          { font-size: 14px; color: var(--text-dim); max-width: 300px; }
}

/* 세계관 용어 */
.lore                     { list-style: none; padding: 0; margin-top: 60px; display: grid; gap: 12px; }
.lore li                  { padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--rift); }
.lore b                   { display: block; font: 20px var(--f-head); margin-bottom: 4px; }
.lore span                { color: var(--text-dim); font-size: 16px; }
@media (min-width: 800px) { .lore { grid-template-columns: repeat(3, 1fr); } }

/* ── 영웅 ── */
.tabs                     { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 34px; }
.tabs button              { padding: 10px 18px; background: transparent; color: var(--text-dim); border: 1px solid var(--line); font: 16px var(--f-head); cursor: pointer; transition: all .2s; }
.tabs button[aria-selected="true"] { color: #fff6ea; background: linear-gradient(180deg, rgba(255, 122, 47, .9), rgba(199, 64, 27, .9)); border-color: transparent; }

.hero-view                { display: grid; gap: 26px; align-items: center; }
.hero-view__card          { margin: 0 auto; width: min(360px, 82vw); position: relative; }
.hero-view__card::before  { content: ""; position: absolute; inset: -10px; border: 1px solid rgba(232, 194, 122, .4); }
.hero-view__card::after   { content: ""; position: absolute; inset: 0; box-shadow: 0 0 60px rgba(255, 110, 30, .3); pointer-events: none; }
.hero-view__card img      { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hero-view__info          { text-align: center; }
.hero-view__cls           { font: 16px var(--f-head); color: var(--ember); letter-spacing: .15em; }
.hero-view__name          { font: 800 clamp(40px, 7vw, 64px)/1.15 var(--f-title); color: #fff1d8; margin-top: 4px; }
.hero-view__title         { font: 18px var(--f-head); color: var(--gold); margin-top: 6px; }
.hero-view__role          { display: inline-block; margin-top: 12px; padding: 3px 12px; font-size: 14px; border: 1px solid var(--line); color: var(--text-dim); }
.hero-view__story         { margin-top: 18px; color: #ddd0bf; }
.hero-view__quote         { margin: 22px 0 0; padding: 16px 20px; font: 800 18px/1.6 var(--f-title); color: #f6e7cc; background: rgba(255, 122, 47, .07); border-left: 3px solid var(--ember); text-align: left; }
.hero-view.is-swap .hero-view__card,
.hero-view.is-swap .hero-view__info { animation: fadeUp .5s ease both; }

.hero-thumbs              { list-style: none; padding: 0; margin: 40px auto 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 620px; }
.hero-thumbs button       { display: block; width: 100%; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s, transform .2s; }
.hero-thumbs button:hover { opacity: .9; transform: translateY(-3px); }
.hero-thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--ember); }
.hero-thumbs img          { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; width: 100%; }
.hero-thumbs span         { display: block; padding: 4px 0; font: 14px var(--f-head); color: var(--text); }
@media (min-width: 900px) {
  .hero-view              { grid-template-columns: 1fr 1.1fr; gap: 60px; }
  .hero-view__card        { width: 400px; margin-right: 0; }
  .hero-view__info        { text-align: left; max-width: 520px; }
}

/* ── 가이드 ── */
.steps                    { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li                 { position: relative; padding: 24px 22px 22px 80px; background: var(--panel); border: 1px solid var(--line); }
.steps li > span          { position: absolute; left: 20px; top: 22px; width: 42px; height: 42px; display: grid; place-items: center; font: 22px var(--f-latin); color: var(--bg); background: linear-gradient(180deg, var(--gold), #b9792d); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.steps h3                 { font: 20px var(--f-head); color: #f6e7cc; }
.steps p                  { color: var(--text-dim); font-size: 16px; margin-top: 4px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px){ .steps { grid-template-columns: repeat(3, 1fr); } }

.faq                      { margin-top: 60px; }
.faq__title               { font: 24px var(--f-head); margin-bottom: 14px; }
.faq details              { border-bottom: 1px solid var(--line); }
.faq summary              { list-style: none; padding: 18px 36px 18px 0; position: relative; cursor: pointer; font: 18px var(--f-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after       { content: "+"; position: absolute; right: 6px; top: 14px; font: 26px var(--f-body); color: var(--ember); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p            { padding: 0 0 20px; color: var(--text-dim); }

/* ── 소식 ── */
.news                     { list-style: none; padding: 0; border-top: 1px solid var(--gold); }
.news li                  { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.news a                   { transition: color .2s; }
.news a:hover             { color: var(--gold); }
.news time                { grid-column: 2; font-size: 14px; color: var(--text-dim); }
.tag                      { padding: 2px 10px; font-size: 13px; border: 1px solid; white-space: nowrap; }
.tag--event               { color: var(--ember); }
.tag--update              { color: var(--rift); }
.tag--notice              { color: var(--gold); }
@media (min-width: 800px) {
  .news li                { grid-template-columns: 90px 1fr auto; }
  .news time              { grid-column: 3; }
}

/* ── 확률 공개 ── */
.odds                     { display: grid; gap: 16px; }
.odds__box                { padding: 24px 20px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--gold); overflow-x: auto; }
.odds__box h3             { font: 22px var(--f-head); color: #f6e7cc; margin-bottom: 14px; }
.odds__box h3 small       { font: 14px var(--f-body); color: var(--text-dim); margin-left: 8px; }
.odds table               { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 14px; }
.odds th, .odds td        { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.odds th                  { color: var(--gold); font-weight: normal; background: rgba(232, 194, 122, .07); }
.odds td:first-child      { text-align: left; white-space: normal; }
.odds ul                  { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text-dim); line-height: 1.6; }
@media (min-width: 1000px) { .odds { grid-template-columns: 1.1fr 1fr; } .odds__box:last-child { grid-column: 1 / -1; } }

/* ── 클로즈 베타 테스터 모집 ── */
.sec--cbt                 { max-width: none; isolation: isolate; padding-bottom: 110px; }
.sec--cbt > *             { max-width: 720px; margin-left: auto; margin-right: auto; }
.sec--cbt .sec__head      { max-width: var(--wrap); }
.sec--cbt__bg             { position: absolute !important; inset: 0; max-width: none !important; background: center / cover; z-index: -1; opacity: .35;
                            mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }

.cbt-info                 { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px !important; }
.cbt-info li              { padding: 14px 16px; background: rgba(14, 10, 8, .85); border: 1px solid var(--line); border-left: 3px solid var(--ember); line-height: 1.4; }
.cbt-info b               { display: block; font-size: 14px; color: var(--text-dim); }
.cbt-info span            { font: 18px var(--f-head); }
@media (min-width: 800px) { .cbt-info { grid-template-columns: repeat(4, 1fr); } }
.cbt-steps                { list-style: none; padding: 0; display: grid; gap: 8px; margin-bottom: 14px !important; counter-reset: s; }
.cbt-steps li             { position: relative; padding: 14px 16px 14px 58px; background: rgba(14, 10, 8, .85); border: 1px solid var(--line); line-height: 1.4; counter-increment: s; }
.cbt-steps li::before     { content: counter(s); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; font: 16px var(--f-latin); color: var(--bg); background: linear-gradient(180deg, var(--gold), #b9792d); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.cbt-steps b              { display: block; font: 18px var(--f-head); color: #f6e7cc; }
.cbt-steps span           { font-size: 14px; color: var(--text-dim); }
@media (min-width: 800px) { .cbt-steps { grid-template-columns: repeat(3, 1fr); } }
.cbt-note                 { padding: 18px 20px; margin-bottom: 26px !important; background: rgba(14, 10, 8, .85); border: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; color: var(--text-dim); line-height: 1.6; }
.cbt-note b               { margin-right: 8px; }

.cbt-form                 { padding: 30px 24px; background: rgba(14, 10, 8, .92); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); display: grid; gap: 16px; }
.cbt-form__count          { text-align: center; font: 18px var(--f-head); color: var(--text-dim); }
.cbt-form__count b        { font-size: 26px; color: var(--ember); }
.cbt-form__google         { display: grid; justify-items: center; gap: 10px; padding: 18px 12px; border: 1px dashed var(--line); }
.cbt-form__who            { font-size: 15px; color: var(--text-dim); text-align: center; }
.cbt-form__who b          { color: var(--gold); }
.cbt-form button:disabled { filter: grayscale(.8); opacity: .6; cursor: not-allowed; transform: none; }
.field span               { display: block; font-size: 15px; color: var(--text-dim); margin-bottom: 6px; }
.field input              { width: 100%; padding: 14px 16px; background: #0a0807; border: 1px solid var(--line); color: var(--text); font: 18px var(--f-body); letter-spacing: .05em; }
.field input:focus        { outline: none; border-color: var(--ember); }
.check                    { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-dim); line-height: 1.5; cursor: pointer; }
.check input              { margin-top: 3px; accent-color: var(--ember); width: 16px; height: 16px; flex: none; }
.cbt-form__msg            { min-height: 1.4em; font-size: 15px; color: var(--ember); text-align: center; }

/* 완료 창 */
.modal                    { border: 1px solid var(--gold); background: radial-gradient(circle at 50% 0, #2a1a10, var(--bg) 70%); color: var(--text); padding: 34px 28px 28px; text-align: center; width: min(380px, calc(100% - 32px)); }
.modal::backdrop          { background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); }
.modal img                { width: 90px; margin: 0 auto 14px; border-radius: 12px; }
.modal h3                 { font: 800 26px var(--f-title); color: #f6e7cc; }
.modal p                  { margin: 12px 0 22px; color: var(--text-dim); }

/* ── 아래 정보 ── */
.footer                   { padding: 50px var(--gutter) 40px; text-align: center; background: #070605; border-top: 1px solid var(--line); }
.footer__logo             { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer__logo .latin      { font-size: 26px; color: var(--gold); transform: scaleY(1.2); }
.footer__logo .ko         { font: 800 14px var(--f-title); letter-spacing: .3em; color: var(--text-dim); }
.footer__links            { margin: 22px 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 15px; color: var(--text-dim); }
.footer__biz              { font-size: 13px; color: var(--text-dim); line-height: 1.8; margin-bottom: 10px; }
.footer__fine             { font-size: 13px; color: #7d7164; }

/* ── 약관 페이지 (policy/*.html, tools/build_policies.py 가 만듦) ── */
.policy-page .gnb         { position: sticky; }
.policy                   { max-width: 860px; margin: 0 auto; padding: 40px var(--gutter) 80px; font-size: 16px; color: #ddd0bf; }
.policy__tabs             { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 30px; }
.policy__tabs a           { padding: 8px 16px; border: 1px solid var(--line); font: 15px var(--f-head); color: var(--text-dim); }
.policy__tabs a[aria-current] { color: #fff6ea; border-color: var(--ember); background: rgba(255, 122, 47, .15); }
.policy h1                { font: 800 clamp(28px, 5vw, 40px)/1.3 var(--f-title); color: #f6e7cc; margin-bottom: 24px; }
.policy h1 small          { font: 16px var(--f-head); color: var(--ember); margin-left: 8px; }
.policy h2                { font: 21px var(--f-head); color: var(--gold); margin: 36px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.policy h3                { font: 18px var(--f-head); color: var(--gold); margin: 30px 0 10px; }
.policy p                 { margin: 0 0 12px; }
.policy ol, .policy ul    { margin: 0 0 14px; padding-left: 22px; }
.policy li                { margin-bottom: 6px; }
.policy strong            { color: #fff1d8; }
.policy mark              { background: rgba(255, 122, 47, .22); color: #ffcf9c; padding: 0 4px; border: 1px dashed var(--ember); }
.policy .table            { overflow-x: auto; margin: 0 0 16px; }
.policy table             { width: 100%; border-collapse: collapse; font-size: 14px; }
.policy th, .policy td    { padding: 9px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy th                { color: var(--gold); background: rgba(232, 194, 122, .07); font-weight: normal; white-space: nowrap; }

/* 움직임을 줄여 달라고 한 사람에게는 애니메이션을 끈다 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
