/* ─── DragonRaid 공식 홈페이지 ───
   수치·색상 = 피그마 export 값 그대로. 데스크톱 기본 + 768 이하 모바일 */
/* BX 토큰 — 피그마 DragonRaid_Hompage_Ver2 의 Homepage Colors · WS Spacing · Effect 스타일 값.
   이름은 피그마 변수 이름을 따른다(웹스토어 Ver2 와 같은 이름·값). */
:root {
  /* Homepage Colors */
  --brand-primary: #2563FF;          /* Brand/Primary */
  --brand-primary-hover: #253EFF;    /* Brand/Primary Hover */
  --brand-citron: #EEF55A;           /* Brand/Citron Spark */
  --webshop-cta: #FF9A2E;            /* Brand/Webshop CTA */
  --webshop-cta-hover: #F2861A;      /* Brand/Webshop CTA Hover */
  --bg-page: #E8F7FF;                /* BG/Page */
  --bg-page-warm: #E6E4DE;           /* BG/Page Warm */
  --bg-card: #FFFFFF;                /* BG/Card */
  --bg-dark-section: #0A0F2C;        /* BG/Dark Section */
  --border-divider: #D6F1FF;         /* Border/Divider */
  --border-warm: #DCD9D1;            /* Border/Warm */
  --text-title: #0A0F2C;             /* Text/Title */
  --text-body: rgba(10,15,44,.72);   /* Text/Body */
  --text-secondary: rgba(10,15,44,.6);  /* Text/Secondary */
  --text-caption: rgba(10,15,44,.45);   /* Text/Caption */
  --fill-ink-10: rgba(10,15,44,.1);     /* Fill/Ink 10% */
  --fill-sky-15: rgba(72,129,255,.15);  /* Fill/Sky 15% */
  --fill-sky-27: rgba(72,129,255,.27);  /* Fill/Sky 27% */
  --tag-event: #009D8F;              /* Tag/Event */
  --tag-update: #9A7000;             /* Tag/Update */
  --tag-maint: #E67E22;              /* Tag/Maintenance */
  --chip-blue-bg: rgba(37,99,255,.08);    /* Chip/Blue BG */
  --chip-teal-bg: rgba(0,201,183,.14);    /* Chip/Teal BG */
  --chip-yellow-bg: rgba(242,185,13,.18); /* Chip/Yellow BG */
  --chip-orange-bg: rgba(230,126,34,.12); /* Chip/Orange BG */
  /* Effect 스타일 */
  --shadow-card: 0 4px 12px -4px rgba(10,15,44,.05);         /* Shadow/Card */
  --shadow-card-hover: 0 10px 28px -4px rgba(10,15,44,.1);   /* Shadow/Card Hover */
  --shadow-popover: 0 10px 28px -4px rgba(10,15,44,.18);     /* Shadow/Popover */
  /* WS Spacing */
  --card-pad-d: 40px; --card-pad-m: 20px;
  --section-gap-d: 24px; --section-gap-m: 16px;
  --group-gap-d: 16px; --group-gap-m: 12px;
  --control-pad-d: 16px; --control-pad-m: 12px;
  --list-gap-d: 12px; --list-gap-m: 10px;
  /* 숫자·영문 글꼴 — 한글은 Nunito 에 없으니 Noto Sans KR 로 자동으로 넘어간다 */
  --font-num: 'Nunito', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;

  /* 옛 이름 → BX 값 (기존 규칙이 그대로 BX 색을 쓰게) */
  --primary: var(--brand-primary);
  --shop-cta: var(--webshop-cta);
  --shop-cta-hover: var(--webshop-cta-hover);
  --dark: var(--bg-dark-section);
  --page-bg: var(--bg-page-warm);
  --card: var(--bg-card);
  --line: var(--border-warm);
  --t-title: var(--text-title);
  --t-body: var(--text-body);
  --t-sub: var(--text-secondary);
  --t-cap: var(--text-caption);
  --gold: #C4A15A;
  --pill-line: #C9CFDA;
  --tag-notice: var(--brand-primary);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  background: var(--page-bg);
  color: var(--t-title);
  font-size: 15px;
  word-break: keep-all;        /* 한글 어절 단위 줄바꿈 */
  overflow-wrap: break-word;   /* 그래도 넘치면 강제 분리 */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* 초광폭(1920 초과): 홈의 그림 구간(히어로~월드맵)만 1920 중앙 고정.
   다운로드 CTA 띠·푸터 같은 바탕 띠는 화면 양끝까지 채운다 (스테이지 자체는 폭 제한 없음) */
.stage { max-width: none; margin: 0 auto; background: var(--page-bg); overflow: hidden; position: relative; }
.stage > .hero, .stage > .video-sec, .stage > .news-sec, .stage > .band, .stage > .cta-sec {
  width: 100%; max-width: 1920px; margin-left: auto; margin-right: auto; }
.inner { width: 1280px; max-width: calc(100% - 32px); margin: 0 auto; }

/* ── 탭바 (D h72 / M h56) ── */
.tabbar { position: sticky; top: 0; z-index: 100; height: 72px; background: var(--bg-card); border: 0; box-shadow: 0 2px 10px rgba(18,22,29,.07); display: flex; align-items: center; justify-content: center; }
/* 상단바는 웹스토어(.ws-bar)와 같이 화면 폭 전체를 쓴다 — 1920 을 넘는 화면에서
   두 사이트의 로고 위치가 어긋나지 않게. 본문은 .stage 가 1920 에서 잡아 준다. */
.tabbar .inner { width: 100%; max-width: none; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 28px; height: 100%; }
.tabbar .logo img { height: 44px; width: auto; }
/* Tab Item (14:78) — Bold 16, 좌우 패딩 0, 탭 사이 28. Active = 글자 아래 3px 막대 */
.tabbar nav { flex: 1; display: flex; align-items: center; gap: 28px; }
.tabbar nav a { position: relative; height: 72px; display: flex; align-items: center; padding: 0; font-size: 16px; font-weight: 700; color: var(--text-title); }
.tabbar nav a:hover { color: var(--brand-primary); }
.tabbar nav a.on::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% + 15px);
  height: 3px; border-radius: 2px; background: var(--brand-primary); }
/* 웹스토어 버튼 = Button Size=Large Type=Webstore (14:40) + Icon / webstore */
.shop-cta { height: 48px; border-radius: 100px; background: var(--webshop-cta); color: var(--text-title); font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; padding: 0 28px; box-shadow: 0 6px 16px rgba(255,154,46,.35); }
.shop-cta:hover { background: var(--webshop-cta-hover); box-shadow: 0 6px 16px rgba(242,134,26,.4); }
.shop-cta:active { background: var(--webshop-cta-hover); box-shadow: none; }
.ws-ico { width: 24px; height: 24px; flex: none; display: block; }
/* 언어 선택 — 탭바·푸터·모바일 메뉴 공통 */
/* 미국 전용 도메인은 영어 고정이라 언어 선택을 숨긴다(assets/js/i18n.js VERSE_SITE) */
html[data-site="verse"] .lang-sel, html[data-site="verse"] .footer .f-lang, html[data-site="verse"] .m-lang-row { display: none !important; }
.lang-sel, .f-lang { border-radius: 100px; border: 1px solid var(--border-warm); display: flex;
  align-items: center; padding: 9px 13px; gap: 8px; font-family: inherit;
  font-size: 15px; line-height: 18px; font-weight: 700; color: var(--text-title);
  background: none; cursor: pointer; }
.menu-btn { display: none; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--t-title); }

/* Material Symbols Rounded 공통 — 피그마 Icons 세트(579:594) 경로 그대로 */
.mi { width: 24px; height: 24px; flex: none; fill: currentColor; display: block; }
.mi-globe { width: 16px; height: 16px; }
.mi-caret { width: 16px; height: 16px; transform: rotate(180deg); transition: transform .15s; }   /* 드롭다운이 위로 열림 → 위 방향 */
.dd-open .mi-caret { transform: rotate(0deg); }   /* 드롭다운 열림 = 닫기 방향 */

/* ── 스크롤 페이드인 (site.js가 대상 자동 지정) ── */
.fade-in { opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.fade-in.in { opacity: 1; transform: none; will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ── 모바일 메뉴 (Mobile Menu (Open) 16:31) ── */
.m-menu { display: none; }
.m-menu[hidden] { display: none; }
@media (max-width: 768px) {
  /* z 96 = 쿠키 배너(95) 위, 탭바(100) 아래 — 햄버거는 계속 눌릴 수 있어야 함 */
  .m-menu { position: fixed; top: 56px; left: 0; right: 0; bottom: 0; z-index: 96;
    background: #fff; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
  .m-menu[hidden] { display: none; }
  .m-row { height: 60px; flex: none; display: flex; align-items: center; padding: 0 20px;
    border-bottom: 1px solid var(--line); font-size: 16px; line-height: 19px;
    font-weight: 700; color: var(--t-title); }
  .m-lang-row { margin-top: auto; height: 64px; flex: none; display: flex; align-items: center;
    justify-content: space-between; padding: 0 20px; border-top: 1px solid var(--line); }
  .m-lang-label { font-size: 14px; line-height: 17px; font-weight: 500; color: var(--t-cap); }
  body.menu-open { overflow: hidden; }
}

/* ── 히어로 (D h920) ── */
/* 시안 기준: 히어로 1760x1080. 로고·태그라인은 상단 중앙, 배지 줄은 하단 중앙에 겹친다. */
.hero { height: 1080px; background: #CDEBFB; overflow: hidden; padding: 0; position: relative; }
/* 시안 8:18 — 키비주얼이 히어로 폭(최대 1920)을 꽉 채우고, 1920 을 넘는 영역은 배경만 깔린다 */
.hero-media { position: absolute; inset: 0;
  background: linear-gradient(180deg, #8BD5F6, #8BD5F6 50%, #CDEBFB); overflow: hidden; }
.hero-media .kv { position: absolute; inset: 0;
  background: url("../assets/img/hero_desktop.jpg?v=3") center/cover no-repeat; }
/* 로고는 폭이 아니라 높이로 잡는다 — ko/ja/en 의 비율이 서로 달라(1.61 / 1.38 / 1.61)
   폭을 고정하면 언어마다 높이가 달라져 아래 태그라인과 겹친다. 시안 아트 높이 254 기준. */
.hero-media .hero-logo { position: absolute; top: 104px; left: 50%; margin-left: -506px;
  transform: none; height: 254px; width: auto; }
/* 히어로 로고 — 언어별 3종. i18n.js 가 <html lang> 을 박아 주므로 CSS 만으로 갈린다.
   기본은 영어, 한국어·일본어만 덮어쓴다(나머지 11개 언어는 영어 로고). */
/* 큰 로고: 기본 DRAGON RAID(파일명 _ko 지만 영문 DRAGON RAID) · 일본어 화면 ドラゴンレイド ·
   미국(국가)만 DRAGONVERSE(파일명 _en). 미국 판정은 i18n.js 가 html[data-brand="verse"] 로 넣는다.
   미국 규칙이 언어 규칙을 이기도록 맨 아래에 둔다(우선순위가 같아 나중 규칙이 이긴다). */
.hero-media .hero-logo { content: url("../assets/img/hero_logo_ko.svg"); }
html[lang="ja"] .hero-media .hero-logo { content: url("../assets/img/hero_logo_ja.svg"); }
html[data-brand="verse"] .hero-media .hero-logo { content: url("../assets/img/hero_logo_verse.svg"); }
/* 미국 로고는 ANOTHER WORLD 줄이 빠져 높이가 308→274(폭 같음) — 글자 크기가 예전과 같도록 높이도 같은 비율(0.889)로 줄인다 */
html[data-brand="verse"] .hero-media .hero-logo { height: 226px; }

.hero-content { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-content > * { pointer-events: auto; }
.hero-content .sub { position: absolute; top: 382px; left: 50%;
  transform: translateX(calc(-50% - 274px)); width: 604px; text-align: center;
  font-size: 24px; font-weight: 700; color: #fff; }
/* 배지 줄 — 높이 고정, 간격은 배지 높이의 1/4 이상(공식 클리어스페이스 규정) */
.dl-row { --badge-h: 56px; position: absolute; top: 441px; left: 50%;
  transform: translateX(calc(-50% - 274px));
  display: flex; align-items: center; justify-content: center; gap: 14px; }
.dl-row .game-icon { display: none; }   /* 시안에서 숨김 */
.dl-badge { display: block; line-height: 0; }
.dl-badge img { display: block; width: auto; height: var(--badge-h); }

/* ── 소개 영상 ── */
.video-sec { background: var(--bg-page-warm) url("../assets/img/bx/page_deco_d.svg") right top / 1920px auto no-repeat;
  display: flex; flex-direction: column; align-items: center; padding: 120px 0; }
.video-sec .video { width: 1280px; max-width: calc(100% - 32px); aspect-ratio: 16 / 9; border-radius: 12px;
  overflow: hidden; display: block; position: relative; cursor: pointer; background: #000; }
.video-sec .video .poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-sec .video .poster img { width: 100%; height: 100%; object-fit: cover; }
.video-sec .video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 88px; height: 62px; border: 0; border-radius: 16px; background: rgba(18,22,29,.72);
  cursor: pointer; transition: background .2s; }
.video-sec .video .play::after { content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-40%,-50%); border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff; }
.video-sec .video:hover .play { background: #FF0033; }
.video-sec .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-sec .video.on .poster, .video-sec .video.on .play { display: none; }

/* ── 새소식 (아치+패턴은 배경 이미지에 포함) ── */
.news-sec { position: relative; overflow: hidden; display: flex; flex-direction: column;
  align-items: center; padding: 180px 0 160px; }
.news-sec .bg-pattern { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.news-sec .bld { position: absolute; z-index: 1; }
.news-sec .bld.r { width: 500px; top: 0; right: -56px; }
.news-sec .bld.l { width: 300px; top: 159px; left: -21px; }
.news-content { width: 1280px; max-width: calc(100% - 32px); display: flex; flex-direction: column;
  align-items: center; gap: 72px; z-index: 3; }
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
/* 피그마 테두리는 안쪽 정렬이라 195×60 안에 2px가 포함됨 → 패딩에서 2px씩 뺌 */
.sec-pill { border-radius: 999px; border: 2px solid #fff; padding: 10px 54px;
  font-size: 30px; line-height: 36px; font-weight: 700; color: #fff; }   /* 2+10+36+10+2 = 60 */
.sec-head .sub { font-size: 18px; line-height: 22px; color: #fff; }
.news-cards { align-self: stretch; display: flex; align-items: stretch; gap: 24px; }
/* 새소식 이미지 칸은 운영툴 이미지 규격(2.4:1 인게임 프레임)에 맞춰 비율 고정 — 높이는 폭을 따라간다.
   카드 높이는 썸네일 + 본문(고정 178)으로 정해진다 (문서 1328) */
/* News Card (14:70) — r20 · 테두리 없음 · Shadow/Card, Hover = Shadow/Card Hover */
.news-card { flex: 1; height: auto; border-radius: 20px; background: var(--bg-card); border: 0; box-shadow: var(--shadow-card);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s; }
.news-card:hover { box-shadow: var(--shadow-card-hover); }
.news-card[hidden] { display: none; }   /* display:flex 가 [hidden] 을 덮으므로 명시 */
/* 썸네일 칸 16:9 (피그마 News Card). 운영툴 이미지는 2.4:1 이라 cover 로 양옆이 조금 잘린다 — 상세 상단 이미지는 2.4:1 유지 */
.news-card .thumb { position: relative; aspect-ratio: 16 / 9; flex: none; background: var(--border-warm); display: flex; align-items: center;
  justify-content: center; font-size: 13px; line-height: 16px; color: var(--text-caption); }
.news-card .cbody { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px 20px 20px; gap: 12px; }
.news-card .info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 16px; }
.news-card h3 { font-size: 18px; line-height: 22px; font-weight: 700; color: var(--text-title); display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* NEW Badge (3118:771) — 썸네일 왼쪽 위 12. 게시 7일 이내면 news-view.js 가 붙인다 */
.new-badge { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 3px 9px; border-radius: 100px;
  background: var(--brand-citron); color: var(--text-title); font-family: var(--font-num);
  font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .04em; }
/* Tag Chip (14:53) — 옅은 바탕형. Hover = 같은 바탕 + 1px 테두리, Selected = 진한 바탕 + 흰 글자 */
.tag { height: 29px; border-radius: 100px; background: var(--fill-ink-10); border: 0; display: inline-flex;
  align-items: center; padding: 0 12px; gap: 4px; font-size: 14px; line-height: 17px; font-weight: 700;
  color: var(--text-secondary); box-shadow: inset 0 0 0 1px transparent; }
.tag.notice { color: var(--brand-primary); background: var(--chip-blue-bg); }
.tag.event  { color: var(--tag-event);  background: var(--chip-teal-bg); }
.tag.update { color: var(--tag-update); background: var(--chip-yellow-bg); }
.tag.maint  { color: var(--tag-maint);  background: var(--chip-orange-bg); }
button.tag:hover { box-shadow: inset 0 0 0 1px currentColor; }
.ico { width: 16px; height: 16px; flex: none; }   /* 인라인 SVG 기본 크기 */
.ico-x { width: 10px; height: 10px; flex: none; }
.tag .ico { width: 14px; height: 14px; }
.period .ico { width: 16px; height: 16px; }
/* Period Row (3104:1610) */
.period { display: flex; align-items: center; gap: 6px; font-size: 15px; line-height: 18px;
  font-weight: 500; color: var(--text-secondary); white-space: nowrap; }   /* 기간은 절대 줄바꿈 금지 */
.news-card .desc { font-size: 15px; line-height: 160%; color: var(--text-body); }
.news-card .date { font-family: var(--font-num); font-size: 13px; line-height: 18px; color: var(--text-caption); }
/* View All Button (3165:1733) — 흰 알약 + 글자 Brand/Primary + chevron_right */
.pill-btn { border-radius: 999px; background: var(--bg-card); padding: 14px 40px; font-size: 16px;
  line-height: 19px; font-weight: 700; color: var(--brand-primary); display: inline-flex; align-items: center; gap: 2px; }
.pill-btn .mi { width: 18px; height: 18px; }

/* ── 게임 정보 ~ 월드맵 공통 밴드 ── */
.band { background: linear-gradient(180deg, #367BDE, #54B1ED); overflow: visible;
  display: flex; flex-direction: column; align-items: center; position: relative;
  container-type: inline-size; }
.band .texture { position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 1476px;
  object-fit: cover; z-index: 0; }
.trail { position: absolute; z-index: 1; pointer-events: none; height: auto; }
.trail-dragon { position: absolute; object-fit: contain; z-index: 5; }
.float-dragon { position: absolute; object-fit: contain; z-index: 9; }

.game-info { align-self: stretch; display: flex; flex-direction: column; align-items: center;
  padding: 120px 0; position: relative; gap: 64px; z-index: 8; }
.lore-card { --tower-h: 720px; width: 1280px; max-width: calc(100% - 32px); box-shadow: var(--shadow-card);
  border-radius: 20px; background: #fff; overflow: hidden; display: flex; flex-direction: column;
  align-items: center; position: relative; text-align: center; }
.lore-card .tower { align-self: stretch; height: var(--tower-h); border-radius: 20px 20px 0 0; object-fit: cover; }
.lore-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: var(--tower-h);
  background: linear-gradient(rgba(255,255,255,0) 68%, #fff 100%); pointer-events: none; z-index: 1; }
.lore-logo { position: absolute; top: 479px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 24px; z-index: 3; }
.lore-logo .line { display: flex; align-items: center; gap: 8px; }
.lore-logo .dia { width: 9px; height: 9px; background: #fff; transform: rotate(-45deg); }
.lore-logo .bar { width: 200px; height: 2px; background: #fff; }
.lore-logo img { width: 190px; }
.lore-body { align-self: stretch; display: flex; flex-direction: column; align-items: center;
  padding: 0 120px 120px; gap: 18px; }
.lore-label { width: 104.4px; height: 112px; position: relative; }
.lore-label img { position: absolute; top: calc(50% - 41px); left: calc(50% - 29.01px); width: 58px; height: 82px; }
.lore-label span { position: absolute; top: 52.1px; left: 26.69px; font-size: 16px; font-weight: 700;
  letter-spacing: 3px; color: var(--gold); }
.lore-body h2 { font-size: 34px; font-weight: 700; color: var(--text-title); }
.lore-body p { width: 860px; max-width: 100%; font-size: 17px; line-height: 180%; color: var(--text-body); }
.lore-end { padding-bottom: 44px; }
.lore-end img { width: 26px; }
.leaf { position: absolute; object-fit: contain; }

/* 시안 Card Divider 60x184 — 상하 여백 60 + 그래픽 64. 카드 사이 전부 같은 값이다 */
.card-div { display: flex; justify-content: center; z-index: 3; padding: 60px 0; }
.card-div img { height: 64px; opacity: .95; }

.feat-card { width: 1280px; max-width: calc(100% - 32px); box-shadow: var(--shadow-card);
  border-radius: 20px; background: var(--bg-page); display: flex; flex-direction: column;
  align-items: center; padding: 280px 96px 72px; position: relative; gap: 18px; }
.card-pill { border-radius: 999px; border: 1.5px solid var(--pill-line); display: flex; align-items: center;
  padding: 12px 32px; gap: 12px; font-size: 24px; font-weight: 700; color: var(--text-title); }
.card-pill img { width: 16px; height: 16px; }
.feat-card .lead { width: 640px; max-width: 100%; font-size: 18px; font-weight: 700; line-height: 165%; text-align: center; color: var(--text-title); }
.feat-card .desc { width: 640px; max-width: 100%; font-size: 17px; line-height: 180%; color: var(--text-body); text-align: center; }
/* 캐릭터는 카드 위로 그림 높이의 20%만 — 흰 카드가 이미지 뒤 80%까지 올라옴.
   이미지 비율이 달라 카드별 top이 다름 (레이드 1296×886 · 코스튬 809×605) */
.feat-card .ground { position: absolute; left: 50%; transform: translateX(-50%);
  width: 300px; height: 44px; border-radius: 50%; background: rgba(52,58,70,.1); }
.feat-card .chara { position: absolute; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px; object-fit: contain; }
.cg-raid .feat-card .chara { top: -118px; }
.cg-raid .feat-card .ground { top: 197px; }
.game-info > .feat-card .chara { top: -110px; }   /* 코스튬 */
.game-info > .feat-card .ground { top: 217px; }

.split-card { width: 1280px; max-width: calc(100% - 32px); height: 440px; box-shadow: var(--shadow-card);
  border-radius: 20px; background: #fff; overflow: hidden; display: flex; align-items: center; }
.split-card.rev { flex-direction: row-reverse; }
.split-card .txt { flex: 1; align-self: stretch; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 56px; gap: 24px; }
.split-card .card-pill { padding: 10px 28px; font-size: 22px; }
.split-card .txt p { align-self: stretch; font-size: 17px; line-height: 185%; color: var(--text-body); }
.split-card .pic { width: 43.75%; height: 446px; flex: none; object-fit: cover; }   /* 560/1280 — 카드와 같은 비율로 축소 */

/* 월드맵 */
.worldmap { align-self: stretch; display: flex; flex-direction: column; align-items: center;
  padding: 120px 0 150px; position: relative; gap: 36px; z-index: 8; text-align: center; }
.deco-row { display: flex; align-items: center; gap: 16px; }
.deco-row .s { width: 22px; }
.deco-row .c { width: 68px; }
.worldmap .sec-head { gap: 24px; }                                  /* 새소식은 32, 월드맵은 24 */
.worldmap .sub { font-size: 17px; line-height: 20px; color: #fff; }
/* 지도 임베드 — 크기는 더미 이미지 시안값 그대로(1280×720·r28). 카드 배경에 옛 더미 이미지를 깔아
   iframe 이 뜨기 전(lazy)·지도 서버 장애 시에도 빈 네모가 아니라 지도 그림이 보이게 한다. */
.map-card { width: 1280px; max-width: calc(100vw - 32px); height: 720px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card);
  background: #dbe9f6 url(../assets/img/worldmap.png) center / cover no-repeat; }
.map-card iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ── 다운로드 CTA ── */
.cta-sec { height: 913px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px 16px 80px; gap: 16px; background: url("../assets/img/download.jpg") top/cover no-repeat;
  text-align: center; }
.cta-sec .logo-wrap { padding: 20px 0; }
.cta-sec .logo-wrap img { width: 477px; }
.cta-sec .copy { font-size: 40px; font-weight: 700; color: var(--t-title); line-height: 1.35; }
.cta-sec .badges-wrap { height: 365px; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; padding-top: 230px; }
.badges { --badge-h: 56px; --badge-space: calc(var(--badge-h) / 4);
  display: flex; align-items: center; flex-wrap: wrap; }
.badges a { display: inline-flex; padding: var(--badge-space); line-height: 0; }
.badges img { display: block; width: auto; height: var(--badge-h); }
/* App Store 출시 전 임시 배지 (시안 badge/appstore-comingsoon) — 반투명 흰 판 + 사과 + Coming Soon.
   높이는 옆 배지와 같은 --badge-h, 폭·글자 크기는 자리마다 시안값(--soon-w, --soon-fs) */
.badge-soon { --soon-w: 182px; --soon-fs: 15px; display: inline-flex; align-items: center; justify-content: center;
  gap: calc(var(--badge-h) * .14); width: var(--soon-w); height: var(--badge-h); padding: 0 8px;
  border-radius: 8px; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  color: #fff; font-size: var(--soon-fs); font-weight: 700; line-height: 1.2; white-space: nowrap;
  cursor: default; user-select: none; }
.badge-soon .soon-apple { flex: none; width: auto; height: calc(var(--badge-h) * .375); }
.badges .badge-soon { margin: var(--badge-space); }
.dl-row .badge-soon { --soon-fs: 16px; }

/* ── 푸터 ── */
/* Footer / Desktop (25:81) · Mobile (26:123) — 바탕 #16181F 와 장식 패턴은 BX 전과 같다.
   링크·아이콘 = 펄 화이트, 라벨·윗선 = Brand/Citron Spark */
.footer { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center;
  padding: 120px 0 64px; background: #16181F url("../assets/img/bx/footer_deco_d.svg") right top / 1920px 463px no-repeat; }
.footer-content { position: relative; width: 1280px; max-width: calc(100% - 32px); display: flex; flex-direction: column;
  gap: 32px; }
.footer-content::before { content: ""; position: absolute; left: 0; top: -32px; width: 48px; height: 3px;
  border-radius: 2px; background: var(--brand-citron); }   /* Accent · Citron */
.f-top { display: flex; align-items: flex-start; }
.f-brand { width: 520px; flex: none; display: flex; flex-direction: column; gap: 24px; }
.f-menu { flex: 1; display: flex; justify-content: space-between; align-items: flex-start; }
.f-col { display: flex; flex-direction: column; gap: 20px; }
.f-col.follow { width: 380px; }   /* 시안 Col · FOLLOW 폭 — 지역별로 아이콘 수가 달라도 열 위치 고정 */
.f-label { font-family: var(--font-num); font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .2em;
  color: var(--brand-citron); }
.footer .fs-logo { width: 162px; }
.footer .fs-logo-link { display: block; line-height: 0; }
.f-links { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.f-links a { font-size: 16px; line-height: 19px; font-weight: 500; color: #EEF2F9; }
.f-links a:hover { color: var(--brand-citron); }
.sns { display: flex; gap: 12px; }
.sns a { width: 44px; height: 44px; border-radius: 999px; background: #252A35; border: 1px solid #323846;
  display: flex; align-items: center; justify-content: center; }
.sns a:hover { border-color: #EEF2F9; }
.sns img { width: 20px; height: 20px; }
.sns a[hidden] { display: none; }   /* 지역별 SNS(i18n.js localizeSns) — display:flex 가 [hidden] 을 덮으므로 명시 */
.f-div { height: 1px; background: #323846; border: 0; }
.f-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer .f-lang { background: #252A35; border-color: #323846; color: #EEF2F9; font-weight: 500; padding: 9px 15px 9px 17px; }

/* ── 언어 드롭다운 (WS Language Dropdown 597:5328 규격 공용) ── */
.lang-dd { position: fixed; z-index: 120; width: 280px; padding: 8px 0; border-radius: 14px;
  background: #fff; box-shadow: 0 6px 24px -4px rgba(0,0,0,.18); }
.lang-dd .dd-item { width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 11px 16px; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 14px; line-height: 17px; color: var(--t-title); }
.lang-dd .dd-item:hover { background: var(--page-bg); }
.lang-dd .dd-item.on { background: #EDF6FD; font-weight: 700; color: var(--primary); }
.lang-dd .dd-check { width: 16px; height: 16px; flex: none; color: var(--primary); }
/* 사업자 정보 — 값 #B4BDCC · 항목 이름 #7E889A · 구분선 #3A4458 · 회사명 15 Bold 펄 화이트 (site.js 가 나눈다) */
.biz { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  font-family: var(--font-num); font-size: 13px; line-height: 21px; color: #B4BDCC; }
.biz .b-co { font-family: 'Noto Sans KR', sans-serif; font-size: 15px; line-height: 29px; font-weight: 700; color: #EEF2F9; }
.biz .b-k { font-family: 'Noto Sans KR', sans-serif; color: #7E889A; }
.biz .b-sep { color: #3A4458; padding: 0 .25em; }
.copyright { font-family: var(--font-num); font-size: 12px; line-height: 16px; color: #7389AA; }

/* ── 떠 있는 UI ── */
.to-top { position: fixed; right: 40px; bottom: 100px; width: 48px; height: 48px; border-radius: 100px;
  background: var(--bg-dark-section); box-shadow: 0 4px 12px rgba(10,15,44,.25); display: flex; align-items: center;
  justify-content: center; z-index: 90; border: 0; cursor: pointer; color: #fff; }
.to-top .mi { width: 22px; height: 22px; }
.cookie { position: fixed; left: 0; right: 0; bottom: 0; height: 120px; background: rgba(255,255,255,.72);
  border-top: 1px solid var(--border-warm); box-shadow: 0 -6px 20px rgba(10,15,44,.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center; padding: 16px 40px; z-index: 95; color: var(--text-body); }
.cookie .cinner { width: 1280px; max-width: 100%; display: flex; align-items: center; gap: 32px; font-size: 14px; }
.cookie p { flex: 1; }
.cookie a { text-decoration: underline; color: var(--brand-primary); }
.cookie .acts { display: flex; gap: 10px; font-size: 14px; }
/* Button Size=Small — Secondary / Primary (알약 r100, Hover·Pressed 는 웹스토어 값) */
.cookie button { height: 36px; border-radius: 100px; padding: 0 16px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; }
.cookie .deny { border: 1.5px solid var(--brand-primary); background: none; color: var(--brand-primary); }
.cookie .deny:hover { background: var(--fill-sky-15); }
.cookie .deny:active { background: var(--fill-sky-27); }
.cookie .accept { border: 0; background: var(--brand-primary); color: #fff; }
.cookie .accept:hover, .cookie .accept:active { background: var(--brand-primary-hover); }

/* ── 서브 페이지 공통 (02~07) — BG/Page Warm + Page Deco(나침반 별, 탭바 바로 아래 오른쪽) ── */
.sub-page .stage { background: var(--bg-page-warm) url("../assets/img/bx/page_deco_d.svg") right top / 1920px auto no-repeat; }
.page-wrap { width: 880px; max-width: calc(100% - 32px); margin: 0 auto; padding: 72px 0 120px; }
.page-wrap h1 { font-size: 34px; margin-bottom: 40px; }
.page-wrap h2 { font-size: 18px; margin-bottom: 12px; }
.page-wrap p { font-size: 15px; line-height: 1.8; }
.placeholder { background: var(--card); border: 1px dashed var(--line); border-radius: 16px;
  padding: 48px 32px; color: var(--t-cap); text-align: center; font-size: 15px; line-height: 1.8; }

/* Breadcrumb / Desktop (3070:656) — 「상위 › 현재」. 모바일은 Sub Header 로 바뀐다 */
.crumb { display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 17px; min-width: 0; }
.crumb a { flex: none; font-weight: 500; color: var(--text-secondary); }
.crumb a:hover { color: var(--brand-primary); }
.crumb .mi { width: 16px; height: 16px; color: var(--text-caption); }
.crumb .cur { font-weight: 700; color: var(--text-title); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Sub Header / Mobile (3070:657) — 뒤로(‹) + 제목. 데스크톱에서는 숨김 */
.sub-head { display: none; }

/* 문서 카드 (Document Card 3157:827) — 정책 문서·라이선스·새소식 상세 공통 흰 카드 */
.doc-card { background: var(--bg-card); border-radius: 20px; box-shadow: var(--shadow-card); padding: 48px; }

/* ── 새소식 목록 (News List 44:186 / 46:474) ── */
.nl-head { display: flex; justify-content: center; padding: 56px 0 24px;
  position: relative; z-index: 41; }   /* 필터 패널을 딤 위로 — 아래 .filter-wrap 주석 참고 */
.nl-head-inner { width: 880px; max-width: calc(100% - 32px); display: flex; flex-direction: column; gap: 12px; }
.nl-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nl-title-row h1 { font-size: 32px; line-height: 38px; font-weight: 700; color: var(--text-title); }
.applied-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.applied-row[hidden] { display: none; }
/* 적용 칩 = Tag Chip Default + × (Removable). 선택색이 아니라 옅은 바탕형 그대로 */
.applied-row .tag { font-family: inherit; cursor: pointer; }
.applied-row .tag.on { background: var(--fill-ink-10); color: var(--text-secondary); }
.applied-row .tag.notice.on { background: var(--chip-blue-bg); color: var(--brand-primary); }
.applied-row .tag.event.on  { background: var(--chip-teal-bg); color: var(--tag-event); }
.applied-row .tag.update.on { background: var(--chip-yellow-bg); color: var(--tag-update); }
.applied-row .tag.maint.on  { background: var(--chip-orange-bg); color: var(--tag-maint); }
.applied-row .tag .ico-x { margin-left: 2px; }

.filter-wrap { position: relative; flex: none; z-index: 41; }   /* 딤 위로 (버튼·패널 모두) */
/* Filter Button (16:54) — 알약, Default = Border/Warm · Applied = Brand/Primary + 개수 배지 */
.filter-btn { height: 38px; border-radius: 100px; background: var(--bg-card); border: 1px solid var(--border-warm);
  padding: 0 17px; display: inline-flex; align-items: center; gap: 6px; font-family: inherit;
  font-size: 15px; line-height: 18px; font-weight: 700; color: var(--text-body); cursor: pointer; }
.filter-btn .ico { width: 18px; height: 18px; flex: none; }
.filter-btn.on { color: var(--brand-primary); border-color: var(--brand-primary); }
.filter-btn .fcount { min-width: 18px; height: 18px; border-radius: 100px; background: var(--brand-primary);
  color: #fff; font-family: var(--font-num); font-size: 12px; font-weight: 700; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center; }
.filter-btn .fcount[hidden] { display: none; }

/* 패널 열릴 때 뒤 목록 딤(Overlay/Dim) — 밖 클릭 시 변경 버리고 닫힘 */
.nl-dim { position: fixed; inset: 0; z-index: 30; background: rgba(10,15,44,.55); }
.nl-dim[hidden] { display: none; }
/* Filter Panel (Open) (17:9) — r20 · Shadow/Popover · 머리(제목+닫기) · 태그 · 정렬(세그먼트) · 초기화/적용 */
.filter-panel { position: absolute; top: 48px; right: 0; z-index: 41; width: 412px; padding: 24px;
  border-radius: 20px; background: var(--bg-card); box-shadow: var(--shadow-popover);
  display: flex; flex-direction: column; gap: 24px; }
.filter-panel[hidden] { display: none; }
.fp-head { display: flex; align-items: center; justify-content: space-between; }
.fp-title { font-size: 18px; line-height: 22px; font-weight: 700; color: var(--text-title); }
.fp-close { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; color: var(--text-secondary); position: relative; }
.fp-close::after { content: ""; position: absolute; inset: -10px; }   /* 터치 영역 44 */
.fp-close .mi { width: 24px; height: 24px; }
.fp-sec { display: flex; flex-direction: column; gap: 12px; }
.fp-label { font-size: 14px; line-height: 17px; font-weight: 700; color: var(--text-secondary); }
.fp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* Filter Option (3125:808) — 칩보다 한 단계 큼(15 · 8/14). 선택 = Text/Title 바탕 + 흰 글자 */
.fp-chips .tag { height: 34px; padding: 0 14px; font-size: 15px; line-height: 18px; font-family: inherit; cursor: pointer; }
.fp-chips .tag.all { color: var(--text-title); }
.fp-chips .tag.tag.on { background: var(--text-title); color: #fff; box-shadow: none; }   /* 분류색이 아니라 남색 — 아래 .tag.event.on 등보다 우선 */
/* Segment Option (3125:813) — 라디오를 세그먼트로 */
.fp-sort { display: flex; padding: 4px; border-radius: 100px; background: rgba(10,15,43,.06); }
.fp-sort label { flex: 1; position: relative; cursor: pointer; }
.fp-sort input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.fp-sort span { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 100px;
  font-size: 15px; line-height: 18px; font-weight: 500; color: var(--text-secondary); }
.fp-sort input:checked + span { background: var(--bg-card); box-shadow: 0 2px 6px rgba(10,15,43,.12);
  font-weight: 700; color: var(--text-title); }
.fp-sort input:focus-visible + span { outline: 2px solid var(--brand-primary); outline-offset: 1px; }
.fp-acts { display: flex; align-items: center; gap: 16px; }
.btn-text { height: 42px; padding: 0 8px; border: 0; background: none; font-family: inherit; font-size: 15px;
  font-weight: 700; color: var(--text-secondary); cursor: pointer; }
.btn-text:hover { color: var(--text-title); }
/* Button Size=Large Type=Primary */
.btn-fill { flex: 1; height: 48px; border-radius: 100px; border: 0; background: var(--brand-primary); color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.btn-fill:hover, .btn-fill:active { background: var(--brand-primary-hover); }

/* 태그 칩 선택 상태 (Tag Chip State=Selected) */
.tag.on { color: #fff; }
.tag.all.on    { background: var(--brand-primary); }
.tag.notice.on { background: var(--brand-primary); }
.tag.event.on  { background: var(--tag-event); }
.tag.update.on { background: var(--tag-update); }
.tag.maint.on  { background: var(--tag-maint); }

/* 행형 카드 (Layout=Row) — 썸네일 r12, 안쪽 20 */
.nl-list-wrap { display: flex; justify-content: center; padding-bottom: 40px; }
.nl-list { width: 880px; max-width: calc(100% - 32px); display: flex; flex-direction: column; gap: 12px; }
.news-card.row { flex: none; flex-direction: row; align-items: stretch; gap: 28px; padding: 20px; }
.news-card.row .thumb { width: 320px; flex: none; align-self: center; border-radius: 12px; overflow: hidden; font-size: 12px; }
.news-card.row .cbody { flex: 1; min-width: 0; padding: 4px 0 2px; }
.news-card.row .info { gap: 10px; padding-bottom: 12px; }
.news-card.row h3 { font-size: 20px; line-height: 24px; }
.news-card.row h3, .news-card.row .desc { align-self: stretch; }
.news-card.row .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 페이지네이션 (Pagination Button 3112:3541) — 원형 40, 번호 Nunito */
.nl-paging { display: flex; align-items: center; justify-content: center; gap: 8px; padding-bottom: 64px; }
.nl-paging a { width: 40px; height: 40px; border-radius: 100px; background: var(--bg-card); border: 1px solid var(--border-warm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-num); font-size: 15px; line-height: 20px; font-weight: 500; color: var(--text-body); }
.nl-paging a:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.nl-paging a.on { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; font-weight: 700; }
.nl-paging a.arw { color: var(--text-body); }
.nl-paging a .mi { width: 20px; height: 20px; }
.nl-paging[hidden] { display: none; }   /* 1페이지면 숨김 */

/* ── 새소식 상세 (News Detail 54:186 / 54:825) ── */
.article { padding: 48px 0 72px; display: flex; justify-content: center; }
.article-inner { width: 856px; max-width: calc(100% - 32px); display: flex; flex-direction: column; gap: 16px; }
.a-card { display: flex; flex-direction: column; gap: 16px; }
.a-date { font-family: var(--font-num); font-size: 15px; line-height: 20px; color: var(--text-caption); }
.article-inner h1 { font-size: 32px; line-height: 140%; font-weight: 700; color: var(--text-title); }
.a-card > .tag { align-self: flex-start; }
.a-card > .tag:empty { display: none; }   /* 글을 못 불러온 화면에서 빈 태그 칩이 남지 않게 */
.tag .ico { width: 14px; height: 14px; flex: none; }
.a-period { display: flex; align-items: center; gap: 6px; font-size: 15px; line-height: 18px;
  font-weight: 500; color: var(--text-secondary); }
.a-period .ico { width: 16px; height: 16px; flex: none; }
.img-ph { height: 360px; border-radius: 12px; background: var(--bg-page-warm); border: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px; line-height: 17px;
  color: var(--text-caption); }
.img-ph.top-img { height: auto; aspect-ratio: 2.4 / 1; }   /* .hero 는 히어로 섹션과 충돌하므로 사용 금지 */
.article-inner .top-img img { aspect-ratio: 2.4 / 1; object-fit: cover; }   /* 실제 이미지도 같은 비율로 */
.a-body { font-size: 17px; line-height: 170%; color: var(--text-body); }
.a-body img { border-radius: 12px; }
/* Button Size=CTA Type=Webstore — 56 · 알약 · 주황 그림자 · 웹스토어 아이콘 */
.btn-ws { align-self: flex-start; height: 56px; border-radius: 100px; background: var(--webshop-cta);
  padding: 0 28px; display: inline-flex; align-items: center; gap: 6px; font-size: 20px; line-height: 24px;
  font-weight: 700; color: var(--text-title); box-shadow: 0 6px 16px rgba(255,154,46,.35); }
.btn-ws:hover { background: var(--webshop-cta-hover); box-shadow: 0 6px 16px rgba(242,134,26,.4); }
.btn-ws:active { background: var(--webshop-cta-hover); box-shadow: none; }
.a-div { height: 1px; background: var(--border-warm); }
/* Share Row (3104:1597) */
.share { display: flex; align-items: center; gap: 12px; }
.share .s-label { font-size: 15px; line-height: 18px; font-weight: 500; color: var(--text-secondary); }
.s-btn { width: 40px; height: 40px; flex: none; border-radius: 100px; background: var(--bg-card);
  border: 1px solid var(--border-warm); display: flex; align-items: center; justify-content: center;
  color: var(--text-body); cursor: pointer; }
.s-btn:hover { border-color: var(--text-secondary); }
.s-btn svg { width: 16px; height: 16px; }
.s-btn.kakao { background: #FEE51E; border-color: #FEE51E; color: #3A2929; }
.s-btn.kakao svg { width: 18px; height: 18px; }
/* 이전 / 다음 글 — Prev Next Link + 카드(데스크톱 Card · 모바일 Compact) */
.pn { display: flex; gap: 20px; padding-top: 40px; }
.pn-col { flex: 1; min-width: 0; max-width: calc(50% - 10px); display: flex; flex-direction: column; gap: 16px; }
.pn-col[hidden] + .pn-col { margin-left: auto; }   /* 이전 글이 없어도 다음 글은 오른쪽 반 칸 */
.pn-label { display: flex; align-items: center; gap: 2px; font-size: 15px; line-height: 18px; font-weight: 500; color: var(--text-secondary); }
.pn-label .mi { width: 16px; height: 16px; flex: none; }
.pn-label.right { justify-content: flex-end; }
.pn .news-card { flex: none; height: auto; }

/* ── 정책 문서 · 라이선스 (04 · 07) — Document Header / Section / Card ──
   본문 마크업(lg-*)은 legal-view.js·운영툴이 만든다. content.css 보다 이기도록 .doc-page 를 붙인다 */
.doc-page { width: 856px; max-width: calc(100% - 32px); margin: 0 auto; padding: 48px 0 72px; display: flex; flex-direction: column; gap: 16px; }
.doc-page.legal-page { width: 856px; }
.doc-page .doc-card { display: flex; flex-direction: column; gap: 12px; }
.doc-page .doc-card .lg-title { margin: 0; font-size: 32px; line-height: 38px; font-weight: 700; color: var(--text-title); }
.doc-page .doc-card .lg-meta { margin: 0; font-size: 15px; line-height: 18px; color: var(--text-caption); }
.doc-page .doc-card .lg-meta:empty { display: none; }
.doc-page .doc-card .lg-sublinks { margin: 0; }
.doc-page .doc-card .a-body-slot { margin-top: 0; padding-top: 12px; border-top: 1px solid var(--border-warm); }
.doc-page .doc-card h2.lg-h { margin: 24px 0 12px; font-size: 20px; line-height: 24px; color: var(--text-title); }
.doc-page .doc-card h3.lg-h, .doc-page .doc-card h4.lg-h { color: var(--text-title); }
.doc-page .doc-card .lg-p, .doc-page .doc-card .lg-ul li { font-size: 17px; line-height: 170%; color: var(--text-body); }
.doc-page .doc-card .lic-text { border-color: var(--border-warm); color: var(--text-secondary); }

/* ── 404 (06) — 일러스트 + 문구 + 홈 버튼, 본문 최소 높이 = 화면 − 상단바 ── */
.err-wrap { min-height: calc(100vh - 72px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 40px 16px; }
.err-wrap .err-illust { width: 560px; max-width: 100%; height: auto; }
.err-wrap h1 { font-size: 24px; line-height: 29px; color: var(--text-title); }
.err-wrap p { color: var(--text-secondary); font-size: 17px; line-height: 20px; }
/* Button Size=CTA Type=Primary */
.btn-primary { display: inline-flex; align-items: center; height: 56px; background: var(--brand-primary); color: #fff; font-weight: 700;
  font-size: 20px; padding: 0 28px; border-radius: 100px; }
.btn-primary:hover, .btn-primary:active { background: var(--brand-primary-hover); }
/* 점검 페이지 — 홈페이지 서버 점검. 태그 칩 .maint 와 겹치지 않도록 .maint-page 로 분리 */
.maint-page { background: var(--bg-page-warm) url("../assets/img/bx/page_deco_d.svg") right top / 1920px auto no-repeat;
  min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.maint-page .box { display: flex; flex-direction: column; align-items: center; gap: var(--card-pad-d); text-align: center; padding: 40px 16px; }
.maint-page .m-logo { width: 223px; height: auto; }
.maint-page .m-illust { width: 640px; max-width: 100%; height: auto; }
.maint-page .m-text { display: flex; flex-direction: column; align-items: center; gap: var(--list-gap-d); }
.maint-page h1 { color: var(--text-title); font-size: 28px; line-height: 34px; }
.maint-page p { color: var(--text-secondary); font-size: 17px; line-height: 20px; }
.maint-page .m-time { padding: 12px 24px; border-radius: 12px; background: var(--bg-card);
  font-family: var(--font-num); font-size: 15px; line-height: 20px; font-weight: 700; color: var(--text-body); }

/* ── 고객지원 (05) — 고객센터로 넘기는 경유 페이지: 자체 상단바 + 상태 패널 ── */
.sup-page { margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg-page-warm) url("../assets/img/bx/page_deco_d.svg") right 72px / 1920px auto no-repeat; }
.sup-bar { height: 72px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 32px 0 40px;
  background: var(--bg-card); border-bottom: 1px solid var(--border-warm); }
.sup-bar img { height: 32px; width: auto; }
.sup-bar .sup-title { font-size: 18px; line-height: 22px; font-weight: 700; color: var(--text-title); }
.sup-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 16px; }
/* 자동 이동이 막혔을 때만 channel-routing.js 가 드러내는 대체 링크 — 시안에 없는 비상 경로라 글자 버튼으로만 둔다 */
.sup-main [data-support-link] { font-size: 15px; font-weight: 700; color: var(--brand-primary); text-decoration: underline; }
.sup-main [data-support-link][hidden] { display: none; }
/* Status Panel (3157:1319) — 불러오는 중 / 불러오기 실패 / 고객센터 없음 */
.status-panel { width: 720px; max-width: 100%; border-radius: 20px; background: var(--bg-card); box-shadow: var(--shadow-card);
  padding: 64px 60px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.status-panel .sp-title { font-size: 19px; line-height: 23px; font-weight: 700; color: var(--text-title); }
.status-panel .sp-msg { font-size: 15px; line-height: 18px; color: var(--text-secondary); }
.status-panel .sp-body { font-size: 15px; line-height: 170%; color: var(--text-body); }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--fill-ink-10);
  border-top-color: var(--brand-primary); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* 내용이 짧은 페이지에서도 CTA 띠는 푸터에 바로 붙는다 — 남는 높이는 띠 위로 (content.css 스티키 푸터 보정) */
.stage > .cta-band { margin-top: auto; }
.stage > .cta-band + .footer { margin-top: 0; }
/* ── 다운로드 CTA 띠 (Download CTA / Desktop 24:83 · Mobile 26:107) — 새소식 목록·상세 ──
   화면 전체 폭 띠 · 모서리·그림자 없음 · 푸터에 바로 붙음. 바탕(원형 그라데이션 + 패턴 그리드)은 시안 그대로 SVG */
.cta-band { display: flex; align-items: center; justify-content: center; gap: 56px; padding: 72px 16px;
  /* 바탕 = 시안 원형 그라데이션(중심 #85CEFF → 끝 #8DD7FF, 반지름 960×359) + 패턴 그리드 반복 조각.
     조각은 시안 패턴에서 가로 주기(168×8 = 1344)만큼 잘라 낸 것 — 화면이 넓어도 끝까지 끊김 없이 이어진다 */
  background: url("../assets/img/bx/cta_tile_d.svg") center top / 1344px 304px repeat-x,
    radial-gradient(960px 359px at 50% 50%, #85CEFF, #8DD7FF) #8DD7FF; }
.cta-band .cb-icon { width: 160px; height: 160px; flex: none; border-radius: 28px; box-shadow: 0 14px 28px -4px rgba(37,99,255,.32); }
.cta-band .cb-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cta-band .cb-tag { font-size: 18px; line-height: 22px; font-weight: 700; color: #3854BA; }
/* 제목 = 흰 글자 + 바깥 1.5 남색 테두리 + 아래 2 남색 그림자 (시안 stroke OUTSIDE 1.5 · drop y2).
   CSS text-stroke 는 가운데 정렬이라 글자를 갉아먹어서, 테두리는 8방향 그림자로 바깥에만 그린다 */
.cta-band .cb-title { --o: 1.5px; --d: 1.06px; font-size: 44px; line-height: 53px; font-weight: 700; color: #fff;
  text-shadow: var(--o) 0 0 #0A0F2C, calc(var(--o) * -1) 0 0 #0A0F2C, 0 var(--o) 0 #0A0F2C, 0 calc(var(--o) * -1) 0 #0A0F2C,
    var(--d) var(--d) 0 #0A0F2C, calc(var(--d) * -1) var(--d) 0 #0A0F2C, var(--d) calc(var(--d) * -1) 0 #0A0F2C, calc(var(--d) * -1) calc(var(--d) * -1) 0 #0A0F2C,
    0 calc(var(--o) + 2px) 0 #0A0F2C, var(--d) calc(var(--d) + 2px) 0 #0A0F2C, calc(var(--d) * -1) calc(var(--d) + 2px) 0 #0A0F2C; }
.cta-band .badges { --badge-h: 52px; padding-top: 16px; gap: 14px; }
.cta-band .badges a { padding: 0; }

/* ══ 모바일 (768 이하) — export 모바일 값 ══ */
/* ── 중간 해상도 규칙 (시안은 1920·360만 정의 — 그 사이 전환)
   ※ 반드시 기본 규칙보다 뒤에 있어야 이긴다 (같은 특이성은 소스 순서 승부) ── */
@media (max-width: 1100px) {
  /* 홈 새소식: 3열이 좁아져 내용이 꺾이기 전에 세로 스택으로 전환 */
  .news-cards { flex-direction: column; align-self: stretch; gap: 16px; }
  .news-cards .news-card { flex: none; align-self: stretch; }
}
@media (max-width: 900px) {
  /* 가로형 콘텐츠 카드: 텍스트가 짓눌리기 전에 세로 스택으로 전환 */
  .split-card, .split-card.rev { height: auto; flex-direction: column; }
  .split-card .pic { width: 100%; height: 240px; order: -1; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }
  .inner { max-width: calc(100% - 32px); }

  .tabbar { height: 56px; }
  .tabbar .inner { gap: 12px; justify-content: flex-start; padding: 0 16px; }
  .shop-cta { margin-left: auto; }
  .tabbar .logo img { height: 32px; }
  .tabbar nav, .tabbar .lang-sel { display: none; }   /* 모바일 메뉴 안의 .lang-sel 은 보여야 함 */
  .menu-btn { display: block; }
  .shop-cta { height: 36px; padding: 0 16px; font-size: 14px; box-shadow: 0 4px 12px rgba(255,154,46,.35); }
  .shop-cta .ws-ico { width: 22px; height: 22px; }
  .shop-cta:hover { box-shadow: 0 4px 12px rgba(242,134,26,.4); }
  .shop-cta:active { box-shadow: none; }

  /* 시안 기준: 모바일 히어로 360x515(= 원본 750x1072 비율), 데스크탑과 동일한 오버레이 구조.
     높이를 고정하지 않고 비율로 잡는다 — 폭이 360 보다 넓은 기기에서 좌우가 잘리는 대신
     세로가 같이 길어져 키비주얼 전체가 보인다. 겹치는 요소도 전부 비율값(시안 360x515 기준). */
  .hero { height: auto; aspect-ratio: 750 / 1072; flex: none; padding: 0; }
  .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .hero-media .kv { position: absolute; inset: 0; background-image: url("../assets/img/hero_mobile.jpg?v=2"); }
  .hero-media .hero-logo { position: absolute; top: 1.9417%; left: 2.2222%;
    margin-left: 0; transform: none; height: 22.1359%; width: auto; }
  html[data-brand="verse"] .hero-media .hero-logo { height: 19.68%; }   /* 22.1359% × 274/308 */
  /* 태그라인은 로고 폭 안에서 두 줄로 접힌다 */
  /* 시안은 줄바꿈이 박혀 2줄이지만 실제 문구는 i18n 한 줄이라, 폭으로 2줄이 되게 잡는다 */
  .hero-content .sub { top: 26.0194%; left: 10.2778%; right: auto; width: 40%;
    transform: none; font-size: 12px; }
  .dl-row .badge-soon { --soon-w: 130px; --soon-fs: 13px; }
  .dl-row { --badge-h: 40px; top: auto; bottom: 2.9126%; left: 0; right: 0;
    transform: none; display: flex; align-items: center; justify-content: center; gap: 10px; }

  .video-sec { padding: 56px 16px; background-image: url("../assets/img/bx/page_deco_m.svg"); background-size: 360px auto; }
  .video-sec .video { width: 100%; border-radius: 12px; }   /* 높이는 aspect-ratio 16:9 로 자동 */
  .video-sec .video .play { width: 60px; height: 42px; border-radius: 12px; }
  .video-sec .video .play::after { border-width: 8px 0 8px 14px; }

  .news-sec { padding: 88px 16px 72px; }
  .news-content { gap: 28px; width: 100%; max-width: 100%; }
  .sec-head { gap: 16px; }
  .sec-pill { padding: 6px 34px; font-size: 20px; line-height: 24px; }   /* 2+6+24+6+2 = 40 */
  .sec-head .sub { font-size: 15px; line-height: 18px; }
  .news-cards { flex-direction: column; align-self: stretch; gap: 16px; }
  .news-card { flex: none; align-self: stretch; height: auto; }
  /* 썸네일은 데스크톱과 같은 2.4:1 비율 고정 */
  .news-sec .bld.r { width: 160px; top: 14px; left: 220px; right: auto; }
  .news-sec .bld.l { width: 110px; top: 150px; left: -26px; }
  .pill-btn { padding: 12px 32px; font-size: 15px; line-height: 18px; }   /* 12+18+12 = 42 */
  .pill-btn .mi { width: 17px; height: 17px; }

  .band .texture { height: 1100px; }
  .game-info { padding: 56px 16px; gap: 24px; }
  .lore-card { --tower-h: 230px; align-self: stretch; width: 100%; max-width: 100%; border-radius: 20px; box-shadow: var(--shadow-card); }
  .lore-card .tower { border-radius: 20px 20px 0 0; }
  .lore-logo { top: 147.43px; gap: 14px; }
  .lore-logo .dia { width: 7px; height: 7px; background: var(--gold); }
  .lore-logo .bar { width: 56px; background: var(--gold); }
  .lore-logo img { width: 120px; }
  .lore-body { padding: 48px 22px 40px; gap: 12px; }
  .lore-label { width: 80.2px; height: 86px; }
  .lore-label img { top: 0; left: calc(50% - 45px); width: 90px; height: 86px; }
  .lore-label span { top: 38.8px; left: 18.08px; font-size: 14px; letter-spacing: 2.5px; }
  .lore-body h2 { font-size: 24px; }
  .lore-body p { width: 100%; font-size: 15px; }
  .lore-end { padding-bottom: 28px; }
  .lore-end img { width: 20px; }

  .card-div { padding: 16px 0; }   /* 카드 간 128 — 여백 24 + 장식 80 + 여백 24 */   /* 시안 45x128 */
  .card-div img { height: 48px; }
  .feat-card { width: 100%; max-width: 100%; border-radius: 20px; padding: 160px 22px 36px;
    box-shadow: var(--shadow-card); }
  .card-pill { padding: 8px 20px; font-size: 18px; }
  .card-pill img { width: 12px; height: 12px; }
  .feat-card .lead { width: 100%; font-size: 16px; }
  .feat-card .desc { width: 100%; font-size: 15px; text-align: left; }
  .feat-card .ground { width: 170px; height: 26px; }
  .feat-card .chara { width: 220px; height: 220px; }
  .cg-raid .feat-card .chara { top: -65px; }
  .cg-raid .feat-card .ground { top: 107px; }
  .game-info > .feat-card .chara { top: -61px; }   /* 코스튬 */
  .game-info > .feat-card .ground { top: 119px; }

  .split-card, .split-card.rev { width: 100%; max-width: 100%; height: auto; flex-direction: column;
    border-radius: 20px; box-shadow: var(--shadow-card); }
  .split-card .pic { width: 100%; height: 240px; order: -1; }
  .split-card .txt { padding: 24px 20px 28px; gap: 16px; }
  .split-card .card-pill { padding: 8px 20px; font-size: 18px; }
  .split-card .txt p { font-size: 15px; line-height: 180%; }

  .worldmap { padding: 72px 16px 88px; gap: 24px; }
  .deco-row { gap: 12px; }
  .deco-row .s { width: 16px; }
  .deco-row .c { width: 48px; }
  .worldmap .sec-head { gap: 16px; }
  .worldmap .sub { font-size: 15px; line-height: 18px; }
  /* 모바일: 흰 테두리 카드(8px) 안에 220px 지도 — 시안의 더미 이미지 규격 그대로 */
  .map-card { width: 100%; height: auto; border-radius: 20px; background: #fff; padding: 8px; overflow: visible; }
  .map-card iframe { height: 220px; border-radius: 14px;
    background: #dbe9f6 url(../assets/img/worldmap.png) center / cover no-repeat; }

  .cta-sec { height: 560px; padding: 48px 16px 40px; gap: 8px; }
  .cta-sec .logo-wrap { padding: 0; }
  .cta-sec .logo-wrap img { width: 170px; }
  .cta-sec .copy { font-size: 28px; }
  .cta-sec .badges-wrap { height: auto; padding-top: 110px; }
  .badges { --badge-h: 48px; flex-direction: column; }
  .badges .badge-soon { --soon-w: 160px; --soon-fs: 14px; }

  /* Footer / Mobile (26:123) — 로고·언어 → LEGAL|SUPPORT → FOLLOW → 구분선 → 사업자 정보 → 저작권 (간격 28)
     데스크톱 묶음(.f-top 등)을 풀어 한 줄 흐름으로 다시 줄 세운다 */
  .footer { padding: 56px 16px 40px; background-image: url("../assets/img/bx/footer_deco_m.svg"); background-size: 360px 657px; }
  .footer-content { width: 100%; max-width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 28px 0; }
  .footer-content::before { top: -20px; width: 32px; }
  .f-top, .f-brand, .f-menu, .f-bottom { display: contents; }
  .footer .fs-logo-link { order: 1; flex: 1 0 50%; }   /* 50% + 언어 버튼 → LEGAL 은 다음 줄로 */
  .footer .f-lang { order: 2; padding: 8px 13px 8px 15px; font-size: 14px; line-height: 17px; }
  .f-col.legal { order: 3; width: 50%; align-self: flex-start; }
  .f-col.support { order: 4; width: 50%; align-self: flex-start; }
  .f-col.follow { order: 5; width: 100%; }
  .f-div { order: 6; width: 100%; }
  .biz { order: 7; width: 100%; font-size: 12px; line-height: 20px; }
  .biz .b-co { font-size: 14px; }
  .copyright { order: 8; width: 100%; }
  .footer .fs-logo { width: 127px; }
  .f-col { gap: 14px; }
  .f-label { font-size: 11px; line-height: 15px; }
  .f-links { gap: 14px; }
  .f-links a { font-size: 15px; line-height: 18px; }
  .sns { gap: 8px; flex-wrap: wrap; }
  .sns a { width: 38px; height: 38px; }

  .to-top { right: 16px; bottom: 116px; }
  .cookie { height: auto; padding: 20px; }
  .cookie .cinner { flex-direction: column; align-items: stretch; gap: 12px; font-size: 13px; }
  .cookie .acts { gap: 8px; }
  .cookie button { flex: 1; }

  /* 서브 페이지 공통 */
  .sub-page .stage { background-image: url("../assets/img/bx/page_deco_m.svg"); background-size: 360px auto; }
  .crumb { display: none; }
  .sub-head { display: flex; align-items: center; height: 52px; padding: 0 4px; }
  .sub-head a { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--text-title); }
  .sub-head .mi { width: 24px; height: 24px; }
  .sub-head .sh-title { flex: 1; min-width: 0; text-align: center; font-size: 18px; line-height: 22px; font-weight: 700;
    color: var(--text-title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 44px; }
  .doc-card { padding: 24px 20px; }

  /* 새소식 상세 */
  .article { padding: 0 16px 48px; }
  .article-inner { width: 100%; max-width: 100%; gap: 14px; }
  .a-card { gap: 14px; }
  .a-card > :not(.btn-ws) { margin-left: 6px; margin-right: 6px; }   /* Article Text 좌우 6 — 버튼만 카드 폭 */
  .a-date { font-size: 13px; line-height: 18px; }
  .article-inner h1 { font-size: 24px; }
  .a-period { font-size: 13px; line-height: 16px; }
  .a-period .ico { width: 15px; height: 15px; }
  .img-ph { height: 180px; }
  .img-ph.top-img { height: auto; }
  .a-body { font-size: 15px; }
  .btn-ws { align-self: stretch; justify-content: center; height: 50px; font-size: 18px; line-height: 22px; }
  .share .s-label { font-size: 13px; line-height: 16px; }
  .pn { gap: 12px; padding-top: 28px; }
  .pn-col { max-width: calc(50% - 6px); gap: 12px; }
  .pn-label { font-size: 13px; line-height: 16px; }
  .pn-label .mi { width: 14px; height: 14px; }
  .pn .news-card { height: auto; }
  /* Layout=Compact — 날짜 위, 제목 15, 요약 없음 */
  .pn .news-card .cbody { padding: 12px 14px 16px; gap: 8px; justify-content: flex-start; }
  .pn .news-card .info { gap: 8px; padding-bottom: 0; }
  .pn .news-card .date { order: -1; }
  .pn .news-card h3 { font-size: 15px; line-height: 18px; }

  /* 새소식 목록 — 모바일은 Card 레이아웃(세로) */
  .nl-head { padding: 24px 16px 16px; }
  .nl-head-inner { width: 100%; max-width: 100%; gap: 12px; }
  .nl-title-row h1 { font-size: 24px; line-height: 29px; }
  .filter-panel { position: fixed; top: auto; left: 16px; right: 16px; width: auto; }
  .nl-list-wrap { padding: 0 16px 24px; }
  .nl-list { width: 100%; max-width: 100%; gap: 10px; }
  .news-card.row { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .news-card.row .thumb { width: auto; align-self: stretch; border-radius: 0; font-size: 13px; }
  .news-card.row .cbody { padding: 18px 20px 20px; }
  .news-card.row .info { gap: 12px; padding-bottom: 16px; }
  .news-card.row h3 { font-size: 18px; line-height: 22px; }
  .nl-paging { gap: 6px; padding-bottom: 40px; }
  .nl-paging a { width: 36px; height: 36px; font-size: 15px; line-height: 20px; }
  .nl-paging a.arw { width: 40px; height: 40px; }

  .page-wrap h1 { font-size: 24px; }
  .sub-head { margin: 0 -12px; }
  .article .sub-head { margin-bottom: 10px; }   /* 서브헤더 아래 24 = 10 + 목록 간격 14 */
  .doc-page .sub-head { margin-bottom: 8px; }   /* 24 = 8 + 16 */
  .doc-page { width: 100%; max-width: 100%; padding: 0 16px 56px; }
  .doc-page.legal-page { width: 100%; max-width: 100%; }
  .doc-page .doc-card .lg-title { display: none; }   /* 모바일은 서브헤더가 제목 */
  .doc-page .doc-card .lg-meta { font-size: 13px; line-height: 16px; }
  .doc-page .doc-card h2.lg-h { font-size: 17px; line-height: 20px; }
  .doc-page .doc-card .lg-p, .doc-page .doc-card .lg-ul li { font-size: 15px; }

  /* 404 — 위쪽 정렬 */
  .err-wrap { min-height: calc(100vh - 56px); justify-content: flex-start; padding: 40px 16px; }
  .err-wrap .err-illust { width: 300px; }
  .err-wrap h1 { font-size: 20px; line-height: 24px; }
  .err-wrap p { font-size: 15px; line-height: 18px; }
  .btn-primary { height: 50px; font-size: 18px; }
  /* 점검 — 위쪽 정렬 */
  .maint-page { align-items: flex-start; background-image: url("../assets/img/bx/page_deco_m.svg"); background-size: 360px auto; }
  .maint-page .box { gap: var(--card-pad-m); padding: 40px 16px; }
  .maint-page .m-illust { width: 300px; }
  .maint-page .m-text { gap: var(--list-gap-m); }
  .maint-page h1 { font-size: 20px; line-height: 24px; }
  .maint-page p { font-size: 15px; line-height: 18px; }
  .maint-page .m-time { font-size: 13px; line-height: 18px; }
  /* 고객지원 — 상단바 56, 본문 위쪽 정렬 */
  .sup-page { background-image: url("../assets/img/bx/page_deco_m.svg"); background-size: 360px auto; background-position: right 56px; }
  .sup-bar { height: 56px; gap: 10px; padding: 0 8px 0 16px; }
  .sup-bar .sup-title { font-size: 16px; line-height: 19px; }
  .sup-main { justify-content: flex-start; padding: 40px 16px; }
  .status-panel { padding: 40px 24px; }

  /* 다운로드 CTA 띠 — 세로 쌓기 */
  .cta-band { flex-direction: column; gap: 8px; padding: 48px 16px;
    background: url("../assets/img/bx/cta_tile_m.svg") center top / 336px 422px repeat-x,
      radial-gradient(180px 498px at 50% 50%, #85CEFF, #8DD7FF) #8DD7FF; }
  .cta-band .cb-icon { width: 112px; height: 112px; margin-bottom: 8px; }
  .cta-band .cb-copy { align-items: center; text-align: center; }
  .cta-band .cb-tag { font-size: 15px; line-height: 18px; }
  .cta-band .cb-title { --o: 1px; --d: .71px; font-size: 30px; line-height: 36px;
    text-shadow: var(--o) 0 0 #0A0F2C, calc(var(--o) * -1) 0 0 #0A0F2C, 0 var(--o) 0 #0A0F2C, 0 calc(var(--o) * -1) 0 #0A0F2C,
      var(--d) var(--d) 0 #0A0F2C, calc(var(--d) * -1) var(--d) 0 #0A0F2C, var(--d) calc(var(--d) * -1) 0 #0A0F2C, calc(var(--d) * -1) calc(var(--d) * -1) 0 #0A0F2C,
      0 calc(var(--o) + 1.5px) 0 #0A0F2C, var(--d) calc(var(--d) + 1.5px) 0 #0A0F2C, calc(var(--d) * -1) calc(var(--d) + 1.5px) 0 #0A0F2C; }
  .cta-band .badges { --badge-h: 48px; flex-direction: column; padding-top: 12px; gap: 12px; }
}

/* ── 카드 그룹: 궤적·드래곤·잎이 카드에 종속 (피그마 Card Group과 1:1) ──
   좌표는 카드 폭 기준. left/width 는 %, top/height 는 cqw(카드 폭의 1%)라
   카드가 줄면 궤적도 가로·세로 같은 비율로 함께 줄어든다. */
.card-group { align-self: stretch; position: relative; container-type: inline-size;
  display: flex; flex-direction: column; align-items: center; }
/* 그리기 순서 역전 — 장식(궤적·드래곤)이 위쪽 카드를 침범해도 항상 그 카드 "뒤"로 지나가게.
   위 카드일수록 높은 z. 코스튬 카드(그룹 없음)도 사이 값으로 편입 */
.cg-lore { z-index: 7; }
.cg-raid { z-index: 6; }
.game-info > .feat-card { z-index: 5; }
.cg-wanted { z-index: 4; }
.cg-dispatch { z-index: 3; }
.cg-tower { z-index: 2; }
.card-group > .lore-card,
.card-group > .feat-card,
.card-group > .split-card { position: relative; z-index: 2; }
.card-group > .trail { z-index: 0; max-width: none; }   /* 전역 img max-width:100% 무효화 */
.card-group > .trail-dragon { z-index: 1; transform-origin: 0 0; }
.card-group > .leaf { z-index: 3; }

.cg-lore .lf-sharp { left: 31.875%; top: 10.938cqw; width: 2.917%; height: 3.125cqw; }
.cg-lore .lf-blur { left: 91.927%; top: 9.792cqw; width: 11.979%; height: 10cqw; }
.cg-raid .t1 { left: -3.125%; top: -17.865cqw; width: 106.25%; }
.cg-raid .d1 { left: 3.385%; top: -16.823cqw; width: 5%; height: 5cqw; transform: rotate(10deg); }
.cg-wanted .t2 { left: -3.125%; top: -18.646cqw; width: 106.25%; }
.cg-wanted .d2 { left: 90%; top: .417cqw; width: 6.585%; height: 6.585cqw; transform: rotate(33.68deg); }
.cg-dispatch .t3 { left: -3.125%; top: .469cqw; width: 106.25%; }
.cg-tower .t4 { left: -3.125%; top: 14.427cqw; width: 106.25%; }
.cg-tower .d3 { left: 36.354%; top: 19.844cqw; width: 5%; height: 5cqw; transform: rotate(-2.93deg); }

/* 부유 드래곤 — f02는 밴드(1920) 기준, f03은 흑화단의 탑 카드 그룹 기준(콘텐츠를 따라다님) */
.float-dragon.f02 { left: 81.25%; top: -8.594cqw; width: 15.625%; }
/* 돼지 — 카드 하단에 px 고정: 폭이 바뀌어도 항상 카드 바로 아래 */
.cg-tower .f03 { left: 70px; top: calc(100% + 16px); width: 270px; }

@media (max-width: 768px) {
  /* 모바일 장식은 시안(360) px 값으로 전부 고정 — 세로 위치는 카드 기준,
     폭이 변해도 미끄러지지 않는다 */
  .cg-lore .lf-sharp { left: 2px; top: 154px; width: 36px; height: 39px; }
  .cg-lore .lf-blur { left: 290px; top: 94px; width: 110px; height: 92px; }
  .cg-raid .t1 { left: -40px; top: -174px; width: 440px; content: url("../assets/img/trail/m1.svg"); }
  .cg-raid .d1 { left: 130px; top: -188px; width: 56px; height: 56px; transform: rotate(8deg); }
  .cg-wanted .t2 { left: -30px; top: -93px; width: 440px; content: url("../assets/img/trail/m2.svg"); }
  .cg-wanted .d2 { left: 162px; top: -109px; width: 56px; height: 56px; transform: rotate(-10deg); }
  .cg-dispatch .t3 { display: none; }
  .cg-tower .t4 { left: -20px; top: calc(100% + 6px); width: 430px; content: url("../assets/img/trail/m3.svg"); }
  .cg-tower .d3 { left: 167px; top: calc(100% + 30px); width: 56px; height: 56px; transform: rotate(6deg); }
  .float-dragon.f02 { left: 266px; top: -71px; width: 130px; }
  .cg-tower .f03 { left: -19px; top: calc(100% + 12px); width: 118px; }
}

@media (max-width: 768px) {
  .hero-media .hero-logo { order: -1; }
}
