/* ============================================================
   DragonRaid 공식 홈페이지 — 시안 레퍼런스 구현
   값 출처: 피그마 변수(Homepage Colors) · 문서 1047
   ============================================================ */

/* ---------- 폰트 ---------- */
/* 웹폰트를 싣지 않는다. 여기 있던 Cafe24 Ssurround @font-face 는 저장소에 없는 파일을
   가리켜 방문자마다 404 를 냈고(제목은 폴백으로 찍혔다), 2026-09-16 에 파일을 넣어 보니
   **그게 오히려 시안과 어긋났다** — 웹스토어 폰트는 Noto Sans KR 하나로 확정이다
   (webstore.css 의 body.ws 제목 오버라이드 참고). 그래서 선언째로 뺀다.
   다시 넣을 일이 생기면 웹스토어 쪽 오버라이드부터 확인할 것. */

/* ---------- 토큰 ---------- */
:root {
  --primary: #1478E0;
  --primary-hover: #0B4F9E;
  --primary-light: #4FA6F5;
  --accent-event: #00C9B7;
  --cta: #F5A623;
  --cta-hover: #D68910;
  --tag-update: #27AE60;
  --tag-maint: #E67E22;
  --bg-dark: #12161D;
  --bg-page: #F2F4F7;
  --bg-card: #FFFFFF;
  --divider: #DDE1E8;
  --text-title: #343A46;
  --text-body: #4A5160;
  --text-secondary: #7A8394;
  --text-caption: #9AA3B2;
  --el-fire: #E5484D;
  --el-water: #3B82F6;
  --el-elec: #F2C21D;
  --el-earth: #D97B2E;
  --el-wind: #3BB273;
  --tile-pink: #E9528E;
  --tile-green: #1FA75D;
  --soft-blue: #DAE9FA;
  --sky: #8BD5F6;
  --wave-on-light: #C9DEF7;
  --wave-on-dark: #2E4A78;
  --font-display: "Noto Sans KR", sans-serif;   /* 제목도 본문과 같은 폰트(시안 확정) */
  --font-body: "Noto Sans KR", sans-serif;
  --content-w: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-page);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: var(--content-w); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display { font-family: var(--font-display); color: var(--text-title); }

/* ---------- 스크롤 페이드인 ---------- */
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ---------- 탭바 ---------- */
.tabbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--divider);
  height: 72px;
}
.tabbar-inner {
  max-width: 1920px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 40px; padding: 0 40px;
}
.tabbar .logo img { height: 44px; }
.tabbar nav { display: flex; gap: 32px; flex: 1; }
.tabbar nav a {
  font-weight: 700; color: var(--text-title); padding: 6px 2px;
  border-bottom: 2px solid transparent; transition: color .2s;
}
.tabbar nav a:hover, .tabbar nav a.active { color: var(--primary); border-bottom-color: var(--primary); }
.btn-webstore {
  background: var(--cta); color: var(--text-title); font-weight: 700;
  padding: 10px 24px; border-radius: 8px; transition: background .2s;
}
.btn-webstore:hover { background: var(--cta-hover); }
.lang-select {
  border: 1px solid var(--divider); border-radius: 8px; padding: 8px 14px;
  color: var(--text-body); font-size: 14px; background: var(--bg-card);
}
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--text-title); border-radius: 2px; }

/* 모바일 메뉴 */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 200; background: rgba(18,22,29,.5);
}
.mobile-menu.open { display: block; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; width: 280px; height: 100%;
  background: var(--bg-card); display: flex; flex-direction: column; padding: 24px;
}
.mobile-menu-panel a { padding: 16px 8px; font-weight: 700; color: var(--text-title); border-bottom: 1px solid var(--divider); }
.mobile-menu-panel .lang-select { margin-top: auto; }
.mobile-menu-close { align-self: flex-end; font-size: 24px; color: var(--text-secondary); padding: 4px 8px; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; border-radius: 10px; padding: 14px 28px; transition: all .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { border: 1.5px solid var(--divider); color: var(--text-title); background: var(--bg-card); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-dark { background: rgba(18,23,28,.92); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-cta { background: var(--cta); color: var(--text-title); }
.btn-cta:hover { background: var(--cta-hover); }

/* ---------- 타이틀 리본 ---------- */
.ribbon-title { position: relative; width: 480px; max-width: 90vw; margin: 0 auto; text-align: center; }
.ribbon-title img { width: 100%; }
.ribbon-title .ribbon-text {
  position: absolute; left: 10%; right: 10%; top: 14%;
  font-family: var(--font-display); font-size: 34px; line-height: 1.3;
}
.ribbon-line .ribbon-text { color: #6979A8; }
.ribbon-solid { filter: none; }
.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading .desc { margin-top: 10px; color: var(--text-secondary); font-size: 15px; }
.dark-section .section-heading .desc { color: rgba(255,255,255,.65); }

/* ---------- 웨이브 디바이더 ---------- */
.wave { display: block; width: 100%; height: 90px; margin-bottom: -1px; }

/* ---------- 섹션 공통 ---------- */
section.site-section { padding: 96px 0; position: relative; }
.dark-section {
  background: var(--bg-dark) url("../assets/bg01.jpg") center/cover;
  background-blend-mode: luminosity;
  position: relative;
}
.dark-section::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(18,22,29,.84) 30%, rgba(18,22,29,.84) 70%, var(--bg-dark) 100%);
}
.dark-section > * { position: relative; }
.dark-section h2, .dark-section h3 { color: #fff; }

/* ---------- 히어로 ---------- */
.hero { background: #fff; }
.hero-media {
  max-width: 1760px; margin: 0 auto; position: relative;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky) 50%, #fff 95%);
}
.hero-kv {
  margin-top: 80px; position: relative;
  aspect-ratio: 1760 / 760; background: url("../assets/keyvisual.png") center/cover;
}
.hero-kv::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14%; background: linear-gradient(180deg, var(--sky), transparent); }
.hero-kv::after { content: ""; position: absolute; inset: auto 0 0 0; height: 32%; background: linear-gradient(180deg, transparent, #fff); }
.hero-logo {
  position: absolute; top: 8%; left: max(24px, calc((100% - var(--content-w)) / 2)); width: 280px; z-index: 2;
  filter: drop-shadow(0 2px 3px rgba(30,107,190,.6)) drop-shadow(0 6px 18px rgba(43,155,249,.5));
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: 4%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.hero-tagline {
  position: absolute; left: 0; right: 0; bottom: calc(4% + 84px); z-index: 2;
  text-align: center; color: var(--text-title); font-weight: 500;
}
.hero-buttons { display: flex; align-items: center; gap: 16px; }
.hero-buttons .game-icon { width: 56px; height: 56px; border-radius: 14px; }

/* ---------- 시즌 ---------- */
.season-eyebrow { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--primary-light); font-weight: 700; letter-spacing: .35em; font-size: 14px; }
.season-eyebrow::before, .season-eyebrow::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .6; }
.season h2 { font-size: 40px; margin: 16px 0; color: #fff; text-align: center; }
.season-desc { text-align: center; color: rgba(255,255,255,.75); }
.season-more { display: block; text-align: center; color: var(--primary-light); font-weight: 700; margin-top: 16px; }
.season-strip { display: flex; align-items: center; justify-content: center; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.season-video {
  width: 560px; max-width: 90vw; aspect-ratio: 16/9; border: 1.5px dashed rgba(255,255,255,.3); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: rgba(255,255,255,.5); font-size: 14px;
}
.play-badge { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.55); position: relative; }
.play-badge::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.silhouette { height: 220px; filter: brightness(0) drop-shadow(0 0 22px rgba(43,155,249,.4)); opacity: .95; }

/* ---------- 시작 가이드 ---------- */
.guide-content { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.guide-video { width: 640px; max-width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; position: relative; background: var(--bg-dark); }
.guide-video iframe { width: 100%; height: 100%; border: 0; }
.guide-steps { display: flex; flex-direction: column; gap: 28px; }
.guide-step { display: flex; gap: 14px; align-items: flex-start; max-width: 420px; }
.step-num {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.guide-step strong { display: block; color: var(--text-title); }
.guide-step p { font-size: 14px; color: var(--text-body); }

/* ---------- 지표 타일 ---------- */
.stats-grid { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.stat-tile {
  width: 394px; max-width: 100%; background: var(--bg-card); border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(18,22,29,.06), 0 14px 32px -4px rgba(18,22,29,.10);
  display: flex; flex-direction: column;
}
.stat-tile .tile-img { aspect-ratio: 9/16; max-height: 560px; object-fit: cover; width: 100%; }
.stat-tile .tile-body { padding: 28px 24px; text-align: center; }
.stat-tile .num { font-family: var(--font-display); font-size: 38px; }
.stat-tile.dragon .num { color: var(--primary); }
.stat-tile.costume .num { color: var(--tile-pink); }
.stat-tile.region .num { color: var(--tile-green); }
.stat-tile .label { font-size: 20px; font-weight: 700; color: var(--text-title); margin-top: 4px; }
.stat-tile .sub { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }
.stat-tile .cta { color: var(--primary); font-weight: 700; font-size: 14px; display: inline-block; margin-top: 12px; }

/* ---------- 발견율 패널 ---------- */
.gauge-panel {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  padding: 32px; color: #fff; margin: 0 auto 56px;
}
.gauge-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.gauge-top .big { font-size: 26px; font-weight: 700; }
.gauge-top .big b { color: var(--primary-light); font-size: 32px; }
.gauge-top .meta { font-size: 13px; color: rgba(255,255,255,.55); }
.gauge-track { position: relative; height: 12px; border-radius: 100px; background: rgba(255,255,255,.45); margin: 76px 0 16px; }
.gauge-fill { position: absolute; inset: 0 auto 0 0; width: 22%; border-radius: 100px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.gauge-bubble {
  position: absolute; bottom: 22px; left: 22%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-weight: 700; font-size: 20px;
  padding: 10px 18px; border-radius: 10px;
}
.gauge-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--primary); border-bottom: 0; }
.gauge-tick { position: absolute; top: -3px; width: 2px; height: 18px; background: rgba(255,255,255,.35); }
.gauge-caption { font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- 드래곤 카드 ---------- */
.dex-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.dragon-card {
  width: 190px; aspect-ratio: 2/3; background: var(--bg-page); border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; padding: 20px 12px;
  position: relative; overflow: hidden; transition: transform .2s;
}
a.dragon-card:hover { transform: translateY(-4px); }
.dragon-card .ghost {
  position: absolute; right: -18%; top: 6%; width: 80%; opacity: .15;
  filter: grayscale(1);
}
.dragon-card .art { height: 150px; object-fit: contain; margin-top: 12px; position: relative; }
.dragon-card.fire .art { filter: drop-shadow(5px 5px 0 var(--el-fire)); }
.dragon-card.elec .art { filter: drop-shadow(5px 5px 0 var(--el-elec)); }
.dragon-card.earth .art { filter: drop-shadow(5px 5px 0 var(--el-earth)); }
.dragon-card .name { font-family: var(--font-display); font-size: 17px; color: var(--text-title); margin-top: 18px; position: relative; }
.el-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; margin-top: 10px; position: relative; }
.el-chip img { width: 16px; height: 16px; }
.el-chip.fire { color: var(--el-fire); } .el-chip.water { color: var(--el-water); }
.el-chip.elec { color: var(--el-elec); } .el-chip.earth { color: var(--el-earth); } .el-chip.wind { color: var(--el-wind); }

.dragon-card.locked { background: rgba(143,163,196,.35); color: rgba(255,255,255,.8); justify-content: center; gap: 10px; }
.page-light .dragon-card.locked { background: #9FB0CF; }
.dragon-card.locked .q { font-size: 34px; font-weight: 700; opacity: .8; }
.dragon-card.locked .hint { font-size: 12px; opacity: .7; }
.dragon-card.event { outline: 2px solid var(--accent-event); box-shadow: 0 0 22px rgba(0,201,183,.35); }
.dragon-card.event .q { color: var(--accent-event); }
.badge-event { background: var(--accent-event); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px; }

/* ---------- 콘텐츠 카드 ---------- */
.content-cards { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.content-card {
  width: 405px; max-width: 100%; background: var(--bg-card); border: 1px solid var(--divider);
  border-radius: 16px; overflow: hidden;
}
.content-card .thumb { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.content-card .thumb.ph { background: var(--bg-page); border-bottom: 1.5px dashed var(--divider); display: flex; align-items: center; justify-content: center; color: var(--text-caption); font-size: 13px; }
.content-card .body { padding: 24px; display: flex; gap: 14px; align-items: flex-start; }
.content-card .ci { width: 44px; height: 44px; border-radius: 12px; }
.content-card strong { color: var(--text-title); display: block; }
.content-card p { font-size: 14px; color: var(--text-secondary); }
.faq-link { display: block; text-align: center; margin-top: 40px; color: var(--primary); font-weight: 700; }

/* ---------- 뉴스 ---------- */
.news-section { background: linear-gradient(180deg, var(--bg-page), var(--soft-blue)); }
.news-header-row { display: flex; justify-content: center; align-items: center; margin-bottom: 40px; }
.news-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card {
  background: var(--bg-card); border-radius: 14px; overflow: hidden; border: 1px solid var(--divider);
  display: flex; flex-direction: column; min-height: 360px; transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(18,22,29,.10); }
.news-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #C9DEF7, #E8F0FB); display: flex; align-items: center; justify-content: center; color: var(--text-caption); font-size: 13px; }
.news-card .body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.news-card .title { font-weight: 700; color: var(--text-title); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 100px; border: 1.5px solid currentColor; width: fit-content; }
.tag-notice { color: var(--primary); }
.tag-event { color: var(--accent-event); }
.tag-update { color: var(--tag-update); }
.tag-maint { color: var(--tag-maint); }
.tag.selected { border: none; color: #fff; }
.tag-event.selected { background: var(--accent-event); }
.news-period { font-size: 13px; color: var(--text-secondary); display: flex; gap: 6px; align-items: center; }
.news-summary { font-size: 14px; color: var(--text-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-date { margin-top: auto; font-size: 13px; color: var(--text-caption); }
.news-all-link { color: var(--primary); font-weight: 700; }

/* 뉴스 목록 페이지 */
.news-list-page { max-width: 880px; margin: 0 auto; padding: 56px 24px 96px; }
.news-list-head { display: flex; justify-content: space-between; align-items: center; }
.news-list-head h1 { font-size: 36px; }
.btn-filter { border: 1.5px solid var(--divider); border-radius: 10px; padding: 10px 18px; font-weight: 700; color: var(--text-title); display: inline-flex; gap: 8px; align-items: center; position: relative; background: var(--bg-card); }
.btn-filter.applied { border-color: var(--primary); color: var(--primary); }
.btn-filter .count { background: var(--primary); color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.applied-chips { display: flex; gap: 8px; margin-top: 14px; }
.filter-panel {
  display: none; background: var(--bg-card); border: 1px solid var(--divider); border-radius: 14px;
  padding: 24px; margin-top: 16px; box-shadow: 0 16px 40px rgba(18,22,29,.12); position: relative; z-index: 20;
}
.filter-panel.open { display: block; }
.filter-panel h4 { font-family: var(--font-body); font-size: 14px; color: var(--text-secondary); margin: 14px 0 8px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--divider); border-radius: 100px; padding: 6px 16px; font-size: 14px; font-weight: 700; color: var(--text-body); background: var(--bg-card); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.news-row {
  display: flex; gap: 20px; background: var(--bg-card); border: 1px solid var(--divider); border-radius: 14px;
  padding: 20px; margin-top: 16px; transition: box-shadow .2s;
}
.news-row:hover { box-shadow: 0 10px 26px rgba(18,22,29,.08); }
.news-row .thumb { flex: none; width: 240px; aspect-ratio: 16/9; border-radius: 10px; background: linear-gradient(135deg, #C9DEF7, #E8F0FB); display: flex; align-items: center; justify-content: center; color: var(--text-caption); font-size: 13px; }
.news-row .body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--text-body); font-weight: 700; }
.pagination a.cur { background: var(--primary); color: #fff; }

/* 뉴스 상세 */
.news-detail { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.news-detail .back { color: var(--primary); font-weight: 700; }
.news-detail time { display: block; color: var(--text-caption); font-size: 14px; margin-top: 24px; }
.news-detail h1 { font-size: 34px; margin: 8px 0 14px; }
.detail-hero { aspect-ratio: 16/9; border-radius: 14px; margin: 24px 0; background: linear-gradient(135deg, #C9DEF7, #E8F0FB); display: flex; align-items: center; justify-content: center; color: var(--text-caption); }
.news-detail article p { margin: 0 0 1.4em; line-height: 1.7; }
.share-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--divider); margin-top: 40px; padding-top: 24px; color: var(--text-secondary); font-size: 14px; }
.share-row button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--divider); font-weight: 700; color: var(--text-title); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.prevnext .label { font-weight: 700; color: var(--text-title); margin-bottom: 10px; }
.prevnext .label.next { text-align: right; }

/* ---------- 도감 페이지 ---------- */
.dex-page { background: #B0C0DB; padding-bottom: 96px; }
.dex-header { text-align: center; padding: 56px 24px 0; }
.dex-gauge-mini { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 24px 0 10px; color: var(--text-title); }
.dex-gauge-mini .bar { width: 200px; height: 8px; border-radius: 100px; background: rgba(255,255,255,.45); position: relative; overflow: hidden; }
.dex-gauge-mini .bar i { position: absolute; inset: 0 auto 0 0; width: 22%; background: var(--primary); border-radius: 100px; }
.dex-caption { color: var(--primary); font-size: 14px; font-weight: 700; }
.dex-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 28px 0 40px; }
.dex-filters .chip.all { background: #fff; border-color: #fff; color: var(--text-title); }
.dex-filters .chip { background: transparent; }
.dex-filters .chip.fire { color: var(--el-fire); border-color: var(--el-fire); }
.dex-filters .chip.water { color: var(--el-water); border-color: var(--el-water); }
.dex-filters .chip.elec { color: var(--el-elec); border-color: var(--el-elec); }
.dex-filters .chip.earth { color: var(--el-earth); border-color: var(--el-earth); }
.dex-filters .chip.wind { color: var(--el-wind); border-color: var(--el-wind); }
.dex-filters .chip.event { background: var(--accent-event); border-color: var(--accent-event); color: #fff; }
.dex-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; max-width: var(--content-w); margin: 0 auto; padding: 0 24px; }
.dex-grid .dragon-card { width: auto; }
.dex-foot { text-align: center; color: var(--text-secondary); font-size: 14px; margin-top: 40px; }

/* 도감 모달 */
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(18,22,29,.6); align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop.open { display: flex; }
.dragon-modal { width: 560px; max-width: 100%; max-height: 90vh; overflow-y: auto; border-radius: 20px; background: var(--bg-dark); }
.dragon-modal .visual { background: var(--el-fire); position: relative; padding: 40px; display: flex; justify-content: center; }
.dragon-modal .visual .ghost { position: absolute; right: 0; top: 0; height: 100%; opacity: .15; filter: grayscale(1); }
.dragon-modal .visual .art { height: 300px; position: relative; }
.dragon-modal .close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; font-size: 18px; }
.dragon-modal .info { padding: 32px; color: rgba(255,255,255,.85); text-align: center; }
.dragon-modal h3 { color: #fff; font-size: 26px; }
.spec-chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.spec-chips span { border: 1px solid rgba(255,255,255,.25); border-radius: 100px; padding: 5px 14px; font-size: 13px; }
.spec-chips .el { border-color: var(--el-fire); color: var(--el-fire); font-weight: 700; }
.dragon-modal .lore { font-size: 14px; line-height: 1.8; text-align: center; }
.dragon-modal .lock { margin-top: 20px; color: var(--primary-light); font-size: 13px; font-weight: 700; }

/* ---------- 다운로드 CTA ---------- */
.download-cta { background: var(--bg-card); text-align: center; padding: 72px 24px; }
.download-cta .game-icon { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 16px; }
.download-cta h2 { font-size: 30px; margin-bottom: 24px; }
.store-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- 푸터 ---------- */
footer.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.6); padding: 48px 24px; font-size: 14px; }
.footer-inner { max-width: var(--content-w); margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-sns { display: flex; gap: 12px; }
.footer-sns a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 13px; }
.footer-sns a:hover { border-color: #fff; }

/* ---------- 쿠키 배너 · 맨 위로 ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--bg-card); border-top: 1px solid var(--divider);
  padding: 16px 24px; display: none; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: 14px;
}
.cookie-banner.show { display: flex; }
.scroll-top {
  position: fixed; right: 32px; bottom: 96px; z-index: 140; width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 20px; box-shadow: 0 8px 20px rgba(20,120,224,.4);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.scroll-top.show { opacity: 1; pointer-events: auto; }

/* ---------- 정책/지원 ---------- */
.doc-page { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.doc-page h1 { font-size: 32px; margin-bottom: 32px; }
.doc-page h2 { font-size: 20px; margin: 32px 0 12px; }
.doc-page p, .doc-page li { color: var(--text-body); line-height: 1.8; }
.support-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.support-form label { font-weight: 700; color: var(--text-title); font-size: 14px; }
.support-form select, .support-form input, .support-form textarea {
  width: 100%; border: 1px solid var(--divider); border-radius: 10px; padding: 12px 14px;
  font-family: inherit; font-size: 15px; color: var(--text-body); background: var(--bg-card);
}
.support-form textarea { min-height: 160px; resize: vertical; }
.note-box { background: var(--bg-page); border: 1px solid var(--divider); border-radius: 10px; padding: 14px 16px; font-size: 13px; color: var(--text-secondary); }

/* ---------- 반응형 ---------- */
@media (max-width: 1023px) {
  .news-cards { grid-template-columns: repeat(2, 1fr); }
  .dex-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  section.site-section { padding: 56px 0; }
  .tabbar nav, .tabbar .lang-select { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .tabbar-inner { gap: 16px; padding: 0 16px; }
  .hero-media { display: flex; flex-direction: column; }
  .hero-logo { position: static; order: 1; margin: 0 auto; width: 200px; padding-top: 32px; }
  .hero-tagline { position: static; order: 2; margin: 12px 0 18px; }
  .hero-kv { order: 3; margin-top: 0; aspect-ratio: auto; height: 250px; }
  .hero-content { position: static; order: 4; padding: 24px 16px 40px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; align-self: stretch; }
  .hero-buttons .game-icon { align-self: center; }
  .ribbon-title { width: 328px; }
  .ribbon-title .ribbon-text { font-size: 24px; }
  .season h2 { font-size: 28px; }
  .silhouette { height: 150px; }
  .news-cards { grid-template-columns: 1fr; }
  .dex-grid { grid-template-columns: repeat(2, 1fr); }
  .news-row { flex-direction: column; }
  .news-row .thumb { width: 100%; }
  .prevnext { grid-template-columns: 1fr 1fr; }
  .prevnext .label span { display: none; }
  .wave { height: 48px; }
  .stat-tile .tile-img { max-height: 400px; }
  .scroll-top { right: 16px; bottom: 88px; }
}
