/* =========================================================
   THE MAZE 홈페이지 — site.css
   맨 위 :root 는 게임의 css/style.css 토큰을 그대로 복사한 것입니다.
   게임 쪽 색 · 글자 크기를 바꾸면 이 블록도 같이 바꿔 주세요.
   ========================================================= */
:root {
  /* v51: 아이콘 크기 4단계 (게임과 같은 값) */
  --ico-sm: 16px; --ico-md: 20px; --ico-lg: 24px; --ico-xl: 32px;
  /* v51: 버튼 크기 3단계 (게임과 같은 값) */
  --btn-h-sm: 36px; --btn-h: 46px; --btn-h-lg: 52px; --btn-w: 140px;

  color-scheme: dark;

  /* 색 */
  --ink: #e9e6df;          /* 기본 글자 */
  --ink-dim: #a29f98;      /* 보조 글자 */
  --ink-faint: #6f6c66;    /* 힌트, 영문 장식 */
  --line: rgba(var(--ink-rgb), .16);
  --line-strong: rgba(var(--ink-rgb), .5);
  --panel: rgba(var(--bg-1-rgb), .7);
  --field: rgba(var(--bg-0-rgb), .5);
  --danger: var(--red-light);
  --ok: var(--green-light);

  /* ---------- 디자인 토큰 (색 · 글자) — 여기 값만 바꾸면 게임 전체가 같이 바뀝니다 ---------- */
  /* 글자색 단계: 가장 밝은 → 가장 흐린 */
  --ink-hi: #f2efe8;   --ink-hi-rgb: 242,239,232;   --ink-rgb: 233,230,223;

  /* 브랜드 붉은색 (= 메드잭) */
  --red: #c0544a;        --red-rgb: 192,84,74;
  --red-deep: #8a2e25;   --red-deep-rgb: 138,46,37;
  --red-light: #d98b7f;  --red-light-rgb: 217,139,127;

  /* 포지션 대표색 — DB positions.accent 와 같은 값. 게임 안의 같은 계열 색은 모두 여기서 나옵니다 */
  --pos-runner: var(--gold-light); --pos-runner-rgb: var(--gold-light-rgb);     /* 러너 · 노랑 (금색 계열 전부) */
  --pos-builder: var(--teal-light); --pos-builder-rgb: var(--teal-light-rgb);    /* 빌더 · 청록 (공사 계열) */
  --pos-medjack: var(--red); --pos-medjack-rgb: var(--red-rgb);    /* 메드잭 · 붉은색 (브랜드색) */
  --pos-harvester: var(--green-light); --pos-harvester-rgb: var(--green-light-rgb);  /* 하베스터 · 초록 (식량 · 성공 계열) */
  --pos-slicer: var(--violet); --pos-slicer-rgb: var(--violet-rgb);     /* 슬라이서 · 회청 (집회 계열) */

  --gold: var(--pos-runner);  --gold-rgb: 201,162,74;
  --gold-light: #dfc792;      --gold-light-rgb: 223,199,146;
/* 종이 위 금색 글씨 */
  --teal: var(--pos-builder); --teal-rgb: 74,163,163;
  --teal-light: #92c8c8;
  --green: var(--pos-harvester); --green-rgb: 127,159,95;
  --green-light: #b2c59f;     --green-light-rgb: 178,197,159;
  --violet: var(--pos-slicer); --violet-rgb: 139,147,173;
/* 정신력 게이지 */
/* 짝 · 관계 */

  /* 도감 · 편지 종이 위 글씨 */
  --paper-ink: #2b231a;  --paper-ink-rgb: 43,35,26;
  --paper-ink-2: #4a3d2c;

  /* ============ 글자 체계 (v166 · 게임 · 홈페이지 같은 값) ============
     글자 크기는 아래 이름으로만 씁니다. px · em 숫자를 직접 쓰지 않습니다.
     ① 제목      --fs-title     화면 · 창(모달)의 가장 큰 제목
     ② 부제목    --fs-subtitle  창 안 소제목 · 사건 제목 · 상세 이름
     ③ 항목 제목 --fs-item      카드 · 목록 한 줄의 이름
     ④ 본문      --fs-body      기본 글 · 판 · 편지 · 설명 본문
     ⑤ 서브 텍스트 --fs-sub     안내 · 보조 설명 · 작은 버튼 · 탭
     ⑥ 주의사항  --fs-note      주의 · 캡션 · 날짜 · 영문 머리말
     기능용(글 역할 아님): --fs-input 입력칸 · 큰 버튼(16px 미만이면 아이폰 확대) · --fs-badge 숫자 뱃지 · --fs-display 큰 숫자 · 시계
     휴대폰(760px 이하)은 제목 · 부제목만 한 단계 작아집니다. */
  --fs-title: 28.5px;
  --fs-subtitle: 22.5px;
  --fs-item: 17.5px;
  --fs-body: 14.5px;
  --fs-sub: 13.5px;
  --fs-note: 12.5px;
  --fs-input: 16.5px;
  --fs-badge: 11.5px;
  --fs-display: 40.5px;
  /* 연출용 (홈 첫 화면 · 세계관 인트로 · 출석 · 첫 화면 제목처럼 화면 너비에 따라 커지는 큰 글씨) */
  --fs-hero: clamp(44px, 7vw, 88px);
  --fs-hero-sub: clamp(32px, 4.6vw, 56px);
  --fs-hero-item: clamp(24px, 3.2vw, 40px);
  /* 예전 이름 (새 코드에서는 쓰지 않음 — 위 이름으로 바꿔 둠) */
  --fs-h1: var(--fs-title); --fs-h2: var(--fs-subtitle); --fs-h3: var(--fs-item);
  --fs-lg: var(--fs-body); --fs-md: var(--fs-body); --fs-sm: var(--fs-sub); --fs-xs: var(--fs-note);
  --fs-xl: var(--fs-input); --fs-2xs: var(--fs-badge);

  /* 글꼴: 제목 · 본문 모두 프리텐다드 (영상 · 연출 문구만 노토 산스) */
  --font-title: var(--font);
  --font-body: var(--font);

  /* 자간 */
  --ls-ui: 0;           /* 한글 버튼 · 라벨 — 한글(Pretendard)은 자간을 벌리지 않음 */
  --ls-label: 0;        /* 한글 섹션 머리말 */
  --ls-title: -.02em;   /* 큰 제목 */
  --ls-logo: .12em;     /* 영문 대문자 큰 글자 (THE MAZE · TICKET · STEP) */
  --ls-eyebrow: .3em;   /* 영문 대문자 장식 (GATE · EXPLORATION …) */

  /* 행간 */
  --lh-snug: 1.2;       /* 한 줄 숫자 · 짧은 표시 */
  --lh-title: 1.3;      /* 제목 (두 줄 이상) */
  --lh-ui: 1.5;         /* 버튼 · 짧은 줄 */
  --lh-body: 1.6;       /* 기본 */
  --lh-read: 1.8;       /* 길게 읽는 글 */

  /* 글꼴 */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  /* 크기 */
  --field-h: 46px;
  --radius: 6px;
  --radius-lg: 10px;

  /* v167 색 통일: 바탕 · 돌 · 나무 · 종이 단계 (직접 쓰던 색을 모두 여기로 모음) */
  --bg-0: #080908;  --bg-1: #0e0f0e;  --bg-2: #151614;  --bg-3: #1b1c1a;--stone: #4f4c46;--wood: #3a2618;  --paper: #efe3c7;/* 나무 명패 · 바랜 금빛 글씨 */
/* 상태 아이콘 디버프 테두리 */
  /* 모든 색의 rgb 값 (반투명이 필요할 때 rgba(var(--이름-rgb), .5)) */
  --bg-0-rgb: 8,9,8; --bg-1-rgb: 14,15,14; --bg-2-rgb: 21,22,20; --bg-3-rgb: 27,28,26;--danger-rgb: 217,139,127;--ink-dim-rgb: 162,159,152; --ink-faint-rgb: 111,108,102;--ok-rgb: 178,197,159; --paper-rgb: 239,227,199;--paper-ink-2-rgb: 74,61,44;    --stone-rgb: 79,76,70;--teal-light-rgb: 146,200,200;--wood-rgb: 58,38,24;
  /* v177 · v185: 회청 — 정신력 · 슬라이서 · 집회 (= DB positions.accent 슬라이서 #8b93ad).
     ★ v177에서 정신력 보라(#9a8fcb)와 합칠 때 보라 값이 남아 회청 자리가 모두 보라가 됐었음 → 회청으로 되돌림. 보라 쓰지 말 것 */
  --violet: #8b93ad; --violet-rgb: 139,147,173;
}
:root { --wrap: 1200px; --read: 880px; --bar-h: 64px; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }
html, body { margin: 0; }
body {
  font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body);
  color: var(--ink); background: var(--bg-1); -webkit-font-smoothing: antialiased; word-break: keep-all;
  min-height: 100dvh; display: flex; flex-direction: column;
}
body::before { /* 바탕: 아주 옅은 돌 질감 */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% -10%, var(--bg-3) 0%, var(--bg-2) 45%, var(--bg-0) 100%);
}
p, h1, h2, h3, h4 { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: rgba(var(--ink-rgb), .16); }

/* ---------- 상단 바 ---------- */
.bar { position: sticky; top: 0; z-index: 50; height: var(--bar-h); background: rgba(var(--bg-0-rgb), .9); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bar__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 18px; height: 26px; fill: rgba(var(--ink-rgb), .7); }
.brand b { font-size: var(--fs-sub); font-weight: 600; letter-spacing: var(--ls-eyebrow); }
.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav a { position: relative; display: inline-flex; align-items: center; height: var(--bar-h); padding: 0 14px; font-size: var(--fs-body); color: var(--ink-dim); text-decoration: none; transition: color .15s; }
.nav a:hover { color: var(--ink-hi); }
.nav a.is-on { color: var(--ink-hi); font-weight: 600; }
.nav a.is-on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--red); }
.nav a .lock { width: 12px; height: 12px; margin-left: 5px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .55; }
.bar__acts { display: flex; align-items: center; gap: 10px; flex: none; }
.bar__me { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sub); color: var(--ink-dim); }
.bar__me b { color: var(--ink-hi); font-weight: 600; }
.bar__gm { padding: 1px 6px; font-size: var(--fs-badge); font-weight: 700; letter-spacing: var(--ls-label); color: var(--ink-hi); background: var(--red-deep); }
.menu-btn { display: none; width: 40px; height: 40px; place-items: center; padding: 0; background: none; border: 1px solid var(--line); }
.menu-btn svg { width: var(--ico-md); height: var(--ico-md); fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- 버튼 (게임과 같은 3종) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--btn-h); padding: 0 20px; border-radius: var(--radius);
  font-size: var(--fs-input); font-weight: 600; letter-spacing: var(--ls-ui); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: filter .15s, background-color .15s, border-color .15s, box-shadow .15s; }
.btn:disabled { opacity: .5; cursor: default; }
.btn--sm { height: var(--btn-h-sm); padding: 0 14px; font-size: var(--fs-sub); }
.btn--lg { height: var(--btn-h-lg); padding: 0 28px; font-size: var(--fs-input); }
.btn--stone { color: var(--ink-hi); font-weight: 700; border-color: rgba(var(--ink-hi-rgb), .3); text-shadow: 0 1px 2px rgba(var(--bg-0-rgb), .7);
  box-shadow: inset 0 0 0 1px rgba(var(--bg-0-rgb), .3), 0 2px 10px rgba(var(--bg-0-rgb), .5);
  background: url("../assets/btn-stone.jpg") center / cover, radial-gradient(ellipse at 30% 30%, var(--ink-faint) 0%, var(--stone) 60%, var(--stone) 100%); }
.btn--stone:not(:disabled):hover { filter: brightness(1.12); }
.btn--accent { color: var(--ink-hi); font-weight: 700; text-shadow: 0 1px 2px rgba(var(--bg-0-rgb), .7); border-color: rgba(var(--red-rgb), .9);
  box-shadow: inset 0 0 0 1px rgba(var(--bg-0-rgb), .3);
  background: linear-gradient(rgba(var(--red-deep-rgb), .7), rgba(var(--red-deep-rgb), .7)), url("../assets/btn-stone.jpg") center / cover, var(--red-deep); }
.btn--accent:not(:disabled):hover { border-color: var(--red); box-shadow: 0 0 18px rgba(var(--red-rgb), .3), inset 0 0 0 1px rgba(var(--bg-0-rgb), .3); }
.btn--ghost { background: rgba(var(--bg-0-rgb), .3); border-color: var(--line-strong); }
.btn--ghost:not(:disabled):hover { border-color: rgba(var(--ink-rgb), .7); background-color: rgba(var(--ink-rgb), .04); }
/* v49 버튼은 세 가지뿐(돌 · 돌+붉은 막 · 검정+흰 테두리): 삭제 버튼도 강조 버튼과 같은 모양 */
.btn--danger { color: var(--ink-hi); font-weight: 700; text-shadow: 0 1px 2px rgba(var(--bg-0-rgb), .7); border-color: rgba(var(--red-rgb), .9); box-shadow: inset 0 0 0 1px rgba(var(--bg-0-rgb), .3);
  background: linear-gradient(rgba(var(--red-deep-rgb), .7), rgba(var(--red-deep-rgb), .7)), url("../assets/btn-stone.jpg") center / cover, var(--red-deep); }
.btn--danger:not(:disabled):hover { border-color: var(--red); box-shadow: 0 0 18px rgba(var(--red-rgb), .3), inset 0 0 0 1px rgba(var(--bg-0-rgb), .3); }
.btn svg { width: var(--ico-sm); height: var(--ico-sm); fill: none; stroke: currentColor; stroke-width: 1.8; }
.textlink { padding: 0; font-size: var(--fs-sub); color: var(--ink-dim); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.textlink:hover { color: var(--ink-hi); }

/* ---------- 패널 (모서리 꺾쇠) ---------- */
.panel { position: relative; background: var(--panel); border: 1px solid var(--line); }
.panel::before { content: ""; position: absolute; inset: -7px; pointer-events: none; --c: var(--line-strong); --s: 14px;
  background:
    linear-gradient(var(--c) 0 0) top left / var(--s) 1px, linear-gradient(var(--c) 0 0) top left / 1px var(--s),
    linear-gradient(var(--c) 0 0) top right / var(--s) 1px, linear-gradient(var(--c) 0 0) top right / 1px var(--s),
    linear-gradient(var(--c) 0 0) bottom left / var(--s) 1px, linear-gradient(var(--c) 0 0) bottom left / 1px var(--s),
    linear-gradient(var(--c) 0 0) bottom right / var(--s) 1px, linear-gradient(var(--c) 0 0) bottom right / 1px var(--s);
  background-repeat: no-repeat; }
.panel--stone { background: linear-gradient(rgba(14,15,14,.5), rgba(14,15,14,.7)), url("../assets/panel-stone.jpg") center / cover, var(--bg-2); }

/* ---------- 제목: 영문 꼬리표 + 큰 제목 / 섹션 제목 ---------- */
.eyebrow { font-size: var(--fs-sub); color: var(--ink-dim); }
.eyebrow span { margin-right: 8px; font-size: var(--fs-note); letter-spacing: var(--ls-eyebrow); color: var(--red); }
.h1 { font-size: var(--fs-title); font-weight: 700; letter-spacing: var(--ls-title); line-height: var(--lh-title); }
.sec { display: flex; align-items: baseline; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-size: var(--fs-sub); font-weight: 700; letter-spacing: var(--ls-label); color: var(--ink-hi); }
.sec::before { content: "/"; color: var(--red); }
.sec small { font-weight: 400; letter-spacing: 0; color: var(--ink-faint); }
.sec a { margin-left: auto; font-size: var(--fs-note); font-weight: 500; letter-spacing: 0; color: var(--ink-dim); text-decoration: none; }
.sec a:hover { color: var(--ink-hi); }

/* ---------- 메뉴 첫머리 배너 ---------- */
.banner { position: relative; height: 240px; display: grid; align-items: end; overflow: hidden; border-bottom: 0.5px solid var(--line);
  background-color: var(--bg-2); background-position: center; background-size: cover; background-repeat: no-repeat; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--bg-0-rgb), .9) 0%, rgba(var(--bg-0-rgb), .5) 45%, rgba(var(--bg-0-rgb), .16) 100%),
  linear-gradient(0deg, rgba(var(--bg-0-rgb), .9), transparent 55%); }
.banner__in { position: relative; z-index: 1; display: grid; gap: 10px; padding-bottom: 32px; }
.banner__lead { max-width: 560px; font-size: var(--fs-body); color: var(--ink-dim); }

main { flex: 1; }
.page { padding: 40px 0 80px; }

/* ---------- 탭 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; background: rgba(var(--bg-0-rgb), .3); border: 1px solid var(--line); }
.tab { height: 38px; padding: 0 16px; font-size: var(--fs-sub); color: var(--ink-faint); background: none; border: 0; text-decoration: none; display: inline-flex; align-items: center; }
.tab:hover { color: var(--ink-dim); }
.tab.is-on { color: var(--ink-hi); background: rgba(var(--ink-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .16); }

/* ---------- 목록 줄 (게임 알림과 같은 모양) ---------- */
.rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 14px 16px;
  color: var(--ink); text-decoration: none; background: rgba(var(--ink-hi-rgb), .04); border: 1px solid var(--line); transition: border-color .15s, background-color .15s; }
a.row:hover { border-color: var(--line-strong); background: rgba(var(--ink-rgb), .04); }
.row.is-pin { border-left: 3px solid var(--red); }
.row__tag { align-self: start; padding: 2px 8px; font-size: var(--fs-note); color: var(--red-light); border: 1px solid rgba(var(--red-rgb), .5); white-space: nowrap; }
.row__tag--event { color: var(--gold-light); border-color: rgba(var(--gold-light-rgb), .5); }
.row__tag--check { color: var(--teal-light); border-color: rgba(var(--teal-rgb), .5); }
.row__main { display: grid; gap: 3px; min-width: 0; }
.row__title { font-size: var(--fs-body); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__sum { font-size: var(--fs-sub); color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__date { font-size: var(--fs-note); color: var(--ink-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; margin-left: 8px; font-size: var(--fs-badge); font-weight: 600; vertical-align: 2px;
  color: var(--ink-dim); border: 1px solid var(--line-strong); }
.badge--red { color: var(--red-light); border-color: rgba(var(--red-rgb), .5); }
.badge--gold { color: var(--gold-light); border-color: rgba(var(--gold-rgb), .5); }
.badge--teal { color: var(--teal-light); border-color: rgba(var(--teal-rgb), .5); }
.badge--green { color: var(--green-light); border-color: rgba(var(--green-rgb), .5); }
.badge--mute { color: var(--ink-faint); }
.empty { padding: 28px 16px; text-align: center; font-size: var(--fs-sub); color: var(--ink-faint); border: 1px dashed var(--line); }

/* 쪽 넘김 */
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 22px; font-size: var(--fs-sub); color: var(--ink-dim); }
.pager button { width: 36px; height: 36px; background: none; border: 1px solid var(--line); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager button:not(:disabled):hover { border-color: var(--line-strong); }

/* 회원 전용 안내 */
.lockbox { display: grid; justify-items: center; gap: 12px; padding: 48px 20px; text-align: center; border: 1px dashed rgba(var(--gold-rgb), .5); background: rgba(var(--gold-rgb), .04); }
.lockbox svg { width: var(--ico-xl); height: var(--ico-xl); fill: none; stroke: var(--gold-light); stroke-width: 1.5; }
.lockbox b { font-size: var(--fs-item); }
.lockbox p { font-size: var(--fs-sub); color: var(--ink-dim); }
.hint { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: var(--fs-sub); color: var(--ink-faint); }
.hint svg { width: var(--ico-sm); height: var(--ico-sm); fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- 홈: 맨 위 슬라이드 ---------- */
.hero { position: relative; height: min(78vh, 720px); min-height: 460px; overflow: hidden; border-bottom: 0.5px solid var(--line); background: var(--bg-0); }
.hero__slide { position: absolute; inset: 0; display: grid; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s;
  background: var(--bg) center 40% / cover no-repeat, var(--bg-0); }
.hero__slide.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease; z-index: 1; }
.hero__slide::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, rgba(var(--bg-0-rgb), .16), rgba(var(--bg-0-rgb), .7) 75%), linear-gradient(0deg, var(--bg-1), transparent 38%); }
.hero__hit { position: absolute; inset: 0; z-index: 1; }
.hero__in { position: relative; z-index: 2; display: grid; gap: 22px; padding: 80px 0; pointer-events: none; }
.hero__in a, .hero__in button { pointer-events: auto; }
.hero__eyebrow { font-size: var(--fs-note); letter-spacing: var(--ls-eyebrow); color: var(--red); }
.hero__title { font-size: var(--fs-hero); font-weight: 800; letter-spacing: var(--ls-logo); line-height: 1; color: var(--ink-hi); }
.hero__title.is-long { font-size: var(--fs-hero-sub); letter-spacing: var(--ls-title); line-height: var(--lh-title); }
.hero__lead { max-width: 560px; font-size: var(--fs-body); line-height: var(--lh-read); color: var(--ink); }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__nav { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; display: grid; place-items: center; transform: translateY(-50%);
  font-size: var(--fs-title); line-height: 1; color: var(--ink-hi); background: rgba(var(--bg-0-rgb), .5); border: 1px solid var(--line-strong); transition: background-color .15s, border-color .15s; }
.hero__nav:hover { background: rgba(var(--bg-0-rgb), .7); border-color: rgba(var(--ink-rgb), .7); }
.hero__nav--prev { left: 20px; } .hero__nav--next { right: 20px; }
.hero__dots { position: absolute; left: 50%; bottom: 22px; z-index: 3; display: flex; gap: 8px; transform: translateX(-50%); }
.hero__dots button { width: 28px; height: 3px; padding: 0; background: rgba(var(--ink-rgb), .3); border: 0; }
.hero__dots button.is-on { background: var(--red); }
.home { display: grid; gap: 56px; padding: 56px 0 88px; }
.home__two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.home__block { display: grid; gap: 14px; align-content: start; }
.lorecards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lorecard { position: relative; aspect-ratio: 4 / 5; display: grid; align-content: end; gap: 4px; padding: 18px; overflow: hidden; text-decoration: none;
  border: 1px solid var(--line); background-color: var(--bg-2); background-position: center; background-size: cover; background-repeat: no-repeat; transition: border-color .2s, transform .2s; }
.lorecard::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--bg-0-rgb), .9) 0%, rgba(var(--bg-0-rgb), .16) 60%, transparent); transition: opacity .2s; }
.lorecard > * { position: relative; }
.lorecard small { font-size: var(--fs-note); letter-spacing: var(--ls-eyebrow); color: var(--red-light); }
.lorecard b { font-size: var(--fs-item); }
.lorecard span { font-size: var(--fs-sub); color: var(--ink-dim); }
.lorecard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.supportband { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; }
.supportband b { display: block; font-size: var(--fs-item); margin-bottom: 4px; }
.supportband p { font-size: var(--fs-sub); color: var(--ink-dim); }

/* ---------- 문서형 (세계관 · 시스템) ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--bar-h) + 24px); display: grid; gap: 18px; max-height: calc(100dvh - var(--bar-h) - 48px); overflow: auto; padding-right: 4px; }
.toc__group { display: grid; gap: 2px; }
.toc__cat { margin-bottom: 4px; font-size: var(--fs-note); font-weight: 700; letter-spacing: var(--ls-label); color: var(--ink-faint); }
.toc a { display: flex; align-items: center; gap: 6px; padding: 7px 10px; font-size: var(--fs-sub); color: var(--ink-dim); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink-hi); background: rgba(var(--ink-rgb), .04); }
.toc a.is-on { color: var(--ink-hi); font-weight: 600; border-left-color: var(--red); background: linear-gradient(90deg, rgba(var(--red-rgb), .16), transparent); }
.toc a.is-main { font-weight: 600; color: var(--ink-hi); }
.toc details summary { display: none; }
.toc details > div { display: grid; gap: 18px; }
.toc__cat { padding-left: 12px; }
.docs__body { min-width: 0; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: var(--read); margin: 48px auto 0; }
.prevnext a { display: grid; gap: 2px; padding: 14px 16px; text-decoration: none; border: 1px solid var(--line); }
.prevnext a:hover { border-color: var(--line-strong); }
.prevnext small { font-size: var(--fs-note); color: var(--ink-faint); }
.prevnext b { font-size: var(--fs-body); font-weight: 600; }
.prevnext a:last-child { text-align: right; }

/* ---------- 글 ---------- */
.article { max-width: var(--read); margin-inline: auto; }
.article__head { display: grid; gap: 12px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-sub); color: var(--ink-faint); }
.article__meta .row__tag { align-self: center; }
.article__sum { font-size: var(--fs-body); color: var(--ink-dim); line-height: var(--lh-read); }
.article__cover { margin: 0 0 26px; border: 1px solid var(--line); }
.article__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--fs-sub); color: var(--ink-faint); }
.article__foot .by { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
.article__foot .by b { color: var(--ink); font-weight: 600; }
.article__foot .by i { width: 26px; height: 26px; display: grid; place-items: center; font-style: normal; font-size: var(--fs-badge); font-weight: 700; color: var(--ink-hi); background: var(--red-deep); }

/* 본문 글자 스타일 (에디터로 쓴 글) */
.prose { font-size: var(--fs-body); line-height: var(--lh-read); color: var(--ink); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: var(--fs-subtitle); font-weight: 700; color: var(--ink-hi); line-height: var(--lh-title); }
.prose h3 { margin-top: 1.6em; font-size: var(--fs-item); font-weight: 700; color: var(--ink-hi); display: flex; gap: 8px; }
.prose h3::before { content: "/"; color: var(--red); }
.prose h4 { font-size: var(--fs-body); font-weight: 700; color: var(--ink-hi); }
.prose strong, .prose b { color: var(--ink-hi); }
/* 글씨색을 바꾼 부분은 굵게 해도 그 색 유지 */
.prose [style^="color"] strong, .prose [style^="color"] b, .prose strong [style^="color"], .prose .pen-red strong, .prose a strong { color: inherit; }
.prose h2, .prose h3 { scroll-margin-top: calc(var(--bar-h) + 24px); }
/* 목차 */
.prose .toc-auto { padding: 16px 20px 18px; background: rgba(var(--bg-0-rgb), .16); border: 1px solid var(--line); border-left: 3px solid var(--red); }
.prose .toc-auto__h { margin: 0 0 8px; font-size: var(--fs-sub); font-weight: 700; letter-spacing: var(--ls-label); color: var(--ink-hi); }
.prose .toc-auto__h::before { content: "/"; margin-right: 8px; color: var(--red); }
.prose .toc-auto ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.prose .toc-auto li { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); }
.prose .toc-auto li + li { margin-top: 4px; }
.prose .toc-auto__h2 { counter-increment: toc; }
.prose .toc-auto__h2::before { content: counter(toc, decimal-leading-zero); display: inline-block; width: 2.2em; font-size: var(--fs-note); color: var(--red-light); letter-spacing: var(--ls-ui); }
.prose .toc-auto__h3 { padding-left: 2.2em; }
.prose .toc-auto__h3::before { content: "– "; color: var(--ink-faint); }
.prose .toc-auto a { color: var(--ink); text-decoration: none; }
.prose .toc-auto a:hover { color: var(--ink-hi); text-decoration: underline; text-underline-offset: 3px; }
.ed .toc-edit { padding: 14px 18px; border: 1px dashed rgba(var(--red-rgb), .7); border-left: 3px solid var(--red); background: rgba(var(--red-rgb), .04); font-size: var(--fs-sub); color: var(--ink-dim); }
.ed .toc-edit b { margin-right: 8px; color: var(--ink-hi); }
.prose a { color: var(--gold-light); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--red-light); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 18px; color: var(--ink-dim); border-left: 3px solid var(--red-deep); font-style: italic; }
.prose hr { border: 0; height: 1px; margin: 2em 0; background: var(--line); }
.prose hr[class*="hr-"], .prose .ck-horizontal-line[class*="hr-"] hr { height: 0; background: none; border: 0; border-top: 1px solid var(--line-strong); }
.prose hr.hr-mid, .prose .hr-mid hr { border-top-width: 2px; }
.prose hr.hr-thick, .prose .hr-thick hr { border-top-width: 4px; }
.prose hr.hr-dotted, .prose .hr-dotted hr { border-top: 2px dotted var(--line-strong); }
.prose hr.hr-dashed, .prose .hr-dashed hr { border-top: 2px dashed var(--line-strong); }
.prose hr.hr-double, .prose .hr-double hr { border-top: 4px double var(--line-strong); }
.prose hr.hr-red, .prose .hr-red hr { border-top: 2px solid var(--red); }
.prose img { height: auto; margin-inline: auto; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.prose figure.table { display: table; width: 100%; margin: 1.4em 0; max-width: 100%; }
.prose figure.table[style*="float:none"], .prose figure.table[style*="float: none"] { margin-inline: auto; }
.prose figure.table[style*="float:right"], .prose figure.table[style*="float: right"] { float: right; }
.prose figure.table > table { border: 1px solid var(--stone); }
.prose figure.table td, .prose figure.table th { border: 1px solid var(--stone); }
.prose figure.table th { background: rgba(var(--ink-rgb), .04); }
.prose figure.table > table { width: 100%; height: 100%; }
.prose figure.table[style*="float:right"], .prose figure.table[style*="float: right"] { margin-left: 1.5em; }
.prose figure.table[style*="float:left"], .prose figure.table[style*="float: left"] { margin-right: 1.5em; }
.prose figure.table > figcaption, .prose figure.image > figcaption { caption-side: bottom; padding: 8px 0 0; font-size: var(--fs-sub); color: var(--ink-dim); text-align: center; }
.prose figure.table > figcaption { display: table-caption; }
.prose figure.image { display: table; margin: 1.4em auto; max-width: 100%; }
.prose figure.image img { display: block; width: 100%; }
.prose figure.image.image-style-side { float: right; margin: 0 0 1em 1.5em; max-width: 50%; }
.prose .image-inline { display: inline-flex; max-width: 100%; vertical-align: middle; }
.prose .image-inline img { border: 0; }
.prose .image_resized { max-width: 100%; }
.prose .text-tiny { font-size: var(--fs-note); }
.prose .text-small { font-size: var(--fs-body); }
.prose .text-big { font-size: var(--fs-item); }
.prose .text-huge { font-size: var(--fs-subtitle); line-height: var(--lh-title); }
/* 형광펜 · 글씨 배경색: 위아래로 여유를 줘서 글자에 붙지 않게 */
.prose mark, .prose span[style*="background-color"] { color: inherit; padding: .2em .3em; line-height: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose .marker-red { background: rgba(var(--red-rgb), .3); }
.prose .marker-gold { background: rgba(var(--gold-rgb), .3); }
.prose .marker-teal { background: rgba(var(--teal-rgb), .3); }
.prose .pen-red { background: transparent; color: var(--red-light); }
.prose .media { margin: 1.4em 0; }
.prose .media iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose [style*="text-align:center"] img, .prose [style*="text-align: center"] img { margin-inline: auto; }
.prose::after { content: ""; display: block; clear: both; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { font-size: var(--fs-sub); font-weight: 700; letter-spacing: var(--ls-ui); color: var(--ink-hi); border-bottom-color: var(--line-strong); }
.prose code { padding: 1px 6px; font-size: var(--fs-sub); background: rgba(var(--ink-rgb), .08); }
.prose pre { padding: 14px 16px; overflow: auto; background: rgba(var(--bg-0-rgb), .3); border: 1px solid var(--line); }
/* 안내 상자 · 접기 (글쓰기에서 '안내 상자' · '접기' 버튼으로 넣음) */
.prose .box { padding: 16px 18px; background: rgba(var(--red-rgb), .08); border: 1px solid rgba(var(--red-rgb), .3); border-left: 3px solid var(--red); }
.prose details { padding: 0 16px; border: 1px solid var(--line); background: rgba(var(--bg-0-rgb), .16); }
.prose details summary { padding: 12px 0; cursor: pointer; font-weight: 600; color: var(--ink-hi); }
.prose details[open] { padding-bottom: 14px; }

/* ---------- 업데이트 연대기 ---------- */
.timeline { position: relative; display: grid; gap: 18px; margin: 0; padding: 0 0 0 28px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: -26px; top: 22px; width: 11px; height: 11px; transform: rotate(45deg); background: var(--bg-1); border: 1px solid var(--gold); }
.tl:first-child::before { background: var(--gold); box-shadow: 0 0 10px rgba(var(--gold-rgb), .7); }
.tl a { display: grid; gap: 8px; padding: 16px 18px; text-decoration: none; border: 1px solid var(--line); background: rgba(var(--ink-hi-rgb), .04); transition: border-color .15s; }
.tl a:hover { border-color: var(--line-strong); }
.tl__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.tl__ver { font-size: var(--fs-sub); font-weight: 700; letter-spacing: var(--ls-ui); color: var(--gold-light); }
.tl__title { font-size: var(--fs-item); font-weight: 700; }
.tl__date { margin-left: auto; font-size: var(--fs-note); color: var(--ink-faint); }
.tl__counts { display: flex; flex-wrap: wrap; gap: 6px; }
.tl__counts .badge { margin: 0; }
.changes { display: grid; gap: 18px; margin-top: 8px; }
.changes h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: var(--fs-body); }
.changes ul { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: var(--fs-body); color: var(--ink); }

/* ---------- FAQ 아코디언 ---------- */
.faq { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.faq__q { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 18px; text-align: left; font-size: var(--fs-body); font-weight: 600;
  background: rgba(var(--ink-hi-rgb), .04); border: 1px solid var(--line); transition: border-color .15s; }
.faq__q:hover { border-color: var(--line-strong); }
.faq__q i { font-style: normal; font-weight: 800; color: var(--red); }
.faq__q svg { margin-left: auto; width: var(--ico-md); height: var(--ico-md); fill: none; stroke: currentColor; stroke-width: 1.8; opacity: .6; transition: transform .25s; flex: none; }
.faq li.is-open .faq__q { border-color: var(--line-strong); }
.faq li.is-open .faq__q svg { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq__a > div { overflow: hidden; }
.faq li.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a .prose { padding: 16px 18px 18px 46px; font-size: var(--fs-body); border: 1px solid var(--line); border-top: 0; background: rgba(var(--bg-0-rgb), .16); }
.search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: var(--field); border: 1px solid var(--line); }
.search svg { width: var(--ico-md); height: var(--ico-md); fill: none; stroke: var(--ink-dim); stroke-width: 1.6; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: var(--fs-input); }

/* ---------- 폼 ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 8px; }
.form__row > label, .form__label { font-size: var(--fs-sub); font-weight: 600; color: var(--ink); }
.form__row small { font-size: var(--fs-note); color: var(--ink-faint); }
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; align-items: center; min-width: 0; min-height: var(--field-h); background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s; }
.field:focus-within { border-color: var(--line-strong); }
.field input, .field select, .field textarea { flex: 1; min-width: 0; width: 100%; padding: 0 14px; background: none; border: 0; outline: 0; font-size: var(--fs-input); color: var(--ink); }
.field input, .field select { height: calc(var(--field-h) - 2px); }
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a29f98' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; padding-right: 36px; }
.field select option { color: var(--bg-2); }
.field textarea { min-height: 160px; padding: 12px 14px; resize: vertical; line-height: var(--lh-body); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sub); color: var(--ink); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--red); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; font-size: var(--fs-sub); border: 1px solid var(--line); background: rgba(var(--bg-0-rgb), .3); transition: border-color .15s, background-color .15s; }
.choice input:checked + span { color: var(--ink-hi); border-color: rgba(var(--red-light-rgb), .7); background: rgba(var(--red-rgb), .16); }
.choice:hover span { border-color: var(--line-strong); }
.form__msg { min-height: 1.2em; font-size: var(--fs-sub); color: var(--red-light); }
.form__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.form__acts .btn { min-width: var(--btn-w); }   /* v51: 창 바닥 버튼 최소 너비 (게임과 같음) */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs figure { position: relative; margin: 0; width: 96px; height: 96px; border: 1px solid var(--line); background: var(--bg-0); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; padding: 0; font-size: var(--fs-body); line-height: 1; color: var(--ink-hi); background: rgba(var(--bg-0-rgb), .7); border: 0; }
.thumbs a img { cursor: zoom-in; }

/* ---------- 문의 ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; font-size: var(--fs-note); font-weight: 600; white-space: nowrap; border: 1px solid; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st--new { color: var(--red-light); border-color: rgba(var(--red-rgb), .5); }
.st--checking { color: var(--gold-light); border-color: rgba(var(--gold-rgb), .5); }
.st--answered { color: var(--teal-light); border-color: rgba(var(--teal-rgb), .5); }
.st--done { color: var(--green-light); border-color: rgba(var(--green-rgb), .5); }
.tk__who { font-size: var(--fs-note); color: var(--ink-faint); }
.thread { display: grid; gap: 12px; margin-top: 28px; }
.msg { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); background: rgba(var(--ink-hi-rgb), .04); }
.msg--staff { border-color: rgba(var(--red-rgb), .5); background: rgba(var(--red-deep-rgb), .08); }
.msg__head { display: flex; align-items: center; gap: 8px; font-size: var(--fs-note); color: var(--ink-faint); }
.msg__head b { font-size: var(--fs-sub); color: var(--ink-hi); }
.msg p { white-space: pre-wrap; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; margin: 14px 0 0; font-size: var(--fs-sub); }
.kv dt { color: var(--ink-faint); } .kv dd { margin: 0; color: var(--ink); }
.gmbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: var(--fs-sub); border: 1px dashed rgba(var(--red-rgb), .5); background: rgba(var(--red-deep-rgb), .08); }
.gmbar b { color: var(--red-light); letter-spacing: var(--ls-label); font-size: var(--fs-note); }

/* ---------- 머리 줄 (제목 + 오른쪽 버튼) ---------- */
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }

/* ---------- 로그인 창 ---------- */
.dlg { padding: 0; color: var(--ink); background: none; border: 0; }
.dlg::backdrop { background: rgba(var(--bg-0-rgb), .7); backdrop-filter: blur(2px); }
.dlg__in { display: grid; gap: 18px; padding: 32px 30px 26px; }
.dlg__x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; background: none; border: 0; color: var(--ink-dim); }
.dlg__x svg { width: var(--ico-md); height: var(--ico-md); fill: none; stroke: currentColor; stroke-width: 1.6; }
.dlg__x:hover { color: var(--ink-hi); }

/* ---------- 글쓰기 ---------- */
.write { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.write__side { position: sticky; top: calc(var(--bar-h) + 20px); display: grid; gap: 16px; padding: 20px; }
.chgrid { display: grid; gap: 12px; }
.ed { border: 1px solid var(--line); }
/* CKEditor 어두운 화면 */
.ed { --ck-color-base-background: var(--bg-1); --ck-color-base-foreground: var(--bg-3); --ck-color-base-border: var(--line); --ck-color-base-text: var(--ink);
  --ck-color-text: var(--ink); --ck-color-toolbar-background: var(--bg-2); --ck-color-toolbar-border: var(--line);
  --ck-color-button-default-hover-background: rgba(var(--ink-rgb), .08); --ck-color-button-default-active-background: rgba(var(--ink-rgb), .08);
  --ck-color-button-on-background: rgba(var(--red-rgb), .16); --ck-color-button-on-hover-background: rgba(var(--red-rgb), .3); --ck-color-button-on-color: var(--ink-hi);
  --ck-color-dropdown-panel-background: var(--bg-3); --ck-color-dropdown-panel-border: var(--line); --ck-color-panel-background: var(--bg-3); --ck-color-panel-border: var(--line);
  --ck-color-input-background: var(--bg-1); --ck-color-input-border: var(--line); --ck-color-input-text: var(--ink);
  --ck-color-list-background: var(--bg-3); --ck-color-list-button-hover-background: rgba(var(--ink-rgb), .08); --ck-color-list-button-on-background: rgba(var(--red-rgb), .3); --ck-color-list-button-on-text: var(--ink-hi);
  --ck-color-labeled-field-label-background: var(--bg-3); --ck-color-focus-border: var(--red-light); --ck-color-shadow-inner: transparent; --ck-color-shadow-drop: rgba(var(--bg-0-rgb), .5);
  --ck-color-tooltip-background: var(--bg-0); --ck-color-split-button-hover-background: rgba(var(--ink-rgb), .08); --ck-focus-ring: 1px solid var(--red-light);
  --ck-color-widget-type-around-button-active: var(--red); --ck-color-focus-outer-shadow: rgba(var(--red-rgb), .3);
  --ck-color-table-focused-cell-background: rgba(var(--red-rgb), .08); --ck-color-image-caption-background: transparent; --ck-color-image-caption-text: var(--ink-dim);
  --ck-font-face: var(--font); --ck-font-size-base: 13px; --ck-border-radius: 0; }
.ed .ck.ck-editor__main > .ck-editor__editable { min-height: 520px; max-height: 75vh; padding: 20px 26px; background: rgba(var(--bg-0-rgb), .7); }
.ed .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content { border: 0; border-bottom: 1px solid var(--line); }
.ck.ck-balloon-panel { --ck-color-panel-background: var(--bg-3); --ck-color-panel-border: var(--line); }
.ck-body-wrapper { --ck-color-base-background: var(--bg-1); --ck-color-base-foreground: var(--bg-3); --ck-color-base-border: var(--line); --ck-color-text: var(--ink);
  --ck-color-panel-background: var(--bg-3); --ck-color-panel-border: var(--line); --ck-color-input-background: var(--bg-1); --ck-color-input-border: var(--line); --ck-color-input-text: var(--ink);
  --ck-color-button-default-hover-background: rgba(var(--ink-rgb), .08); --ck-color-button-on-background: rgba(var(--red-rgb), .16); --ck-color-button-on-color: var(--ink-hi);
  --ck-color-labeled-field-label-background: var(--bg-3); --ck-color-list-background: var(--bg-3); --ck-color-list-button-hover-background: rgba(var(--ink-rgb), .08);
  --ck-color-dropdown-panel-background: var(--bg-3); --ck-color-dropdown-panel-border: var(--line); --ck-color-focus-border: var(--red-light); --ck-border-radius: 0; --ck-font-face: var(--font);
  --ck-color-button-action-background: var(--red); --ck-color-button-action-hover-background: var(--red-light); --ck-color-button-save: var(--red-light); --ck-color-button-cancel: var(--ink-dim); }
.ed-extra { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--bg-2); }

/* ---------- 바닥글 ---------- */
.foot { padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: var(--fs-note); color: var(--ink-faint); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot__in a { color: var(--ink-dim); text-decoration: none; }
.foot__in a:hover { color: var(--ink-hi); }
.foot__in span:last-child { margin-left: auto; }

/* ---------- 알림 띠 ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); padding: 12px 18px; font-size: var(--fs-sub); color: var(--ink-hi);
  width: max-content; max-width: calc(100vw - 32px); text-align: center; word-break: keep-all; overflow-wrap: anywhere; line-height: var(--lh-body);
  background: rgba(var(--bg-1-rgb), .9); border: 1px solid var(--line-strong); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.loading { padding: 60px 0; text-align: center; font-size: var(--fs-sub); color: var(--ink-faint); }

/* ---------- 휴대폰 ---------- */
@media (max-width: 960px) {
  .nav { position: fixed; top: var(--bar-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: rgba(var(--bg-0-rgb), .9); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .bar.is-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { height: 48px; padding: 0 4px; border-bottom: 1px solid var(--line); }
  .nav a.is-on::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 2px; height: auto; }
  .nav a.is-on { padding-left: 14px; }
  .menu-btn { display: grid; }
  .bar__in { gap: 12px; }
  .brand { margin-right: auto; }
  .bar__me span { display: none; }
  .home__two { grid-template-columns: 1fr; }
  .lorecards { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; max-height: none; padding: 0; }
  .toc details { border: 1px solid var(--line); background: rgba(var(--bg-0-rgb), .3); }
  .toc details summary { display: flex; justify-content: space-between; padding: 12px 14px; font-size: var(--fs-sub); font-weight: 600; cursor: pointer; list-style: none; }
  .toc details summary::-webkit-details-marker { display: none; }
  .toc details > div { display: grid; gap: 14px; padding: 4px 8px 12px; }
  .write { grid-template-columns: 1fr; }
  .write__side { position: static; }
}
@media (max-width: 640px) {
  .bar__acts .btn--accent { padding: 0 12px; }
  .bar__acts .btn--accent span { display: none; }
  .banner { height: 190px; }
  .page { padding: 28px 0 64px; }
  .hero__in { padding: 56px 0; }
  .supportband { flex-direction: column; align-items: flex-start; padding: 20px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row__tag { grid-column: 1 / -1; justify-self: start; }
  .form__two { grid-template-columns: 1fr; }
  .prevnext { grid-template-columns: 1fr; }
  .faq__a .prose { padding-left: 18px; }
  .kv { grid-template-columns: 90px minmax(0, 1fr); }
  .foot__in span:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
.badge svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.row__title .badge, .tl__top .badge { vertical-align: 2px; }

@media (max-width: 640px) {
  .hero__slide { background-image: var(--bg-m); }
  .hero__nav { top: auto; bottom: 12px; transform: none; width: 40px; height: 40px; font-size: var(--fs-subtitle); }
  .hero__nav--prev { left: 16px; } .hero__nav--next { right: 16px; }
  .hero__dots { bottom: 30px; }
}

/* ---------- 관리 페이지 ---------- */
.nav__admin { color: var(--red-light) !important; }
.nav__admin svg { width: var(--ico-sm); height: var(--ico-sm); margin-right: 5px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.adm__head { padding: 36px 0 0; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(var(--red-deep-rgb), .08), transparent); }
.adm__tabs { display: inline-flex; margin: 22px 0 -1px; border-bottom: 0; }
.adm .rows { gap: 8px; }
.adm__row { grid-template-columns: auto minmax(0, 1fr) auto; }
.adm__row.is-off { opacity: .55; }
.adm__thumb { width: 128px; height: 72px; object-fit: cover; border: 1px solid var(--line); background: var(--bg-0); }
.adm__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.adm__acts .btn svg { margin: 0; }
.adm__menu { padding: 20px 22px; margin-top: 14px; }
.adm__menuhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.adm__menugrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.imgf { display: grid; gap: 8px; }
.imgf__pv { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(var(--bg-0-rgb), .3); border: 1px dashed var(--line-strong); font-size: var(--fs-note); color: var(--ink-faint); }
.imgf__pv img { width: 100%; height: 100%; object-fit: cover; }
.imgf__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.imgf small { font-size: var(--fs-note); color: var(--ink-faint); }
/* 창: 모서리 장식(바깥 7px)이 잘리거나 스크롤바를 만들지 않게, 스크롤은 창 바깥 틀이 맡고 스크롤바는 숨김 */
.dlg { max-height: calc(100dvh - 32px); padding: 7px; overflow: hidden auto; scrollbar-width: none; }
.dlg::-webkit-scrollbar { display: none; }
.dlg__in { overflow: visible; }
.imgpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.imgpick__it { display: grid; gap: 4px; padding: 0; text-align: left; background: none; border: 1px solid var(--line); }
.imgpick__it:hover { border-color: rgba(var(--red-light-rgb), .7); }
.imgpick__it img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.imgpick__it small { padding: 0 8px 6px; font-size: var(--fs-badge); color: var(--ink-faint); }
.imglib { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.imglib__it { margin: 0; border: 1px solid var(--line); background: rgba(var(--bg-0-rgb), .3); }
.imglib__it img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.imglib__it figcaption { display: grid; gap: 8px; padding: 10px; }
.imglib__it figcaption small { font-size: var(--fs-note); color: var(--ink-faint); }
.imglib__it figcaption span { display: flex; gap: 6px; }
@media (max-width: 960px) {
  .adm__menugrid { grid-template-columns: 1fr; }
  .adm__row { grid-template-columns: minmax(0, 1fr); }
  .adm__acts { justify-content: flex-start; }
  .adm__tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; }
}
.article__back { max-width: var(--read); margin: 22px auto 0; }
.imgf__pv { position: relative; }
.imgf__pv em { position: absolute; left: 8px; top: 8px; padding: 1px 8px; font-style: normal; font-size: var(--fs-badge); color: var(--ink-hi); background: rgba(var(--bg-0-rgb), .7); }

/* ---------- 배경 음악 버튼 (오른쪽 아래) ---------- */
.snd { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 8px; }
.snd__btn { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: var(--ink-dim); background: rgba(var(--bg-0-rgb), .9); border: 1px solid var(--line); transition: color .15s, border-color .15s; }
.snd__btn:hover { color: var(--ink-hi); border-color: rgba(var(--ink-rgb), .5); }
.snd.is-on .snd__btn { color: var(--ink-hi); }
.snd__btn svg { width: var(--ico-md); height: var(--ico-md); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.snd__vol { width: 0; opacity: 0; pointer-events: none; transition: width .2s, opacity .2s; }
.snd:hover .snd__vol, .snd:focus-within .snd__vol { width: 110px; opacity: 1; pointer-events: auto; }
.range { accent-color: var(--red); }
.bgmf audio { width: 100%; max-width: 420px; }
.imgf--cur .imgf__pv { aspect-ratio: auto; height: 96px; width: 96px; background: repeating-conic-gradient(var(--bg-3) 0 25%, var(--stone) 0 50%) 0 0 / 16px 16px; }
.imgf--cur .imgf__pv img { width: auto; height: auto; max-width: 64px; max-height: 64px; object-fit: none; }
@media (hover: none) { .snd__vol { display: none; } }

/* =========================================================
   홈 첫 화면 (v11): 슬라이드 연출 · 오른쪽 게임 시작 칸 · 새소식 · 바로가기
   ========================================================= */
.herobox { position: relative; }
.hero__fx { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero__nav, .hero__dots { z-index: 4; }
.hero .wrap.hero__in { margin-inline: auto; width: min(var(--wrap), calc(100% - 32px)); padding-right: 340px; max-width: none; }
.hside__wrap { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hside__in { height: 100%; display: flex; align-items: flex-end; justify-content: flex-end; padding-bottom: 64px; }
.hside { width: 300px; pointer-events: auto; display: grid; }
.hside__start { position: relative; display: grid; gap: 2px; padding: 26px 28px; text-decoration: none; color: var(--ink-hi); border-radius: var(--radius-lg);
  background: url("../assets/panel-stone.jpg") center / cover, var(--bg-3);
  box-shadow: 0 10px 30px rgba(var(--bg-0-rgb), .5); transition: filter .25s, box-shadow .25s; }
.hside__start small { font-size: var(--fs-note); letter-spacing: var(--ls-eyebrow); color: var(--red-light); }
.hside__start b { font-size: var(--fs-subtitle); font-weight: 800; letter-spacing: var(--ls-label); text-shadow: 0 1px 4px rgba(var(--bg-0-rgb), .7); }
.hside__start small { text-shadow: 0 1px 3px rgba(var(--bg-0-rgb), .7); }
.hside__arrow { position: absolute; right: 26px; bottom: 30px; width: 28px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.hside__start:hover { filter: brightness(1.08); box-shadow: 0 10px 30px rgba(var(--bg-0-rgb), .5), 0 0 28px rgba(var(--paper-rgb), .16); }
.hside__two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.hside__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 10px; border: 0; border-radius: var(--radius-lg);
  background: rgba(var(--bg-0-rgb), .7); color: var(--ink); font-size: var(--fs-sub); letter-spacing: var(--ls-ui); transition: color .25s, background-color .25s, box-shadow .25s; }
.hside__btn svg { width: var(--ico-sm); height: var(--ico-sm); fill: none; stroke: currentColor; stroke-width: 1.5; }
.hside__btn:hover { color: var(--ink-hi); background: rgba(var(--bg-3-rgb), .9); box-shadow: 0 0 22px rgba(var(--paper-rgb), .16); }
.hside__me { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 46px; padding: 0 10px; border-radius: var(--radius-lg); background: rgba(var(--bg-0-rgb), .7); font-size: var(--fs-sub); color: var(--ink-dim); }
.hside__me b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hside__me b { color: var(--ink-hi); }

.home__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 300px; gap: 24px; align-items: stretch; }
.promo { position: relative; min-height: 300px; display: grid; align-content: end; gap: 6px; padding: 24px; overflow: hidden; text-decoration: none;
  background: var(--bg-2) center / cover no-repeat; border: 1px solid var(--line); transition: border-color .2s; }
.promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--bg-0-rgb), .9) 0%, rgba(var(--bg-0-rgb), .3) 55%, rgba(var(--bg-0-rgb), .04)); }
.promo > * { position: relative; }
.promo small { font-size: var(--fs-note); letter-spacing: var(--ls-eyebrow); color: var(--red-light); }
.promo b { font-size: var(--fs-subtitle); line-height: var(--lh-title); color: var(--ink-hi); }
.promo span { font-size: var(--fs-sub); line-height: var(--lh-body); color: var(--ink-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo__go { margin-top: 8px; font-style: normal; font-size: var(--fs-sub); color: var(--ink); }
.promo:hover { border-color: var(--line-strong); }
.promo:hover .promo__go { color: var(--ink-hi); }

.news { display: grid; grid-template-rows: auto 1fr; padding: 20px 22px; }
.news__head { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.news__h { font-size: var(--fs-body); font-weight: 700; letter-spacing: var(--ls-label); color: var(--ink-hi); }
.news__h::before { content: "/"; margin-right: 8px; color: var(--red); }
.news__tabs { display: flex; gap: 2px; }
.news__tabs button { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; background: none; border: 1px solid transparent; color: var(--ink-dim); font-size: var(--fs-sub); }
.news__tabs button.is-on { color: var(--ink-hi); border-color: var(--line-strong); background: rgba(var(--ink-rgb), .04); }
.news__tabs button:hover { color: var(--ink-hi); }
.news__tabs .lock { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.news__more { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-dim); text-decoration: none; font-size: var(--fs-body); line-height: 1; }
.news__more:hover { color: var(--ink-hi); border-color: var(--line-strong); }
.news__list { list-style: none; margin: 6px 0 0; padding: 0; }
.nrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 2px; text-decoration: none; border-bottom: 1px dashed rgba(var(--ink-rgb), .08); }
.nrow__tag { font-size: var(--fs-note); color: var(--red-light); }
.nrow__tag::before { content: "["; } .nrow__tag::after { content: "]"; }
.nrow__t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-body); color: var(--ink); }
.nrow__d { font-size: var(--fs-note); color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.nrow:hover .nrow__t { color: var(--ink-hi); text-decoration: underline; text-underline-offset: 3px; }
.news .empty { margin-top: 14px; }
.news__lock { display: grid; justify-items: center; gap: 10px; margin-top: 14px; padding: 26px 16px; text-align: center; border: 1px dashed var(--line); font-size: var(--fs-sub); color: var(--ink-dim); }
.news__lock > svg { width: var(--ico-lg); height: var(--ico-lg); fill: none; stroke: var(--ink-dim); stroke-width: 1.4; }

.quick { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; padding: 20px; }
.quick__h { font-size: var(--fs-sub); font-weight: 700; letter-spacing: var(--ls-label); color: var(--ink-hi); }
.quick__h::before { content: "/"; margin-right: 8px; color: var(--red); }
.quick__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qbtn { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 14px 4px 12px; text-align: center; text-decoration: none; color: var(--ink);
  background: rgba(var(--bg-0-rgb), .3); border: 1px solid var(--line); transition: border-color .15s, background-color .15s; }
.qbtn:hover { border-color: rgba(var(--ink-rgb), .7); background-color: rgba(var(--ink-rgb), .04); color: var(--ink-hi); }
.qbtn__ic { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 4px; border: 1px solid var(--line-strong); border-radius: 50%; }
.qbtn__ic svg { width: var(--ico-md); height: var(--ico-md); fill: none; stroke: currentColor; stroke-width: 1.5; }
.qbtn b { font-size: var(--fs-sub); font-weight: 700; }
.qbtn small { font-size: var(--fs-note); color: var(--ink-faint); }
.qbtn--heart .qbtn__ic { color: var(--red-light); border-color: rgba(var(--red-rgb), .5); }
.qbtn--heart small { font-size: var(--fs-sub); font-weight: 700; color: var(--red-light); font-variant-numeric: tabular-nums; }
.qbtn--heart.is-sent .qbtn__ic svg { fill: var(--red); stroke: var(--red); }
.quick__note { font-size: var(--fs-note); line-height: var(--lh-body); color: var(--ink-faint); }
.lorecards--3 { grid-template-columns: repeat(3, 1fr); }
.lorecards--3 .lorecard { aspect-ratio: 16 / 10; }
.form__msg.is-ok { color: var(--green-light); }

@media (max-width: 1100px) {
  .home__top { grid-template-columns: 1fr 1fr; }
  .quick { grid-column: 1 / -1; }
  .quick__grid { max-width: 480px; }
}
@media (max-width: 760px) {
  .hero .wrap.hero__in { padding-right: 0; }
  .hside__wrap { position: static; pointer-events: auto; }
  .hside__in { padding: 16px 0 0; justify-content: stretch; }
  .hside { width: 100%; }
  .home__top { grid-template-columns: 1fr; }
  .lorecards--3 { grid-template-columns: 1fr; }
  .promo { min-height: 220px; }
}

/* ---------- 회원가입 창 (게임 첫 화면과 같은 모양) ---------- */
.sumodal { max-height: calc(100% - 32px); padding: 7px; margin: auto; background: none; border: 0; color: var(--ink); overflow: visible; }
.sumodal::backdrop { background: rgba(var(--bg-0-rgb), .7); }
.su { max-height: calc(100dvh - 46px); overflow: hidden auto; scrollbar-width: none; padding: 40px clamp(20px, 6vw, 44px) 26px; text-align: center;
  background: url("../assets/panel-stone.jpg") center / cover, radial-gradient(ellipse at 50% 0%, var(--bg-3) 0%, var(--bg-2) 55%, var(--bg-1) 100%); }
.su::-webkit-scrollbar { display: none; }
.su__eyebrow { font-size: var(--fs-note); letter-spacing: var(--ls-eyebrow); color: var(--ink-faint); }
.su__title { margin-top: 14px; font-size: clamp(var(--fs-title), 7vw, var(--fs-display)); font-weight: 700; letter-spacing: var(--ls-title); line-height: var(--lh-title); }
.su__lead { margin-top: 14px; font-size: var(--fs-body); letter-spacing: var(--ls-label); color: var(--ink-dim); line-height: var(--lh-body); }
.su__rule { margin: 26px 0; height: 1px; border: 0; background: var(--line); }
.su__fields { display: grid; gap: 14px; text-align: left; }
.sf { position: relative; display: flex; align-items: center; min-width: 0; height: 50px; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s; }
.sf:focus-within { border-color: var(--line-strong); }
.sf.is-invalid { border-color: var(--red-light); }
.sf__icon { width: var(--ico-md); height: var(--ico-md); margin: 0 14px 0 16px; flex: none; fill: none; stroke: var(--ink-dim); stroke-width: 1.3; }
.sf input { flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0 14px 0 0; background: none; border: 0; outline: 0; font-size: var(--fs-input); color: var(--ink); }
.sf input::placeholder { color: var(--ink-dim); }
.sf input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px var(--bg-0) inset; }
.sf__hint { position: absolute; right: 16px; font-size: var(--fs-sub); color: var(--ink-faint); pointer-events: none; transition: opacity .15s; }
.sf input:not(:placeholder-shown) ~ .sf__hint:not(.sf__hint--timer) { opacity: 0; }
.sf:has(.sf__eye) .sf__hint { right: 52px; }
.sf__eye { display: grid; place-items: center; width: 44px; height: 100%; margin-right: 2px; padding: 0; background: none; border: 0; }
.sf__eye svg { width: var(--ico-md); height: var(--ico-md); fill: none; stroke: var(--ink-dim); stroke-width: 1.3; }
.sf__hint--timer { font-variant-numeric: tabular-nums; color: var(--ink-dim); }
.sf-row { display: grid; grid-template-columns: 1fr 150px; gap: 14px; }
.sf-row .btn { height: var(--btn-h-lg); font-size: var(--fs-body); }
.sf-row--code { grid-template-columns: 1fr; gap: 8px; }
.sf-row__note { font-size: var(--fs-sub); color: var(--ink-faint); padding-left: 2px; }
.su__msg { margin-top: 16px; font-size: var(--fs-sub); color: var(--red-light); }
.su__msg:empty { display: none; }
.su__msg.is-ok { color: var(--green-light); }
.su__go { width: 100%; height: 60px; margin-top: 26px; gap: 18px; font-size: var(--fs-item); letter-spacing: var(--ls-ui); }
.su__arrow { width: 24px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.su__foot { font-size: var(--fs-body); color: var(--ink-dim); }
.su__link { margin-left: 10px; padding: 4px 0; background: none; border: 0; color: var(--ink); font-size: var(--fs-body); text-decoration: underline; text-underline-offset: 4px; }
.su .dlg__x { z-index: 1; }
.btn.is-loading { pointer-events: none; opacity: .7; }
@media (max-width: 480px) { .sf-row { grid-template-columns: 1fr; } }

/* 로그인 창: 여백 넉넉하게 */
#loginDlg .dlg__in { gap: 20px; padding: 44px 40px 36px; }
@media (max-width: 480px) { #loginDlg .dlg__in { padding: 36px 24px 28px; } }
#loginDlg .form__msg:empty { display: none; }

/* 바로가기 아래 배너 */
.sban { position: relative; align-self: end; margin-top: 2px; padding-top: 16px; border-top: 0.5px solid var(--line); }
.sban__item { position: relative; display: none; aspect-ratio: 2 / 1; overflow: hidden; border-radius: var(--radius); text-decoration: none; }
.sban__item.is-on { display: block; }
.sban__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .25s; }
.sban__item:hover img { filter: brightness(1.1); }
.sban__cap { position: absolute; left: 14px; bottom: 12px; display: grid; gap: 2px; font-size: var(--fs-body); font-weight: 700; color: var(--ink-hi); text-shadow: 0 1px 3px rgba(var(--bg-0-rgb), .7); }
.sban__cap small { font-size: var(--fs-badge); font-weight: 500; letter-spacing: var(--ls-eyebrow); color: var(--red-light); }
.sban__dots { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.sban__dots button { width: 16px; height: 3px; padding: 0; border: 0; border-radius: 0; background: rgba(var(--ink-hi-rgb), .3); }
.sban__dots button.is-on { background: var(--red); }

/* =========================================================
   둥근 모서리 (v13): 테두리 얇은 선은 그대로, 모서리만 둥글게
   ========================================================= */
.panel { border-radius: var(--radius-lg); }
.panel::before { display: none; }   /* 네모 꺾쇠 장식은 둥근 모서리와 안 맞아 뺌 */
.promo, .lorecard, .empty, .news__lock, .imgf__pv, .imglib img, .adm__thumb, .toc, .lockbox, .faq__item, .prevnext a, .banner__img { border-radius: var(--radius-lg); }
.qbtn, .news__more, .news__tabs button, .hero__nav, .tab, .choice span, .badge, .row__tag, .snd__btn, .dlg__x, .sban__item { border-radius: var(--radius); }
.choice span { overflow: hidden; }
.sumodal .su { border-radius: var(--radius-lg); }
.hero__dots button { border-radius: 0; }
.lorecard, .promo { overflow: hidden; }

/* =========================================================
   홈 첫 화면 v2 (시안 반영, v14)
   ========================================================= */
/* ---------- 히어로: 앞쪽 그림 (투명 PNG, 글자보다 앞) ---------- */
/* 앞쪽 그림: --x · --y = 그림 가운데 위치, --h = 그림 높이 (모두 큰 그림 칸 기준 %) */
.hero__front { position: absolute; left: var(--x, 62%); top: var(--y, 55%); z-index: 3; height: var(--h, 95%); width: auto; max-width: none;
  transform: translate(-50%, -50%); pointer-events: none; user-select: none; }
.hero__front--m { display: none; }
@media (max-width: 760px) { .hero__front--pc { display: none; } .hero__front--m { display: block; } }

/* ---------- 히어로 오른쪽: 게임 시작 · 회원가입 · 로그인 (네모, 돌 질감) ---------- */
.hside__start { display: grid; place-items: center; align-content: center; gap: 4px; height: 110px; padding: 0 20px; border-radius: 0; text-align: center;
  background: url("../assets/panel-stone.jpg") center / cover, var(--bg-3); box-shadow: 0 10px 30px rgba(var(--bg-0-rgb), .5); transition: filter .25s, box-shadow .25s; }
.hside__start b { font-size: var(--fs-title); font-weight: 800; letter-spacing: 0; line-height: var(--lh-snug); }
.hside__start small { font-size: var(--fs-body); letter-spacing: var(--ls-eyebrow); text-indent: .3em; color: var(--red-light); }
.hside__two { gap: 0; margin-top: 0; box-shadow: 0 10px 24px rgba(var(--bg-0-rgb), .5); }
.hside__btn, .hside__me { border-radius: 0; background: url("../assets/btn-stone.jpg") center / cover, var(--bg-3); text-shadow: 0 1px 2px rgba(var(--bg-0-rgb), .9); }
.hside__btn + .hside__btn, .hside__me + .hside__btn { box-shadow: inset 1px 0 0 rgba(var(--bg-0-rgb), .5); }
/* 마우스 올리면 은은하게 밝아지고, 누르는 순간 붉은빛이 번짐 */
.hside__start:hover, .hside__btn:hover { filter: brightness(1.12); background-color: var(--bg-3); }
.hside__start:hover { box-shadow: 0 10px 30px rgba(var(--bg-0-rgb), .5), 0 0 24px rgba(var(--red-rgb), .16); }
.hside__btn:hover { box-shadow: 0 0 18px rgba(var(--red-rgb), .16); }
.hside__start:active, .hside__btn:active, .hside__start.is-press, .hside__btn.is-press {
  filter: brightness(1.18);
  box-shadow: 0 0 0 1px rgba(var(--red-rgb), .7), 0 0 30px rgba(var(--red-rgb), .7), inset 0 0 22px rgba(var(--red-rgb), .3); }
.hside__start:focus-visible, .hside__btn:focus-visible { outline: 0; box-shadow: 0 0 0 1px rgba(var(--red-rgb), .7), 0 0 22px rgba(var(--red-rgb), .5); }

/* ---------- 아래 세 칸 ---------- */
.home__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 300px; gap: 24px; align-items: stretch; }

/* 왼쪽: 소식 카드 */
.ncard { position: relative; display: grid; min-height: 370px; background: var(--bg-3); overflow: hidden; }
.ncard__item { display: none; grid-template-rows: minmax(200px, 1fr) auto; text-decoration: none; color: inherit; }
.ncard__item.is-on, .ncard--empty { display: grid; grid-template-rows: minmax(200px, 1fr) auto; }
.ncard__img { position: relative; background: var(--bg-3) center / cover no-repeat; transition: filter .25s; }
.ncard__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, rgba(var(--ink-rgb), .16) 0 2px, transparent 2px 6px); }
.ncard__item:hover .ncard__img { filter: brightness(1.08); }
.ncard__body { display: grid; justify-items: start; gap: 10px; padding: 16px 16px 18px; }
.ncard__tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 12px; border-radius: 0; font-size: var(--fs-note); font-weight: 600; letter-spacing: var(--ls-ui); color: var(--ink-hi); background: var(--red-deep); }
.ncard__tag svg { width: var(--ico-sm); height: var(--ico-sm); fill: none; stroke: currentColor; stroke-width: 2; }
.ncard__tag--update { background: var(--teal); }
.ncard__tag--event { background: var(--gold-light); }
.ncard__title { font-size: var(--fs-input); font-weight: 700; line-height: var(--lh-ui); color: var(--ink-hi); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__item:hover .ncard__title { text-decoration: underline; text-underline-offset: 4px; }
.ncard__date { font-size: var(--fs-note); color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.ncard__nav { position: absolute; top: 100px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: rgba(var(--bg-0-rgb), .7); color: var(--ink-hi); font-size: var(--fs-subtitle); line-height: 1; transition: background-color .2s; }
.ncard__nav:hover { background: rgba(var(--red-rgb), .9); }
.ncard__nav--prev { left: 10px; } .ncard__nav--next { right: 10px; }
.ncard__count { position: absolute; right: 16px; bottom: 18px; font-size: var(--fs-note); color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.ncard__count b { color: var(--ink); font-weight: 600; }

/* 가운데: 시즌 일정 */
.cal { display: grid; grid-template-rows: auto auto 1fr; background: var(--bg-3); min-width: 0; }
.cal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.cal__h { display: flex; align-items: center; gap: 10px; font-size: var(--fs-item); font-weight: 800; color: var(--ink-hi); }
.cal__h::before { content: ""; width: 16px; height: 2px; background: var(--red); }
.cal__sub { margin: 4px 0 0 26px; font-size: var(--fs-badge); color: var(--ink-faint); }
.cal__day { font-size: var(--fs-note); font-weight: 700; letter-spacing: var(--ls-ui); color: var(--red-light); white-space: nowrap; }
.cal__day b { font-size: var(--fs-title); font-weight: 800; color: var(--red-light); margin: 0 2px; }
.cal__tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg-2); }
.cal__tabs button { height: 36px; padding: 0 6px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-dim); font-size: var(--fs-sub); font-weight: 600; white-space: nowrap; }
.cal__tabs button small { font-size: var(--fs-badge); color: inherit; opacity: .75; }
.cal__tabs button:hover { color: var(--ink-hi); }
.cal__tabs button.is-on { color: var(--red-light); border-bottom-color: var(--red); background: rgba(var(--red-rgb), .08); }
.cal__pane { padding: 12px 14px 14px; min-width: 0; }
.cal__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__bar b { font-size: var(--fs-body); font-weight: 800; letter-spacing: var(--ls-ui); color: var(--ink-hi); font-variant-numeric: tabular-nums; }
.cal__arrows { display: flex; gap: 6px; }
.cal__arrows button { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--ink); font-size: var(--fs-item); line-height: 1; }
.cal__arrows button:hover { color: var(--ink-hi); border-color: rgba(var(--ink-rgb), .7); }
.cal__week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cday { position: relative; display: grid; justify-items: center; gap: 1px; padding: 6px 0 5px; border: 1px solid transparent; background: var(--bg-3); color: var(--ink); }
.cday small { font-size: var(--fs-badge); color: var(--ink-faint); }
.cday b { font-size: var(--fs-input); font-weight: 700; font-variant-numeric: tabular-nums; }
.cday:hover { background: var(--stone); }
.cday.is-sel { border-color: rgba(var(--ink-rgb), .5); }
.cday.is-today { border-color: var(--red); background: rgba(var(--red-rgb), .16); color: var(--ink-hi); }
.cday.is-today::before, .cmd.is-today::before { content: ""; position: absolute; left: 4px; top: 4px; width: 4px; height: 4px; background: var(--red-light); }
.cmks { display: flex; justify-content: center; gap: 3px; height: 7px; align-items: center; }
.cmk { display: inline-block; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-hi); vertical-align: middle; }
.cmk--event { background: var(--gold); }
.cmk--raid { border-radius: 0; transform: rotate(45deg); background: var(--red-light); }
.cmk--update { background: var(--teal); }
.cmk--maint { border-radius: 0; background: var(--ink-dim); }
.cal__month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal__wh { text-align: center; font-size: var(--fs-badge); color: var(--ink-faint); padding-bottom: 2px; }
.cmd { position: relative; display: grid; justify-items: center; gap: 0; padding: 3px 0 2px; border: 1px solid transparent; background: var(--bg-3); color: var(--ink); }
.cmd b { font-size: var(--fs-sub); font-weight: 600; font-variant-numeric: tabular-nums; }
.cmd .cmks { height: 6px; }
.cmd.is-out { opacity: .35; }
.cmd:hover { background: var(--stone); }
.cmd.is-sel { border-color: rgba(var(--ink-rgb), .5); }
.cmd.is-today { border-color: var(--red); color: var(--ink-hi); }
.cal__list { margin-top: 12px; border-top: 1px solid var(--line); }
.cal__dh { padding: 10px 0 4px; font-size: var(--fs-sub); font-weight: 800; color: var(--ink-hi); }
.cal__dh em { font-style: normal; color: var(--red-light); }
.cal__dh--up { margin-top: 4px; border-top: 1px solid var(--line); }
.cevs { list-style: none; margin: 0; padding: 0; }
.cevs li + li { border-top: 1px dashed rgba(var(--ink-rgb), .08); }
.cev { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; text-decoration: none; color: inherit; }
a.cev:hover .cev__t { color: var(--ink-hi); text-decoration: underline; text-underline-offset: 3px; }
.cev__k { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-badge); font-weight: 700; color: var(--gold-light); white-space: nowrap; }
.cev__k--raid { color: var(--red-light); } .cev__k--update { color: var(--teal-light); } .cev__k--maint, .cev__k--etc { color: var(--ink-dim); }
.cev__t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-sub); font-weight: 700; color: var(--ink); }
.cev__time { font-size: var(--fs-note); font-weight: 600; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.cal__none { padding: 6px 0 8px; font-size: var(--fs-note); color: var(--ink-faint); }
.cseason { display: grid; gap: 6px; padding: 4px 0 12px; }
.cseason__name { font-size: var(--fs-input); font-weight: 800; color: var(--ink-hi); }
.cseason__range { font-size: var(--fs-note); color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.cseason__bar { height: 8px; margin-top: 8px; background: var(--bg-3); overflow: hidden; }
.cseason__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red-light)); }
.cseason__nums { display: flex; justify-content: space-between; font-size: var(--fs-note); color: var(--ink-dim); font-variant-numeric: tabular-nums; }

/* 오른쪽: 바로가기 목록 + 배너 */
.side { display: grid; grid-template-rows: auto auto; align-content: space-between; gap: 18px; min-width: 0; }
.qlist { list-style: none; margin: 0; padding: 0; background: var(--bg-3); }
.qlist li + li { border-top: 1px solid rgba(var(--ink-rgb), .08); }
.qrow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 18px; border: 0; background: none; color: inherit; text-align: left; text-decoration: none; transition: background-color .2s; }
.qrow:hover { background: rgba(var(--ink-rgb), .04); }
.qrow__ic { flex: none; width: 30px; display: grid; place-items: center; color: var(--ink); }
.qrow__ic svg { width: var(--ico-lg); height: var(--ico-lg); fill: none; stroke: currentColor; stroke-width: 1.5; }
.qrow__txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.qrow__txt b { font-size: var(--fs-body); font-weight: 800; color: var(--ink-hi); }
.qrow__txt small { font-size: var(--fs-badge); color: var(--ink-faint); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.qrow:hover .qrow__txt b { color: var(--ink-hi); }
.qrow__n { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sub); font-weight: 700; color: var(--red-light); font-variant-numeric: tabular-nums; }
.qrow__n svg { width: var(--ico-sm); height: var(--ico-sm); fill: none; stroke: currentColor; stroke-width: 1.8; }
.qrow__n.is-sent svg, .qrow.is-sent .qrow__n svg { fill: var(--red); stroke: var(--red); }
.sban { position: relative; padding: 0; margin: 0; border: 0; align-self: end; }
.sban__item { aspect-ratio: 600 / 280; border-radius: 0; }
.sban__cap { left: 16px; top: 14px; bottom: auto; gap: 4px; }
.sban__cap b { display: flex; align-items: center; gap: 6px; font-size: var(--fs-input); font-weight: 800; color: var(--ink-hi); }
.sban__cap b::before { content: "/"; color: var(--red); }
.sban__cap small { font-size: var(--fs-badge); font-weight: 400; letter-spacing: 0; color: var(--ink-dim); text-shadow: 0 1px 2px rgba(var(--bg-0-rgb), .9); }
.sban__dots { left: 14px; right: auto; bottom: 12px; gap: 6px; }
.sban__dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(var(--ink-hi-rgb), .5); }
.sban__dots button.is-on { background: var(--ink-hi); }

/* ---------- 포지션 안내 (게임 캐릭터 생성 화면과 같은 모양) ---------- */
.pguide { display: grid; gap: 22px; }
.positions { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 26px 0 30px; }
.pcard { --acc: var(--red); position: relative; flex: none; width: 200px; height: 356px; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: center;
  transform: perspective(1100px) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s; filter: brightness(.68) saturate(.8); }
.pcard:hover { filter: brightness(1.08); }
.pcard.is-viewing { filter: none; }
.pcard__frame { position: absolute; inset: 0; overflow: hidden; border: 1px solid rgba(var(--ink-rgb), .16); background: var(--bg-1); transition: border-color .4s, box-shadow .4s; }
.pcard__art { position: absolute; inset: 0; background-size: cover; background-position: center; }
.pcard__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--bg-0-rgb), .5) 0%, rgba(var(--bg-0-rgb), .3) 35%, rgba(var(--bg-0-rgb), .7) 100%); transition: opacity .5s; }
.pcard.is-viewing .pcard__art::after { opacity: 0; }
.pcard__frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(var(--bg-0-rgb), .7) 60%, rgba(var(--bg-0-rgb), .9) 100%); }
.pcard__frame::after { content: ""; position: absolute; inset: 9px; z-index: 2; pointer-events: none; --s: 14px;
  background: linear-gradient(var(--acc) 0 0) top left / var(--s) 1.5px, linear-gradient(var(--acc) 0 0) top left / 1.5px var(--s),
    linear-gradient(var(--acc) 0 0) top right / var(--s) 1.5px, linear-gradient(var(--acc) 0 0) top right / 1.5px var(--s),
    linear-gradient(var(--acc) 0 0) bottom left / var(--s) 1.5px, linear-gradient(var(--acc) 0 0) bottom left / 1.5px var(--s),
    linear-gradient(var(--acc) 0 0) bottom right / var(--s) 1.5px, linear-gradient(var(--acc) 0 0) bottom right / 1.5px var(--s);
  background-repeat: no-repeat; opacity: 0; transition: opacity .4s; }
.pcard.is-viewing .pcard__frame { border: 1.5px solid var(--acc); box-shadow: 0 0 0 1px rgba(var(--bg-0-rgb), .5), 0 0 34px color-mix(in srgb, var(--acc) 40%, transparent); }
.pcard.is-viewing .pcard__frame::after { opacity: 1; }
.pcard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; justify-items: center; gap: 5px; padding: 0 12px 14px; }
.pcard__icon { width: var(--ico-xl); height: var(--ico-xl); margin-bottom: 6px; object-fit: contain; }
.pcard__en { font-size: var(--fs-note); letter-spacing: var(--ls-eyebrow); color: var(--ink-dim); text-transform: uppercase; transition: color .4s; }
.pcard.is-viewing .pcard__en { color: var(--acc); }
.pcard__name { font-size: var(--fs-subtitle); font-weight: 700; letter-spacing: var(--ls-ui); color: var(--ink-hi); }
.pcard__sum { font-size: var(--fs-sub); line-height: var(--lh-ui); color: var(--ink-dim); min-height: 2.9em; }
.pcard__count { margin-top: 8px; font-size: var(--fs-note); letter-spacing: var(--ls-label); color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.pcard__pointer { position: absolute; left: 50%; bottom: -20px; width: 9px; height: 9px; margin-left: -4.5px; border-right: 1.5px solid var(--acc); border-bottom: 1.5px solid var(--acc); transform: rotate(45deg); opacity: 0; transition: opacity .4s; }
.pcard.is-viewing .pcard__pointer { opacity: 1; }
.pinfo { --acc: var(--red); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); width: min(800px, 100%); justify-self: center; padding: 26px 32px; border: 1px solid var(--line); border-top: 2px solid var(--acc); background: rgba(var(--bg-0-rgb), .3); }
.pinfo__main { display: grid; gap: 8px; align-content: start; padding-right: 28px; }
.pinfo__main.is-swap { animation: pinfo-in .45s ease-out; }
@keyframes pinfo-in { from { opacity: 0; transform: translateY(8px); } }
.pinfo__en { font-size: var(--fs-note); letter-spacing: var(--ls-eyebrow); color: var(--acc); }
.pinfo__name { margin: 0; font-size: var(--fs-title); font-weight: 700; letter-spacing: var(--ls-title); line-height: var(--lh-title); color: var(--ink-hi); }
.pinfo__desc { font-size: var(--fs-body); line-height: var(--lh-read); color: var(--ink-dim); }
.pinfo__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pinfo__tags span { padding: 5px 12px; font-size: var(--fs-sub); color: var(--ink); border: 1px solid color-mix(in srgb, var(--acc) 75%, transparent); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.pinfo__note { font-size: var(--fs-sub); color: var(--ink-faint); }
.pinfo__side { padding-left: 28px; border-left: 1px solid var(--line); display: grid; align-content: start; gap: 6px; }
.pinfo__label { padding-bottom: 10px; margin-bottom: 6px; font-size: var(--fs-note); letter-spacing: var(--ls-eyebrow); color: var(--ink-faint); border-bottom: 1px solid var(--line); }
.pinfo__bars { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.pbar { display: grid; grid-template-columns: 22px 78px 1fr; align-items: center; gap: 10px; }
.pbar__icon { width: var(--ico-md); height: var(--ico-md); fill: none; stroke: var(--ink-dim); stroke-width: 1.5; }
.pbar__label { font-size: var(--fs-sub); color: var(--ink-dim); white-space: nowrap; }
.pbar__segs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.pbar__segs i { height: 6px; background: rgba(var(--ink-rgb), .08); position: relative; overflow: hidden; }
.pbar__segs i::after { content: ""; position: absolute; inset: 0; background: var(--acc); transform: scaleX(0); transform-origin: left center; transition: transform .28s ease-out; transition-delay: inherit; }
.pbar__segs i.is-on::after { transform: scaleX(1); }

/* 맨 아래 문의 띠: 네모 */
.supportband { border: 1px solid var(--line); border-radius: 0; background: rgba(var(--bg-0-rgb), .16); }

/* 관리: 투명 PNG 미리보기는 체크무늬 바탕 */
.imgf--png .imgf__pv { background: repeating-conic-gradient(var(--bg-3) 0 25%, var(--bg-3) 0 50%) 0 0 / 16px 16px; }
.imgf--png .imgf__pv img { object-fit: contain; }
.adm__past { margin-top: 18px; }
.adm__past summary { cursor: pointer; font-size: var(--fs-sub); color: var(--ink-dim); padding: 8px 0; }

@media (max-width: 1100px) {
  .home__top { grid-template-columns: 1fr 1fr; }
  .side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: auto; align-items: start; }
  .pcard { width: 160px; height: 290px; }
  .positions { gap: 10px; }
}
@media (max-width: 760px) {
  .home__top { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr; }
  .positions { justify-content: flex-start; overflow-x: auto; padding: 26px 40px 30px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .positions::-webkit-scrollbar { display: none; }
  .pcard { width: 150px; height: 267px; scroll-snap-align: center; }
  .pcard__name { font-size: var(--fs-item); }
  .pinfo { grid-template-columns: 1fr; padding: 22px 20px; }
  .pinfo__main { padding-right: 0; }
  .pinfo__side { padding: 18px 0 0; margin-top: 18px; border-left: 0; border-top: 1px solid var(--line); }
  .hside__start { height: 92px; }
}

/* =========================================================
   v15 수정
   ========================================================= */
/* 위 메뉴줄 오른쪽 로그인 · 게임 시작: 테두리와 바탕 없이 글자만 */
.bar__acts .btn { border: 0; background: none; box-shadow: none; padding-inline: 8px; color: var(--ink); }
.bar__acts .btn:hover { background: none; color: var(--ink-hi); filter: none; }
.bar__acts .btn--accent { color: var(--red-light); }
.bar__acts .btn--accent:hover { color: var(--ink-hi); }

/* 게임 시작: assets/home/btn-start.png 이 있으면 그 그림을 그대로 씀 (글자는 그림에 들어 있다고 보고 숨김) */
.hside__start { position: relative; overflow: hidden; }
.hside__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 히어로 버튼: 종이 조각 + 픽토그램 (그림: assets/home/btn-paper.png) */
.hcta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 240px; height: 64px; padding: 0 30px 2px;
  background: url("../assets/home/btn-paper.png") center / 100% 100% no-repeat; color: var(--paper-ink); text-decoration: none;
  font-size: var(--fs-item); font-weight: 800; letter-spacing: var(--ls-ui); pointer-events: auto; transform: rotate(-1deg); transition: filter .2s, transform .2s; }
.hcta svg { width: var(--ico-lg); height: var(--ico-lg); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.hcta:hover { filter: brightness(1.08) drop-shadow(0 0 14px rgba(var(--red-rgb), .3)); transform: rotate(-1deg) translateY(-1px); }
.hcta:active { filter: brightness(1.12) drop-shadow(0 0 18px rgba(var(--red-rgb), .5)); }

/* 아래 세 칸: 높이 고정 (탭을 바꿔도 크기가 변하지 않음) */
.home__top { grid-template-rows: 440px; }
.ncard { min-height: 0; height: 100%; }
.cal { height: 100%; min-height: 0; overflow: hidden; grid-template-rows: auto auto minmax(0, 1fr); }
.cal__pane { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.cal__list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(var(--ink-rgb), .16) transparent; padding-right: 4px; }
.cal__list::-webkit-scrollbar { width: 4px; }
.cal__list::-webkit-scrollbar-thumb { background: rgba(var(--ink-rgb), .16); }
.cal__pane > .cseason + .cal__dh, .cal__pane > .cevs { flex: none; }
.cal__month { gap: 2px; }
.cmd { padding: 1px 0 0; height: 25px; }
.cmd b { font-size: var(--fs-note); line-height: var(--lh-title); }
.cmd .cmks { height: 5px; }
.cmd .cmk { width: 4px; height: 4px; }
.side { height: 100%; min-height: 0; }

/* 배너를 아직 안 넣었을 때: 빈 자리 */
.sban--empty { aspect-ratio: 600 / 280; display: grid; place-items: center; background: var(--bg-3); }
.sban__hint { font-size: var(--fs-note); color: var(--ink-faint); text-decoration: underline; text-underline-offset: 3px; }

/* 포지션: 화면 전체 폭 배경 + 안내 창은 홈페이지 폭에 맞춤 */
.home { padding-bottom: 72px; }
.home--after { padding-top: 72px; }
.psec { position: relative; padding: 64px 0 72px; background: var(--bg-1) var(--psec) center / cover no-repeat; border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); }
.psec::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(var(--bg-0-rgb), .5) 0%, rgba(var(--bg-0-rgb), 0) 25%, rgba(var(--bg-0-rgb), 0) 75%, rgba(var(--bg-0-rgb), .5) 100%); }
.psec__in { position: relative; display: grid; gap: 14px; }
.psec .pinfo { width: 100%; background: rgba(var(--bg-0-rgb), .7); }

@media (max-width: 1100px) {
  .home__top { grid-template-rows: 440px auto; }
  .side { height: auto; }
}
@media (max-width: 760px) {
  .home__top { grid-template-rows: none; grid-auto-rows: auto; }
  .ncard { height: 400px; }
  .cal { height: 470px; }
  .hcta { min-width: 200px; height: 56px; font-size: var(--fs-body); }
  .psec { padding: 44px 0 52px; }
}

/* =========================================================
   v16 수정
   ========================================================= */
/* 게임 시작: 그림(btn-start.png) 위에 글자를 얹음 */
.hside__start b, .hside__start small { position: relative; z-index: 1; }
/* 게임 시작 ↔ 회원가입·로그인 사이 2px, 회원가입 ↔ 로그인 사이 2px */
.hside__two { gap: 2px; margin-top: 2px; }
.hside__btn + .hside__btn, .hside__me + .hside__btn { box-shadow: none; }
/* 세계관 · 시스템 왼쪽 목차: 둥근 모서리 빼기 */
.toc { border-radius: 0; }
/* 탭(FAQ 분류 · 관리 탭): 바깥 틀과 같이 직각으로 통일 */
.tab { border-radius: 0; }
/* 메뉴 첫머리 · 홈 첫 그림 아래 선: 배경 그림이 선 밑으로 비쳐 얼룩져 보이던 것 → 그림을 선 안쪽에서 끊음 */
.banner, .hero { background-clip: padding-box; }

/* 관리: 슬라이드 미리보기 (앞쪽 그림 위치 · 크기) */
.fpv__wrap { gap: 10px; }
.fpv__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fpv__tabs { padding: 2px; gap: 2px; }
.fpv__tabs .tab { height: 30px; padding: 0 14px; }
.fpv { position: relative; width: 100%; overflow: hidden; background: var(--bg-0); border: 1px solid var(--line); }
.fpv--m { width: min(300px, 100%); justify-self: center; }
.fpv__stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; }
.fpv__stage .hero__slide { opacity: 1; visibility: visible; background-size: cover; background-position: center; }
.fpv__stage .hero__in { padding: 80px 340px 80px 0; }
.fpv--m .hero__in { width: calc(100% - 32px); padding: 56px 0; }
.fpv--m .hero__title { font-size: var(--fs-display); }
.fpv--m .hero__lead { font-size: var(--fs-body); }
.fpv__stage .hside__wrap { pointer-events: none; }
.fpv__front { pointer-events: auto; cursor: move; touch-action: none; outline: 2px dashed rgba(var(--red-rgb), .0); transition: outline-color .15s; }
.fpv__front:hover { outline-color: rgba(var(--red-rgb), .9); }
.fpv__empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; padding: 10px 18px; font-size: var(--fs-title); color: var(--ink-dim); background: rgba(var(--bg-0-rgb), .7); white-space: nowrap; }
.fpv--m .fpv__empty { font-size: var(--fs-item); }
.fpv__ctrl { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: var(--fs-sub); color: var(--ink-dim); }
.fpv__ctrl label { display: inline-flex; align-items: center; gap: 10px; }
.fpv__ctrl input[type=range] { width: 220px; }
.fpv__ctrl b { min-width: 3.5em; color: var(--ink); font-variant-numeric: tabular-nums; }
.fpv__xy { font-variant-numeric: tabular-nums; }
.fpv__ctrl .btn { margin-left: auto; }

/* 회원가입 · 로그인 바탕 그림 (assets/home/btn-signup.png · btn-login.png) 위에 글자 */
.hside__btn, .hside__me { position: relative; overflow: hidden; }
.hside__t { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hside__t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =========================================================
   v19 수정
   ========================================================= */
/* 시즌 일정: 제목 아래 줄(시즌 이름)이 없어도 제목 위치 같게 */
.cal__head { min-height: 64px; align-items: center; }
.cal__sub { margin-top: 4px; }

/* 소식 카드: 날짜 오른쪽, 붙어 있는 < > (시즌 일정 화살표와 같은 모양) */
.ncard__nav, .ncard__count { display: none; }
.ncard__arrows { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: flex; gap: 0; }
.ncard__arrows button { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--ink); font-size: var(--fs-item); line-height: 1; }
.ncard__arrows button + button { border-left: 0; }
.ncard__arrows button:hover { color: var(--ink-hi); border-color: rgba(var(--ink-rgb), .7); }

/* 바닥 위 선: 맨 위 큰 그림 아래 선과 같은 두께 */
.foot { border-top-width: 0.5px; }

/* 포지션 제목: 시즌 일정 제목과 같은 모양 */
.psec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.psec__more { font-size: var(--fs-note); color: var(--ink-dim); text-decoration: none; }
.psec__more:hover { color: var(--ink-hi); }

/* 마음 전하기: 왼쪽 하트를 보내면 채움, 오른쪽은 숫자만 */
.qrow__n { font-size: var(--fs-body); }
.qrow.is-sent .qrow__ic { color: var(--red-light); }
.qrow.is-sent .qrow__ic svg { fill: var(--red); stroke: var(--red); }
.qrow[data-cheer]:active .qrow__ic svg { fill: rgba(var(--red-rgb), .5); }

/* 배너 동그라미: 1개일 때도 보이게 */
.sban__dots { z-index: 2; }

/* 포지션 섹션: 화면 한 높이를 꽉 채움 */
.psec { min-height: calc(100vh - var(--bar-h)); display: grid; align-items: center; }

/* 화면에 들어올 때 떠오르며 나타남 */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--rv-d, 0ms); }
.rv.is-in { opacity: 1; transform: none; }
.pcard.rv { transform: translateY(40px) perspective(1100px) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); }
.pcard.rv.is-in { transform: perspective(1100px) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); transition: opacity .7s ease var(--rv-d, 0ms), transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s; }

/* =========================================================
   v20: 테두리 선 밑으로 배경 그림이 비쳐 선이 얼룩져 보이는 것 막기
   (배경 그림 · 질감이 있는 칸은 그림을 테두리 안쪽에서 끊음)
   ========================================================= */
/* 다른 규칙이 background 를 한꺼번에 다시 정해도 풀리지 않게 !important */
.hero, .banner, .psec, .panel, .btn, .su, .fpv, .hside__start, .hside__btn, .hside__me, .ncard__img, .sban__item, .pcard__frame, .imgf__pv,
.toc a, .adm__head, .tabs, .tab, .field, .choice span, .cday, .cmd, .qrow, .cal__arrows button, .ncard__arrows button { background-clip: padding-box !important; }

/* v21: 메뉴 안 소제목(예: / 업데이트 기록)을 홈 '— 시즌 일정' 제목과 같은 모양으로 */
.sec { align-items: center; gap: 10px; font-size: var(--fs-item); font-weight: 800; letter-spacing: 0; color: var(--ink-hi); }
.sec::before { content: ""; flex: none; width: 16px; height: 2px; background: var(--red); }
.sec small { font-size: var(--fs-note); }

/* =========================================================
   출석 · 쿠폰 (#/reward)
   ========================================================= */
.rw { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rwbox { display: grid; gap: 16px; padding: 22px 24px 24px; background: var(--bg-3); }
.rw__stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rw__stat p { font-size: var(--fs-body); color: var(--ink-dim); }
.rw__stat b { font-size: var(--fs-title); font-weight: 800; color: var(--red-light); margin-right: 2px; }
.rw__next b { font-size: inherit; color: var(--ink-hi); }
.rwcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rwcal__wh { text-align: center; font-size: var(--fs-badge); color: var(--ink-faint); }
.rwcal__d { position: relative; display: grid; place-items: center; height: 48px; background: var(--bg-3); color: var(--ink-dim); }
.rwcal__d b { position: absolute; left: 6px; top: 4px; font-size: var(--fs-note); font-weight: 600; }
.rwcal__d i { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 8px; color: var(--red); }
.rwcal__d i svg { width: var(--ico-lg); height: var(--ico-lg); fill: var(--red); stroke: var(--red-light); stroke-width: 1; }
.rwcal__d.is-out { opacity: .3; }
.rwcal__d.is-on { background: rgba(var(--red-rgb), .08); color: var(--ink-hi); }
.rwcal__d.is-today { box-shadow: inset 0 0 0 1px var(--red); color: var(--ink-hi); }
.rw__form { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; }
.rw__form--coupon { grid-template-columns: auto minmax(0, 1fr); }
.rw__form--coupon .btn { grid-column: 1 / -1; }
.rw__lbl { font-size: var(--fs-sub); font-weight: 600; color: var(--ink); white-space: nowrap; }
.rw__list { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.rw__list li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; font-size: var(--fs-sub); color: var(--ink-dim); }
.rw__list li span { color: var(--gold-light); font-weight: 700; }
.rw__list li b { font-weight: 500; color: var(--ink); }
.rw__list li.is-got { opacity: .45; }
.rw__list li.is-got b { text-decoration: line-through; }
.rw__notes { margin: 0; padding: 12px 0 0 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: var(--fs-sub); line-height: var(--lh-body); color: var(--ink-dim); }
.rw__notes b { color: var(--ink); }
@media (max-width: 860px) { .rw { grid-template-columns: 1fr; } .rw__form { grid-template-columns: 1fr; } .rw__form .btn { width: 100%; } }

/* 관리: 보상 고르기 · 1회용 코드 목록 */
.rwed { display: grid; gap: 8px; justify-items: start; }
.rwed__row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 90px auto; gap: 8px; width: 100%; align-items: center; }
.rwed__row [hidden] { display: none; }
.rwed__row .field[data-rk-title] { grid-column: 2 / 4; }
.cpcode { font-family: ui-monospace, monospace; color: var(--ink-hi); letter-spacing: .04em; }
.cpcodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; max-height: 50vh; overflow: auto; padding: 4px 0; }
.cpcodes span { padding: 6px 10px; border: 1px solid var(--line); font-family: ui-monospace, monospace; font-size: var(--fs-sub); color: var(--ink-hi); }
.cpcodes span.is-used { color: var(--ink-faint); text-decoration: line-through; }
.cpcodes small { font-family: var(--font); text-decoration: none; display: inline-block; }
.rwbox .form__msg:empty { display: none; }

/* =========================================================
   v24
   ========================================================= */
/* 위 메뉴줄: 쿠폰 · 출석 픽토그램 */
.bar__ic { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); text-decoration: none; transition: color .15s; }
.bar__ic svg { width: var(--ico-md); height: var(--ico-md); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bar__ic:hover, .bar__ic.is-on { color: var(--red-light); }
.rw--one { grid-template-columns: minmax(0, var(--read)); justify-content: center; }

/* 글 아래 '글쓴이' 앞 GM: 배경 없이 글자색만 */
.article__foot .by i { width: auto; height: auto; background: none; color: var(--red-light); font-size: var(--fs-note); letter-spacing: var(--ls-ui); }

/* 시즌 진행 막대: 0~100% · 일정 있던 날 표식 */
.cseason { gap: 10px; padding-bottom: 10px; }
.cseason__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sbar { position: relative; padding-top: 26px; }
.sbar__track { position: relative; height: 12px; background: var(--bg-3); box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .04); }
.sbar__fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--red-deep), var(--red) 70%, var(--red-light)); }
.sbar__now { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; z-index: 2; }
.sbar__now b { padding: 1px 7px; font-size: var(--fs-badge); font-weight: 800; color: var(--ink-hi); background: var(--red); white-space: nowrap; }
.sbar__now::after { content: ""; width: 1px; height: 22px; background: rgba(var(--ink-hi-rgb), .9); }
.sbar__mk { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--bg-3); z-index: 1; }
.sbar__mk--raid, .sbar__mk--maint { border-radius: 0; transform: rotate(45deg); }
.sbar__mk--raid { border-color: var(--red-light); }
.sbar__mk--update { border-color: var(--teal); }
.sbar__mk--maint, .sbar__mk--etc { border-color: var(--ink-dim); }
.sbar__mk.is-past { background: var(--ink-hi); border-color: var(--ink-hi); }
.sbar__mk.is-today { background: var(--gold); border-color: var(--ink-hi); }
.sbar__scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: var(--fs-badge); color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.cseason__nums { align-items: center; }
.sbar__legend { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-badge); color: var(--ink-faint); }
.sbar__legend i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--gold); margin-left: 6px; }
.sbar__legend i.is-past { background: var(--ink-hi); border-color: var(--ink-hi); margin-left: 0; }

/* 쿠폰: 특정 계정 전용 코드 */
.cpcodes span.is-for { border-color: rgba(var(--red-rgb), .5); }
.cpfor { color: var(--red-light); font-family: inherit; }
.cpforbox { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid rgba(var(--red-rgb), .5); background: rgba(var(--red-rgb), .04); }
.cpforbox__h { margin: 0; font-size: var(--fs-sub); font-weight: 700; color: var(--ink-hi); }
.cpforbox__h small { margin-left: 6px; font-weight: 400; color: var(--ink-faint); }
.cpforbox__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.cpforbox__out { margin: 0; min-height: 1em; font-size: var(--fs-note); color: var(--red-light); }

/* =========================================================
   세계관 메인 (#/lore) — 화면을 꽉 채우는 4장면
   ========================================================= */
body.is-lore { background: var(--bg-0); }
body.is-lore .bar { background: rgba(var(--bg-0-rgb), .7); }
.lore { --vh: calc(100svh - var(--bar-h)); color: var(--ink-hi); overflow-x: clip; }
.lsec { position: relative; min-height: var(--vh); overflow: hidden; isolation: isolate; }

/* ---------- 1. 인트로: 배경이 천천히 다가오고 로고가 떠오름 ---------- */
.lintro { display: grid; place-items: center; background: var(--bg-0); }
.lintro__bg { position: absolute; inset: -2%; z-index: -2; background: var(--bg-0) center / cover no-repeat; opacity: 0; transform: scale(1);
  animation: lIntroBg 3.2s ease-out forwards, lIntroZoom 28s cubic-bezier(.2,.4,.2,1) forwards; }
.lintro::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(var(--bg-0-rgb), .7) 100%), linear-gradient(180deg, rgba(var(--bg-0-rgb), .5), transparent 30%, transparent 60%, var(--bg-0)); }
.lintro__fx { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.lintro__in { display: grid; justify-items: center; gap: 18px; padding: 0 20px; text-align: center; }
.lintro__logo { width: min(620px, 78vw); height: auto; opacity: 0; filter: blur(14px); transform: translateY(18px) scale(.96);
  animation: lLogo 2.4s cubic-bezier(.2,.7,.2,1) 1.4s forwards; }
.lintro__word { margin: 0; font-size: var(--fs-hero); font-weight: 800; letter-spacing: var(--ls-logo); opacity: 0; filter: blur(14px);
  animation: lLogo 2.4s cubic-bezier(.2,.7,.2,1) 1.4s forwards; text-shadow: 0 0 40px rgba(var(--bg-0-rgb), .9); }
.lintro__sub { margin: 0; max-width: 560px; font-size: var(--fs-body); color: var(--ink); opacity: 0; animation: lFade 1.6s ease 3.2s forwards; text-shadow: 0 1px 6px rgba(var(--bg-0-rgb), .9); }
.lintro__scroll { position: absolute; left: 50%; bottom: 28px; display: grid; justify-items: center; gap: 10px; transform: translateX(-50%);
  font-size: var(--fs-badge); letter-spacing: var(--ls-eyebrow); color: var(--ink-dim); opacity: 0; animation: lFade 1s ease 4s forwards; }
.lintro__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--red-light), transparent); animation: lDrop 2s ease-in-out infinite; transform-origin: top; }
@keyframes lIntroBg { to { opacity: 1; } }
@keyframes lIntroZoom { to { transform: scale(1.14); } }
@keyframes lLogo { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes lFade { to { opacity: 1; } }
@keyframes lDrop { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 2. 타임라인: 사건마다 배경이 바뀌며 다가옴 ---------- */
.ltl { display: flex; align-items: flex-end; background: var(--bg-0); }
.ltl__bgs { position: absolute; inset: 0; z-index: -2; }
.ltl__bg { position: absolute; inset: 0; background: var(--bg-0) center / cover no-repeat; opacity: 0; transform: scale(1.02); transition: opacity 1.4s ease; }
.ltl__bg.is-on { opacity: 1; animation: lStepZoom 16s cubic-bezier(.25,.4,.3,1) forwards; }
@keyframes lStepZoom { from { transform: scale(1.02); } to { transform: scale(1.16); } }
.ltl__shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--bg-0-rgb), .9) 0, rgba(var(--bg-0-rgb), .5) 42%, rgba(var(--bg-0-rgb), .08) 70%), linear-gradient(0deg, rgba(var(--bg-0-rgb), .9) 0, transparent 45%), linear-gradient(180deg, rgba(var(--bg-0-rgb), .7) 0, transparent 22%); }
.ltl__in { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; padding: 72px 0 48px; display: grid; gap: 34px; }
.ltl__head { opacity: 0; transform: translateY(20px); transition: opacity 1s ease, transform 1s ease; }
.ltl.is-in .ltl__head { opacity: 1; transform: none; }
.ltl__eyebrow { margin: 0 0 10px; font-size: var(--fs-note); letter-spacing: var(--ls-eyebrow); color: var(--red-light); }
.ltl__title { margin: 0; font-size: var(--fs-hero-sub); font-weight: 800; line-height: var(--lh-title); letter-spacing: var(--ls-title); text-shadow: 0 2px 20px rgba(var(--bg-0-rgb), .7); }
.ltl__rule { display: block; width: 0; height: 2px; margin-top: 22px; background: var(--red); transition: width 1.2s cubic-bezier(.2,.7,.2,1) .4s; }
.ltl.is-in .ltl__rule { width: 160px; }
.ltl__panels { display: grid; min-height: 220px; max-width: 620px; margin: 28px 0 22px; }   /* v45 제목 밑줄 ↔ 01/04 ↔ 아래 막대 사이 여백 */
.ltl__panel { grid-area: 1 / 1; align-self: end; opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity .5s ease, transform .5s ease; }
.ltl__panel.is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity 1s ease .35s, transform 1s cubic-bezier(.2,.7,.2,1) .35s; }
.ltl__no { margin: 0 0 6px; font-size: var(--fs-sub); font-weight: 700; letter-spacing: 0; color: var(--red-light); font-variant-numeric: tabular-nums; }
.ltl__no small { color: var(--ink-faint); font-weight: 400; }
.ltl__panel h3 { margin: 0 0 14px; font-size: var(--fs-hero-item); font-weight: 800; }
.ltl__text { margin: 0 0 10px; font-size: var(--fs-body); line-height: var(--lh-read); color: var(--ink); text-shadow: 0 1px 8px rgba(var(--bg-0-rgb), .9); }
/* 아래 점 · 선 */
.ltl__steps { display: flex; margin: 0; padding: 0 0 26px; list-style: none; }
.ltl__step { position: relative; display: flex; align-items: center; flex: 1 1 0; }
.ltl__step:last-child { flex: 0 0 auto; }
.ltl__dot { position: relative; z-index: 1; flex: none; width: 16px; height: 16px; padding: 0; border: 2px solid var(--ink-dim); border-radius: 50%; background: var(--bg-0); cursor: pointer; transition: border-color .3s, background .3s, transform .3s; }
.ltl__dot:hover { transform: scale(1.25); border-color: var(--ink-hi); }
.ltl__step.is-on .ltl__dot, .ltl__step.is-done .ltl__dot { border-color: var(--red); background: var(--red); }
.ltl__step.is-on .ltl__dot { box-shadow: 0 0 0 6px rgba(var(--red-rgb), .16); }
.ltl__check { position: absolute; left: 50%; bottom: 130%; width: 26px; height: 26px; transform: translateX(-30%) scale(.4); opacity: 0;
  background: var(--chk) center / contain no-repeat; transition: opacity .3s, transform .4s cubic-bezier(.3,1.6,.5,1); }
.ltl__check::before { content: ""; position: absolute; left: 4px; top: 4px; width: 9px; height: 15px; border: solid var(--red); border-width: 0 4px 4px 0; transform: rotate(40deg); opacity: var(--chk-fallback, 1); }
.ltl__step.is-done .ltl__check, .ltl__step.is-on .ltl__check { opacity: 1; transform: translateX(-30%) scale(1); }
.ltl__lbl { position: absolute; left: 8px; top: 26px; transform: translateX(-50%); white-space: nowrap; font-size: var(--fs-sub); color: var(--ink-dim); transition: color .3s; }
.ltl__step.is-on .ltl__lbl, .ltl__step.is-done .ltl__lbl { color: var(--ink-hi); }
.ltl__step:last-child .ltl__lbl { left: auto; right: -4px; transform: none; text-align: right; }
.ltl__line { position: relative; flex: 1; height: 2px; margin: 0 6px; background: rgba(var(--ink-rgb), .16); overflow: hidden; }
.ltl__line b { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* ---------- 3. 세계관 본문: 미로 → 더 박스 → 글레이드 (스크롤로 진행) ---------- */
.lglade { position: relative; height: 520vh; background: var(--bg-0); --dark: .55; --boxa: 0; --open: 0; --flash: 0; --leak: 0; --zoom: 1; --p: 0; }
.lglade__stage { position: sticky; top: var(--bar-h); height: var(--vh); overflow: hidden; }
.lglade__sky { position: absolute; inset: -3%; background: var(--bg-1) center / cover no-repeat; transform: scale(calc(var(--zoom) + (1 - var(--open)) * .08)); filter: brightness(calc(.55 + var(--open) * .45)); }
.lglade__wall { position: absolute; top: -2%; bottom: -2%; width: 58%; background: var(--bg-3) center / cover no-repeat; will-change: transform;
  filter: brightness(calc(.75 - var(--open) * .2)); box-shadow: 0 0 60px rgba(var(--bg-0-rgb), .9); }
.lglade__wall--l { left: 0; background-position: right center; transform: translateX(calc(var(--open) * -88%)); }
.lglade__wall--r { right: 0; background-position: left center; transform: translateX(calc(var(--open) * 88%)); }
.lglade__dark { position: absolute; inset: 0; background: var(--bg-0); opacity: var(--dark); }
.lglade__box { position: absolute; inset: 0; background: var(--bg-0) center / cover no-repeat; opacity: var(--boxa); }
.lglade.is-box .lglade__box { animation: lShake .22s steps(2) infinite; }
.lglade__leak { position: absolute; left: 50%; top: 0; width: 46%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(255,246,220,calc(var(--leak) * .7)), transparent 70%); mix-blend-mode: screen; }
@keyframes lShake { 0% { transform: translate(0, 0); } 50% { transform: translate(.5px, 1px); } 100% { transform: translate(-.5px, 0); } }
.lglade__flash { position: absolute; inset: 0; background: var(--ink-hi); opacity: var(--flash); pointer-events: none; }
.lglade__txt { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 18px; padding: 40px max(24px, calc(50% - 360px));
  opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.lglade__txt.is-on { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.lglade__p { margin: 0; font-size: var(--fs-item); line-height: var(--lh-read); text-align: center; color: var(--ink-hi); text-shadow: 0 1px 10px var(--bg-0), 0 0 2px var(--bg-0);
  opacity: 0; filter: blur(6px); transform: translateY(14px); transition: opacity 1s ease, filter 1s ease, transform 1s ease; }
.lglade__p.is-on { opacity: 1; filter: none; transform: none; }
.lglade__txt--glade .lglade__p { color: var(--ink-hi); }
.lglade__txt--glade { align-content: end; padding-bottom: 12vh; background: linear-gradient(0deg, rgba(var(--bg-0-rgb), .7), transparent 55%); }
.lglade__bridge { margin: 0; font-size: var(--fs-hero-item); font-weight: 700; letter-spacing: var(--ls-title); line-height: var(--lh-title); color: var(--ink-hi); text-align: center;
  opacity: 0; transform: scale(.96); transition: opacity 1.4s ease .2s, transform 2.4s ease .2s; }
.lglade__txt--bridge.is-on .lglade__bridge { opacity: 1; transform: none; }
.lglade__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(var(--ink-hi-rgb), .08); }
.lglade__bar b { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--red); }

/* ---------- 4. 단어 사전 ---------- */
/* v55: 배경 위 검은 막 90% → 30% (그림이 거의 안 보였음) · 위아래만 바탕색으로 자연스럽게 */
.ldict { padding: 90px 0 110px; background: linear-gradient(180deg, var(--bg-0) 0, rgba(var(--bg-0-rgb), .3) 18%, rgba(var(--bg-0-rgb), .3) 82%, var(--bg-0) 100%), var(--dbg) center / cover no-repeat, var(--bg-0); }
.ldict__in { display: grid; gap: 30px; }
.ldict__head { text-align: center; opacity: 0; transform: translateY(20px); transition: opacity 1s, transform 1s; }
.ldict.is-in .ldict__head { opacity: 1; transform: none; }
.ldict__lead { margin: 14px 0 0; color: var(--ink-dim); }
.ldict__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ldict__search { width: min(320px, 100%); }
.ldict__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.ldict__cat { height: 34px; padding: 0 14px; font-size: var(--fs-sub); color: var(--ink-dim); background: rgba(var(--bg-0-rgb), .3); border: 1px solid var(--line); cursor: pointer; }
.ldict__cat.is-on { color: var(--ink-hi); border-color: var(--red); background: rgba(var(--red-rgb), .16); }
.ldict__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.lcard { perspective: 1000px; opacity: 0; transform: translateY(22px); transition: opacity .7s ease calc(var(--i) * 60ms), transform .7s ease calc(var(--i) * 60ms); }
.lcard.is-in { opacity: 1; transform: none; }
.lcard__in { position: relative; display: block; width: 100%; height: 190px; padding: 0; color: inherit; background: none; border: 0; cursor: pointer;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.lcard.is-flip .lcard__in { transform: rotateY(180deg); }
.lcard__face { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 18px; text-align: center;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(var(--bg-3-rgb), .9), rgba(var(--bg-1-rgb), .9)); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lcard__in:hover .lcard__front { border-color: var(--line-strong); }
.lcard__front small { font-size: var(--fs-badge); letter-spacing: 0; color: var(--red-light); }
.lcard__front b { font-size: var(--fs-subtitle); font-weight: 800; }
.lcard__front em { font-style: normal; font-size: var(--fs-note); letter-spacing: 0; color: var(--ink-faint); }
.lcard__back { transform: rotateY(180deg); align-content: start; justify-items: start; text-align: left; border-color: rgba(var(--red-rgb), .7); background: linear-gradient(160deg, rgba(var(--wood-rgb), .9), rgba(var(--bg-1-rgb), .9)); }
.lcard__back b { font-size: var(--fs-body); color: var(--red-light); }
.lcard__back span { font-size: var(--fs-sub); line-height: var(--lh-body); color: var(--ink); overflow: auto; }
.lcard__back q { font-size: var(--fs-note); color: var(--ink-dim); font-style: italic; }
.ldict__more { display: flex; justify-content: center; padding-top: 10px; }
.ldict__more small { margin-left: 6px; opacity: .7; }

/* 관리: 세계관 메인 */
.lform__h { margin: 22px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-body); }
.lform__h small { margin-left: 6px; font-size: var(--fs-note); font-weight: 400; color: var(--ink-faint); }
.lfrows { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lfrow { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); background: rgba(var(--bg-0-rgb), .3); }
.lfrow__head { display: flex; align-items: center; justify-content: space-between; }
.lfrow__acts { display: flex; gap: 6px; }
.lfrow--dict { grid-template-columns: 1fr 1fr 1fr auto; align-items: start; }
.lfrow__wide { grid-column: 1 / -2; }
.lfrow--dict > .btn { grid-column: -2; grid-row: 1; }

@media (max-width: 760px) {
  .ltl__in { padding: 56px 0 36px; gap: 24px; }
  .ltl__panels { min-height: 260px; margin: 18px 0 16px; }
  .ltl__lbl { font-size: var(--fs-badge); }
  .ltl__step:not(.is-on):not(:first-child):not(:last-child) .ltl__lbl { opacity: 0; }
  .lglade { height: 600vh; }
  .lglade__wall { width: 64%; }
  .lglade__txt--maze .lglade__p:not(.is-cur), .lglade__txt--box .lglade__p:not(.is-cur), .lglade__txt--glade .lglade__p:not(.is-cur) { display: none; }   /* 좁은 화면: 지금 문단만 */
  .ltl__in { padding-bottom: 84px; }
  .lfrow--dict { grid-template-columns: 1fr; }
  .lfrow__wide, .lfrow--dict > .btn { grid-column: auto; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .lintro__bg, .ltl__bg.is-on { animation: none; opacity: 1; transform: none; }
  .lintro__logo, .lintro__word, .lintro__sub, .lintro__scroll { animation: none; opacity: 1; filter: none; transform: none; }
  .lglade.is-box .lglade__box { animation: none; }
}
.lfrow--dict textarea { min-height: 64px; }

/* 모달 창은 모서리를 둥글리지 않습니다 (로그인 · 회원가입 · 미접속 사유서 · 관리 창) */
dialog.dlg, dialog.sumodal, .dlg .dlg__in, .dlg > .panel, .sumodal .su { border-radius: 0; }

/* =========================================================
   상점 (#/shop) — 골드 · 꾸미기 · 게임 아이템
   ========================================================= */
.shop { display: grid; gap: 22px; }
.shop__wallet { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px 26px; background: var(--bg-3); border: 1px solid var(--line); }
.shop__bal { display: flex; align-items: center; gap: 14px; padding-right: 28px; border-right: 1px solid var(--line); }
.shop__coin { width: 46px; height: 46px; display: grid; place-items: center; font-weight: 800; font-size: var(--fs-subtitle); color: var(--paper-ink-2); background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 60%, var(--gold-light)); border: 1px solid rgba(var(--gold-rgb), .7); border-radius: 50%; }
.shop__bal small { display: block; font-size: var(--fs-note); color: var(--ink-faint); letter-spacing: 0; }
.shop__bal b { font-size: var(--fs-title); font-weight: 800; color: var(--ink-hi); line-height: var(--lh-snug); }
.shop__bal b i { font-style: normal; font-size: var(--fs-body); color: var(--gold-light); }
.shop__today { display: grid; gap: 8px; }
.shop__today p { display: flex; justify-content: space-between; gap: 10px; margin: 0; font-size: var(--fs-sub); color: var(--ink-dim); }
.shop__today p b { color: var(--ink); }
.shop__today small { font-size: var(--fs-note); color: var(--ink-faint); }
.shop__bar { display: block; height: 6px; background: rgba(var(--ink-rgb), .08); }
.shop__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red)); }
.shop__tabs { justify-self: start; }
.shop__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.shop__card { display: grid; grid-template-rows: auto 1fr auto; background: var(--bg-3); border: 1px solid var(--line); transition: border-color .15s; }
.shop__card:hover { border-color: var(--line-strong); }
.shop__card.is-done { opacity: .6; }
.shop__card.is-on { border-color: rgba(var(--gold-rgb), .7); }
.shop__art { aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(var(--ink-rgb), .08), rgba(var(--bg-0-rgb), .3)); border-bottom: 1px solid var(--line); }
.shop__art img { width: 62%; height: 62%; object-fit: contain; }
.shop__art--paper img, .shop__art--frame img { width: 78%; height: 78%; }
.shop__glyph { font-size: var(--fs-display); font-weight: 800; color: var(--ink-faint); }
.shop__swatch { display: grid; gap: 6px; justify-items: center; color: var(--c); }
.shop__tbadge { padding: 3px 12px; font-style: normal; font-size: var(--fs-sub); font-weight: 700; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.shop__cname { font-size: var(--fs-body); color: var(--c); }
.shop__swatch small { padding-left: 10px; font-size: var(--fs-sub); color: var(--ink-dim); box-shadow: inset 2px 0 0 var(--c); }
.shop__info { display: grid; align-content: start; gap: 4px; padding: 14px 16px 6px; }
.shop__kind { margin: 0; font-size: var(--fs-note); color: var(--ink-faint); letter-spacing: 0; }
.shop__name { margin: 0; font-size: var(--fs-body); font-weight: 700; color: var(--ink-hi); }
.shop__desc { margin: 0; font-size: var(--fs-sub); color: var(--ink-dim); line-height: var(--lh-body); }
.shop__lim { margin: 2px 0 0; font-size: var(--fs-note); color: var(--ink-faint); }
.shop__lim b { color: var(--ink); }
.shop__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 8px 16px 14px; }
.shop__price { font-size: var(--fs-sub); color: var(--gold-light); }
.shop__price b { font-size: var(--fs-body); font-weight: 800; color: var(--ink-hi); }
.shop__notes { margin: 0; padding: 16px 20px 16px 36px; display: grid; gap: 6px; font-size: var(--fs-sub); color: var(--ink-faint); border: 1px dashed var(--line); }
.shop__notes b { color: var(--ink-dim); }
.shop__mine { display: grid; gap: 14px; }
.shop__minehead { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: var(--fs-sub); color: var(--ink-dim); }
.shop__minehead .field { min-width: 200px; }
.shop__minehead small { margin-left: auto; color: var(--ink-faint); }
.shopbuy__item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; }
.shopbuy__item .shop__art { border: 1px solid var(--line); }
.shopbuy__item b { display: block; color: var(--ink-hi); }
.shopbuy__item small { display: block; margin-top: 4px; font-size: var(--fs-note); color: var(--ink-dim); }
.shopbuy__sum { margin: 0; font-size: var(--fs-sub); color: var(--ink-dim); }
.shopbuy__sum b { font-size: var(--fs-body); color: var(--ink-hi); }
.shopbuy__sum span b { font-size: inherit; color: var(--ink); }
.shop__dot { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; background: var(--c); }
.shopgold { display: grid; grid-template-columns: minmax(140px, 1fr) 140px minmax(160px, 2fr) auto; gap: 10px; align-items: center; margin-bottom: 14px; }
.adm__tbl { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sub); }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { font-weight: 600; color: var(--ink-faint); }
@media (max-width: 760px) {
  .shop__wallet { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .shop__bal { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop__foot { flex-wrap: wrap; }
  .shop__foot .btn { flex: 1; }
  .shopgold { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .bar__acts { gap: 4px; } .bar__ic { width: 30px; } .bar__ic svg { width: var(--ico-md); height: var(--ico-md); } }
@media (max-width: 420px) { .bar .brand b { display: none; } }

/* '앱으로 설치하기' (110번) */
button.hcta { border: 0; font-family: inherit; cursor: pointer; }
.appguide { max-width: 460px; display: grid; gap: 14px; }
.appguide__img { width: 100%; max-height: 60vh; object-fit: contain; background: var(--bg-1); border: 1px solid var(--line); }
.appguide__steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: var(--fs-sub); color: var(--ink-dim); line-height: var(--lh-body); }
.appguide__steps b { color: var(--ink); }

/* 세계관 메인: 섹션 단위로 넘기기 (한 번에 한 장면씩 화면에 꽉 차게 멈춤) */
html.is-snap { scroll-snap-type: y mandatory; scroll-padding-top: var(--bar-h); }
html.is-snap .lsec { scroll-snap-align: start; scroll-snap-stop: always; }
html.is-snap .lsnap { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: always; }
html.is-snap .foot { scroll-snap-align: end; }

/* 113 · 115. 골드 — 채도 낮은 노랑(--gold-light, 게임과 같은 색) · 동전 그림 assets/shop/coin.png (없으면 CSS 동전) */
.coin { position: relative; display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; vertical-align: middle; }
.coin::before { content: "G"; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 65%, var(--gold-light)); color: var(--paper-ink-2); font-size: var(--fs-badge); font-weight: 900; font-style: normal; }
.coin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.coin:has(img)::before { visibility: hidden; }
.coin--sm { width: 18px; height: 18px; }
.coin--sm::before { font-size: var(--fs-badge); }
.coin--lg { width: 46px; height: 46px; }
.coin--lg::before { font-size: var(--fs-subtitle); }
.bar__gold { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px; color: var(--gold-light); font-size: var(--fs-sub); text-decoration: none; white-space: nowrap; transition: color .15s; }
.bar__gold:hover, .bar__gold.is-on { color: var(--gold-light); }
.bar__gold b { font-variant-numeric: tabular-nums; font-weight: 700; }
.bar__gold.is-up b { animation: barGoldUp .9s ease-out; }
@keyframes barGoldUp { 0% { color: var(--ink-hi); text-shadow: 0 0 10px rgba(var(--gold-light-rgb), .9); } 100% { text-shadow: none; } }
/* 좁은 화면: 골드가 상점 아이콘을 겸함 */
@media (max-width: 760px) { .bar__gold + .bar__ic { display: none; } }

/* 115. 상점 개편: 정렬 · 쪽 · 카드 배경 그림 */
.shop__price { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); }
.shop__price b { font-size: var(--fs-body); font-weight: 800; color: var(--gold-light); }
.shop__bal b i { color: var(--gold-light); }
.shopbuy__sum b { color: var(--gold-light); }
.shop__bar2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: -4px; }
.shop__count { font-size: var(--fs-sub); color: var(--ink-faint); }
.shop__sorts { display: inline-flex; flex-wrap: wrap; }
.shop__sorts button { height: 34px; padding: 0 14px; border: 1px solid var(--line); background: none; color: var(--ink-dim); font: inherit; font-size: var(--fs-sub); cursor: pointer; }
.shop__sorts button + button { border-left: 0; }
.shop__sorts button:hover { color: var(--ink-hi); }
.shop__sorts button.is-on { color: var(--bg-2); background: var(--gold-light); border-color: var(--gold-light); }
.shop__pager button { width: auto; min-width: 36px; padding: 0 8px; color: var(--ink-dim); font: inherit; cursor: pointer; }
.shop__pager button.is-on { color: var(--bg-2); background: var(--gold-light); border-color: var(--gold-light); }
/* 카드 그림 칸 배경: 종류별(bg-<종류>.png) → 공통(bg.png) → 기본 무늬 순서로 깔림 */
.shop__art { background-image: url("../assets/shop/bg.png"), radial-gradient(circle at 50% 40%, rgba(var(--ink-rgb), .08), rgba(var(--bg-0-rgb), .3)); background-size: cover, auto; background-position: center; }
.shop__art--item        { background-image: url("../assets/shop/bg-item.png"), url("../assets/shop/bg.png"), radial-gradient(circle at 50% 40%, rgba(var(--ink-rgb), .08), rgba(var(--bg-0-rgb), .3)); background-size: cover, cover, auto; }
.shop__art--frame       { background-image: url("../assets/shop/bg-frame.png"), url("../assets/shop/bg.png"), radial-gradient(circle at 50% 40%, rgba(var(--ink-rgb), .08), rgba(var(--bg-0-rgb), .3)); background-size: cover, cover, auto; }
.shop__art--dice        { background-image: url("../assets/shop/bg-dice.png"), url("../assets/shop/bg.png"), radial-gradient(circle at 50% 40%, rgba(var(--ink-rgb), .08), rgba(var(--bg-0-rgb), .3)); background-size: cover, cover, auto; }
.shop__art--paper       { background-image: url("../assets/shop/bg-paper.png"), url("../assets/shop/bg.png"), radial-gradient(circle at 50% 40%, rgba(var(--ink-rgb), .08), rgba(var(--bg-0-rgb), .3)); background-size: cover, cover, auto; }
.shop__art--chat        { background-image: url("../assets/shop/bg-chat.png"), url("../assets/shop/bg.png"), radial-gradient(circle at 50% 40%, rgba(var(--ink-rgb), .08), rgba(var(--bg-0-rgb), .3)); background-size: cover, cover, auto; }
.shop__art--title_color { background-image: url("../assets/shop/bg-title.png"), url("../assets/shop/bg.png"), radial-gradient(circle at 50% 40%, rgba(var(--ink-rgb), .08), rgba(var(--bg-0-rgb), .3)); background-size: cover, cover, auto; }
.shop__art--slot        { background-image: url("../assets/shop/bg-slot.png"), url("../assets/shop/bg.png"), radial-gradient(circle at 50% 40%, rgba(var(--ink-rgb), .08), rgba(var(--bg-0-rgb), .3)); background-size: cover, cover, auto; }
@media (max-width: 640px) {
  .shop__sorts { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .shop__sorts button { padding: 0 4px; font-size: var(--fs-note); }
  .shop__pager { flex-wrap: wrap; gap: 6px; }
}

/* 116. 상점 그림 자리 더하기 */
.shop__fb { display: contents; }
.shop__fb[hidden] { display: none; }
/* 맨 위 골드 칸 배경: PC wallet.png · 휴대폰 wallet-m.png (없으면 PC 것 → 기본 색) */
.shop__wallet { background-color: var(--bg-3); background-image: url("../assets/shop/wallet.png"); background-size: cover; background-position: center; }
@media (max-width: 640px) { .shop__wallet { background-image: url("../assets/shop/wallet-m.png"), url("../assets/shop/wallet.png"); } }
/* 상점 페이지 배경 (v42): 화면에 고정 — 스크롤을 아무리 내려도 배경은 그대로 있고 상품만 위로 지나감 · PC page.jpg · 휴대폰 page-m.jpg */
.shoppage { position: relative; isolation: isolate; }
.shoppage::before { content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(var(--bg-0-rgb), .3), rgba(var(--bg-0-rgb), .5)), url("../assets/shop/page.jpg") center / cover no-repeat; opacity: .75; }
@media (max-width: 640px) { .shoppage::before { background-image: linear-gradient(rgba(var(--bg-0-rgb), .3), rgba(var(--bg-0-rgb), .5)), url("../assets/shop/page-m.jpg"), url("../assets/shop/page.jpg"); } }

/* 탈퇴 안내 (게임 115번) */
.banbox { display: grid; gap: 14px; max-width: 520px; }
.banbox__lead { margin: 0; color: var(--ink-dim); }
.banbox__reason { display: grid; gap: 6px; padding: 14px 16px; border-left: 3px solid var(--red); background: rgba(var(--red-rgb), .08); }
.banbox__reason b { font-size: var(--fs-sub); color: var(--red-light); }
.banbox__reason p { margin: 0; white-space: pre-line; line-height: var(--lh-body); max-height: 45vh; overflow-y: auto; }

/* ---------- 상점 축하 배너 (116번) ---------- */
/* 배너 그림 assets/home/banner.jpg(1920 × 1080) · banner-m.jpg(1080 × 1920) — 없으면 기본 hero 그림 */
.hero__slide--ad { background: var(--bg) center 40% / cover no-repeat, var(--bg-fb) center 40% / cover no-repeat, var(--bg-0); }
@media (max-width: 760px) { .hero__slide--ad { background-image: var(--bg-m), var(--bg-fb-m); } }
.hero__from { margin: 14px 0 0; font-size: var(--fs-sub); color: var(--ink); letter-spacing: 0; }
.hero__from span { color: var(--gold-light); }
.shop__ticket { display: grid; place-items: center; align-content: center; gap: 2px; width: 70%; aspect-ratio: 2 / 1; border: 1px dashed rgba(var(--gold-light-rgb), .7); background: rgba(var(--gold-light-rgb), .08); color: var(--gold-light); }
.shop__ticket b { font-size: var(--fs-item); letter-spacing: var(--ls-logo); }
.shop__ticket small { font-size: var(--fs-badge); opacity: .8; letter-spacing: var(--ls-logo); }
.shopbuy textarea { width: 100%; resize: vertical; min-height: 72px; height: 72px; }
.shopbuy__note { margin: 0; font-size: var(--fs-sub); line-height: var(--lh-body); color: var(--ink-dim); }
.shopbuy__note b { color: var(--gold-light); font-weight: 600; }
.shopbuy__item .shop__ticket { width: 80%; }
.shopbuy__item .shop__ticket b { font-size: var(--fs-badge); letter-spacing: var(--ls-logo); }
.shopbuy__item .shop__ticket small { font-size: var(--fs-badge); }

/* 로고 그림 — 심볼 assets/logo.png · 글자 assets/logo-text.png (게임과 같은 파일), 둘 다 같은 높이 */
.brand { --logo-h: 26px; }
.foot .brand { --logo-h: 26px; }
.brand__img { display: block; height: var(--logo-h); width: auto; }
.brand__img[hidden] { display: none; }
@media (max-width: 420px) { .bar .brand__img--word { display: none; } }

/* ---------- 모든 칸 · 버튼 · 창 직각 (공통) — 골드 동전 · 점 같은 동그라미만 그대로 ---------- */
:root { --radius: 0; --radius-lg: 0; }
.field input, .field select, .field textarea, .sf input, select, textarea, input, button { border-radius: 0; }
.ncard__tag { border-radius: 0; }

/* ---------- 세계관 메인 v39 ---------- */
.lintro__top { margin: 0; font-size: var(--fs-note); letter-spacing: 0; color: var(--ink-dim); opacity: 0; animation: lFade 1.4s ease 1s forwards; }
.lintro__sub { white-space: pre-line; }
/* 사이트 로고(심볼 + 글자)로 대신할 때: 두 그림 높이 같게 */
.lore__lock { display: inline-flex; align-items: center; gap: clamp(10px, 1.4vw, 20px); width: auto !important; }
.lore__lock img { display: block; height: clamp(46px, 7vw, 92px); width: auto; }
.lintro__logo.lore__lock { opacity: 0; filter: blur(14px); transform: translateY(18px) scale(.96); animation: lLogo 2.4s cubic-bezier(.2,.7,.2,1) 1.4s forwards; }
/* 타임라인 글 위치 */
.lore--tl-top .ltl { align-items: flex-start; }
.lore--tl-top .ltl__in { padding-top: calc(var(--bar-h, 64px) + 40px); }
.lore--tl-center .ltl { align-items: center; }
/* 본문 정렬 */
.lore--al-justify .lglade__p, .lread.lore--al-justify .lread__p { text-align: justify; word-break: keep-all; }
.lore--al-left .lglade__p, .lread.lore--al-left .lread__p { text-align: left; }
.lore--al-center .lread__p { text-align: center; }
.lore--al-justify .lglade__txt, .lore--al-left .lglade__txt { justify-items: stretch; }
/* 떠 있는 버튼 (글로 읽기 · 세계관 글) */
.lore__float { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; gap: 8px; }
.lore__fbtn { display: inline-flex; align-items: center; gap: 4px; height: var(--btn-h-sm); padding: 0 14px;
  color: var(--ink-hi); font-size: var(--fs-note); letter-spacing: var(--ls-ui); text-decoration: none; cursor: pointer; backdrop-filter: blur(6px); }

.lore__fbtn b { color: var(--gold-light); font-weight: 600; }
@media (max-width: 760px) { .lore__float { right: 12px; bottom: 12px; } .lore__fbtn { height: var(--btn-h-sm); padding: 0 11px; } }
/* v44 오른쪽 아래 소리 버튼(44px)과 겹치지 않게 그 위로 */
.has-snd .lore__float { bottom: 74px; }
@media (max-width: 760px) { .has-snd .lore__float { bottom: 74px; right: 20px; } }

/* 글로 읽는 화면 */
.lread__head { position: relative; display: grid; place-items: center; min-height: 52vh; padding: 60px 20px; text-align: center;
  background: linear-gradient(180deg, rgba(var(--bg-0-rgb), .3), rgba(var(--bg-0-rgb), .9)), var(--rbg) center / cover no-repeat, var(--bg-0); }
.lread__headin { display: grid; justify-items: center; gap: 16px; }
.lread__logo { width: min(460px, 72vw); height: auto; }
.lread__logo.lore__lock img { height: clamp(40px, 6vw, 72px); }
.lread__head .lintro__top { opacity: 1; animation: none; }
.lread__lead { margin: 0; max-width: 560px; color: var(--ink); white-space: pre-line; text-shadow: 0 1px 6px rgba(var(--bg-0-rgb), .9); }
.lread__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
/* v41: 띠(배경 · 밑줄)는 화면 끝까지, 글자는 아래 본문 칸(760px)과 같은 줄에 — 예전엔 띠가 1200px 칸에서 잘려 좌우가 끊겨 보였음 */
.lread__nav { position: sticky; top: var(--bar-h, 64px); z-index: 5; padding: 14px 0; background: rgba(var(--bg-0-rgb), .9); border-bottom: 1px solid var(--line); }
.lread__navin { display: flex; flex-wrap: wrap; gap: 4px 18px; width: min(760px, calc(100% - 32px)); margin-inline: auto; }
.lread__nav a { font-size: var(--fs-sub); color: var(--ink-dim); text-decoration: none; }
.lread__nav a:hover { color: var(--ink-hi); }
.lread__col { display: grid; gap: 64px; max-width: 760px; padding: 48px 0 90px; }
.lread__sec { display: grid; gap: 16px; scroll-margin-top: 130px; }
/* v55: 글로 읽기 화면 단어 사전에도 관리 → 세계관 → 단어 사전 배경 (화면 끝까지, 예전엔 배경 자리가 없었음) */
.lread { overflow-x: clip; }
.lread__sec--dict { position: relative; isolation: isolate; padding: 56px 0; }
.lread__sec--dict::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(rgba(var(--bg-0-rgb), .3), rgba(var(--bg-0-rgb), .3)), var(--dbg) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%); }
.lread__h { margin: 0; font-size: var(--fs-input); color: var(--ink-hi); }
.lread__h small { display: block; margin-top: 6px; font-size: var(--fs-sub); font-weight: 400; color: var(--ink-dim); }
.lread__p { margin: 0; line-height: var(--lh-read); color: var(--ink); }
.lread__bridge { margin: 10px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-size: var(--fs-body); color: var(--ink-hi); }
.lread__tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--line-strong); }
.lread__tl li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 6px; padding: 0 0 26px 0; }
.lread__tl li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; background: var(--red-light); }
.lread__tlno { padding-left: 18px; font-size: var(--fs-note); color: var(--ink-faint); letter-spacing: 0; padding-top: 3px; }
.lread__tl small { font-size: var(--fs-note); color: var(--red-light); letter-spacing: var(--ls-ui); }
.lread__tl h3 { margin: 2px 0 8px; font-size: var(--fs-body); color: var(--ink-hi); }
.lread__toc { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); background: rgba(var(--bg-0-rgb), .16); }
.lread__new { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid rgba(var(--red-rgb), .5); background: linear-gradient(90deg, rgba(var(--red-rgb), .16), transparent); text-decoration: none; }
.lread__new small { font-size: var(--fs-note); color: var(--red-light); letter-spacing: var(--ls-ui); }
.lread__new b { color: var(--ink-hi); font-size: var(--fs-body); }
.lread__new span { font-size: var(--fs-note); color: var(--ink-dim); }
.lread__dict { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.lread__dict > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lread__dict dt { color: var(--ink-hi); font-weight: 600; }
.lread__dict dt em, .lread__dict dt small { display: block; font-style: normal; font-weight: 400; font-size: var(--fs-note); color: var(--ink-faint); }
.lread__dict dd { margin: 0; color: var(--ink); line-height: var(--lh-read); }
.lread__dict q { display: block; margin-top: 6px; color: var(--ink-dim); font-size: var(--fs-sub); }
@media (max-width: 760px) {
  .lread__dict > div { grid-template-columns: 1fr; gap: 4px; }
  .lread__tl li { grid-template-columns: 1fr; } .lread__tlno { padding-top: 0; }
  .lread__tl li > div { padding-left: 18px; }
  .lread__col { gap: 48px; padding-top: 32px; }
}
.toc a.lread__new { display: grid; gap: 4px; padding: 14px 16px; border-left: 0; }

/* =========================================================
   123번: 약관 · 개인정보처리방침 · 없는 화면(E-404) · 가입 동의 · 문의 링크
   ========================================================= */
.foot__in a.foot__strong { color: var(--ink-hi); font-weight: 600; }
.lg__doc { max-width: 860px; margin: 0 auto; }
.lg__tabs { display: flex; gap: 6px; margin-top: 18px; }
.lg__tabs a { padding: 8px 14px; font-size: var(--fs-sub); color: var(--ink-dim); text-decoration: none; border: 1px solid rgba(var(--ink-rgb), .16); }
.lg__tabs a.is-on { color: var(--ink-hi); border-color: var(--red-deep); background: rgba(var(--red-deep-rgb), .16); }
.lg__body { margin-top: 26px; font-size: var(--fs-body); line-height: var(--lh-read); color: var(--ink); word-break: keep-all; }
.lg__body h2 { margin: 34px 0 10px; font-size: var(--fs-item); color: var(--ink-hi); }
.lg__body p { margin: 0 0 12px; }
.lg__body ol, .lg__body ul { margin: 0 0 12px; padding-left: 1.4em; }
.lg__body li { margin: 4px 0; }
.lg__lead { padding: 16px 18px; border-left: 2px solid var(--red-deep); background: rgba(var(--ink-rgb), .04); }
.lg__table { width: 100%; margin: 6px 0 14px; border-collapse: collapse; font-size: var(--fs-body); }
.lg__table th, .lg__table td { padding: 9px 12px; border: 1px solid rgba(var(--ink-rgb), .16); text-align: left; vertical-align: top; }
.lg__table thead th, .lg__table tbody th { color: var(--ink-hi); background: rgba(var(--ink-rgb), .04); font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .lg__body { font-size: var(--fs-body); } .lg__table { font-size: var(--fs-sub); } .lg__table th, .lg__table td { padding: 7px 8px; } }
.nf { max-width: 520px; padding-top: 70px; padding-bottom: 90px; text-align: center; }
.nf__code { margin: 0; font-size: var(--fs-note); letter-spacing: 0; color: var(--red-light); }
.nf .h1 { margin: 12px 0 14px; }
.nf__text { margin: 0 auto 26px; color: var(--ink-dim); line-height: var(--lh-body); }
.nf__acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.su__agree { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; text-align: left; font-size: var(--fs-sub); line-height: var(--lh-body); color: var(--ink-dim); cursor: pointer; }
.su__agree input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red-deep); }
.su__agree a { color: var(--red-light); text-decoration: underline; text-underline-offset: 2px; }
.su__agree.is-invalid span { color: var(--red-light); }
.form__hint { margin: 6px 0 0; font-size: var(--fs-note); color: var(--gold-light); }
.form__hint:empty { display: none; }
.tklinks { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.tklinks a { color: var(--gold-light); word-break: break-all; font-size: var(--fs-sub); }
.su__agree input { appearance: none; -webkit-appearance: none; display: grid; place-content: center; border: 1px solid rgba(var(--ink-rgb), .5); background: rgba(var(--bg-0-rgb), .3); border-radius: 0; cursor: pointer; }
.su__agree input:checked { background: var(--red-deep); border-color: var(--red-deep); }
.su__agree input:checked::after { content: ""; width: 9px; height: 5px; border: solid var(--ink-hi); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }

/* ---------- v42 홈 슬라이드: 그라데이션 세기 (관리 → 홈 슬라이드 → '그림 위 그라데이션') ---------- */
.hero--shade-soft::after { background: radial-gradient(ellipse at 30% 50%, transparent, rgba(var(--bg-0-rgb), .3) 80%), linear-gradient(0deg, rgba(var(--bg-1-rgb), .9), transparent 22%); }
.hero--shade-none::after { background: linear-gradient(0deg, rgba(var(--bg-1-rgb), .7), transparent 10%); }   /* 아래 경계만 아주 살짝 (페이지와 이어지게) */
.hero--shade-none .hero__title, .hero--shade-none .hero__lead, .hero--shade-none .hero__eyebrow,
.hero--shade-soft .hero__title, .hero--shade-soft .hero__lead { text-shadow: 0 2px 12px rgba(var(--bg-0-rgb), .9); }

/* ---------- v42 홈 슬라이드 버튼 모양 5가지 (paper = 예전 종이 조각) ---------- */
.hero--btn-solid .hcta, .hero--btn-ghost .hcta, .hero--btn-line .hcta, .hero--btn-stone .hcta {
  transform: none; min-width: 200px; height: 56px; padding: 0 28px; font-size: var(--fs-body); font-weight: 700; color: var(--ink-hi); }
.hero--btn-solid .hcta:hover, .hero--btn-ghost .hcta:hover, .hero--btn-line .hcta:hover, .hero--btn-stone .hcta:hover { transform: translateY(-1px); }
/* 빨간 버튼 */
.hero--btn-solid .hcta { background: var(--red-deep); border: 1px solid var(--red); box-shadow: 0 6px 18px rgba(var(--bg-0-rgb), .5); }
.hero--btn-solid .hcta:hover { filter: none; background: var(--red-deep); }
/* 반투명 테두리 */
.hero--btn-ghost .hcta { background: rgba(var(--bg-0-rgb), .5); border: 1px solid rgba(var(--ink-hi-rgb), .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero--btn-ghost .hcta:hover { filter: none; background: rgba(var(--bg-0-rgb), .7); border-color: var(--ink-hi); }
/* 밑줄 글자 */
.hero--btn-line .hcta { min-width: 0; height: 46px; padding: 0 2px; background: none; border: 0; border-bottom: 2px solid var(--red); letter-spacing: var(--ls-ui); text-shadow: 0 2px 10px rgba(var(--bg-0-rgb), .9); }
.hero--btn-line .hcta:hover { filter: none; border-bottom-color: var(--ink-hi); }
/* 돌 질감 (게임 버튼과 같은 느낌) */
.hero--btn-stone .hcta { border: 1px solid rgba(var(--ink-hi-rgb), .3); text-shadow: 0 1px 2px rgba(var(--bg-0-rgb), .7);
  box-shadow: inset 0 0 0 1px rgba(var(--bg-0-rgb), .3), 0 4px 14px rgba(var(--bg-0-rgb), .5);
  background: url("../assets/btn-stone.jpg") center / cover, radial-gradient(ellipse at 30% 30%, var(--ink-faint) 0%, var(--stone) 60%, var(--stone) 100%); }
.hero--btn-stone .hcta:hover { filter: brightness(1.12); }
@media (max-width: 760px) { .hero--btn-solid .hcta, .hero--btn-ghost .hcta, .hero--btn-stone .hcta { min-width: 170px; height: 50px; } }
/* 관리 화면: 버튼 모양 고르기 칸에 실제 모양으로 */
.hbtn-pick .choice span { height: auto; padding: 8px; background: var(--bg-3); }
.hbtn-pick .choice input:checked + span { border-color: var(--red); background: var(--bg-3); }
.hbtn-pick .hcta.hcta--mini { min-width: 0; height: 36px; padding: 0 14px; font-size: var(--fs-sub); font-style: normal; pointer-events: none; }
.hbtn-pick .hero--btn-line .hcta.hcta--mini { height: 30px; padding: 0 2px; }

/* ---------- v42 출석 체크: 'N일차' 출석판 (출석한 횟수로 셈 · 7일마다 큰 선물) ---------- */
.rw--atd { grid-template-columns: minmax(0, 960px); justify-content: center; }
.atd { display: grid; gap: 22px; }
.atd__head { --atd-sh: rgba(var(--bg-1-rgb), .7); display: grid; justify-items: center; gap: 8px; padding: 30px 20px 26px; text-align: center;
  border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, rgba(var(--red-rgb), .16), transparent 70%), linear-gradient(var(--atd-sh), var(--atd-sh)), var(--atd-bg, none) center / cover no-repeat, var(--bg-2); }
/* v43 관리 → 출석 보상 → 화면 꾸미기 */
.atd__head--soft { --atd-sh: rgba(var(--bg-1-rgb), .5); }
.atd__head--none { --atd-sh: transparent; }
.atd__head--soft > *, .atd__head--none > * { text-shadow: 0 1px 3px rgba(var(--bg-0-rgb), .9), 0 0 14px rgba(var(--bg-0-rgb), .7); }
.atd__head--left { justify-items: start; text-align: left; padding: 34px 36px 30px; }
.atd__lead small, .atd__rw small { display: block; }
.atd__rw small { margin-top: 2px; font-size: var(--fs-badge); color: var(--gold-light); }
.atd__eyebrow { margin: 0; font-size: var(--fs-note); letter-spacing: var(--ls-eyebrow); color: var(--red); }
.atd__title { margin: 0; font-size: var(--fs-hero-sub); font-weight: 800; letter-spacing: var(--ls-title); line-height: var(--lh-title); color: var(--ink-hi); }
.atd__lead { margin: 0; max-width: 560px; font-size: var(--fs-sub); line-height: var(--lh-read); color: var(--ink); }
.atd__lead b { color: var(--red-light); font-weight: 600; }
.atd__period { margin: 4px 0 0; padding: 6px 16px; font-size: var(--fs-sub); font-weight: 600; color: var(--ink-hi); background: var(--red-deep); }
.atd__steps { list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 1px solid var(--line); background: var(--bg-2); counter-reset: s; }
.atd__steps li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: var(--fs-sub); color: var(--ink); }
.atd__steps li + li::before { content: "›"; position: absolute; left: -10px; top: 2px; font-size: var(--fs-subtitle); color: var(--red); }
.atd__steps b { padding: 4px 14px; font-size: var(--fs-note); letter-spacing: var(--ls-logo); color: var(--ink-hi); background: var(--bg-3); border: 1px solid rgba(var(--ink-hi-rgb), .16); }
.atd__steps em { font-style: normal; font-weight: 600; color: var(--ink-hi); }
/* 판: 7칸 · 첫 줄은 '출석 일수' 칸이 4칸을 차지 */
.atd__board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 12px;
  background: linear-gradient(180deg, var(--red-deep), var(--red-deep)); border: 1px solid var(--red-deep); box-shadow: inset 0 0 40px rgba(var(--bg-0-rgb), .5); }
.atd__count { grid-column: span 4; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; padding: 14px; background: var(--bg-2); border: 1px solid rgba(var(--bg-0-rgb), .7); }
.atd__num { display: grid; align-content: center; justify-items: center; gap: 2px; padding: 8px; background: var(--bg-1); border: 1px solid rgba(var(--ink-hi-rgb), .08); }
.atd__num span { font-size: var(--fs-sub); color: var(--ink-dim); }
.atd__num b { font-size: var(--fs-display); line-height: var(--lh-snug); font-weight: 800; color: var(--ink-hi); font-variant-numeric: tabular-nums; }
.atd__num small { font-size: var(--fs-note); color: var(--red-light); text-align: center; }
.atd__form { display: grid; align-content: center; gap: 8px; }
.atd__form .btn { width: 100%; }
.atd__form .form__msg:empty { display: none; }
.atd__day { position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 4px; min-height: 128px; padding: 8px 6px 10px;
  text-align: center; background: var(--red-deep); border: 1px solid rgba(var(--bg-0-rgb), .5); }
.atd__d { font-size: var(--fs-note); font-weight: 600; color: var(--ink-hi); }
.atd__d em { font-style: normal; margin-left: 2px; padding: 1px 5px; font-size: var(--fs-badge); color: var(--paper-ink); background: var(--gold-light); }
.atd__ic { display: grid; place-items: center; width: 48px; height: 48px; background: rgba(var(--bg-0-rgb), .3); border: 1px solid rgba(var(--bg-0-rgb), .3); }
.atd__ic img { width: 40px; height: 40px; object-fit: contain; }
.atd__glyph { display: grid; place-items: center; font-size: var(--fs-note); color: var(--ink); }
.atd__glyph svg { width: var(--ico-lg); height: var(--ico-lg); fill: none; stroke: currentColor; stroke-width: 1.6; }
.atd__glyph--t { font-weight: 700; color: var(--gold-light); }
.atd__rw { font-size: var(--fs-badge); line-height: var(--lh-ui); color: var(--ink); word-break: keep-all; }
/* 7일마다 큰 선물 */
.atd__day.is-big { background: linear-gradient(180deg, var(--red-deep), var(--red-deep)); border-color: var(--gold-light); box-shadow: inset 0 0 0 1px rgba(var(--gold-light-rgb), .3); }
.atd__day.is-big .atd__ic { width: 56px; height: 56px; border-color: rgba(var(--gold-light-rgb), .5); }
/* 출석한 칸: 도장 */
.atd__day.is-got { background: var(--wood); }
.atd__day.is-got .atd__ic, .atd__day.is-got .atd__rw, .atd__day.is-got .atd__d { opacity: .45; }
.atd__stamp { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 70px; height: 34px; margin: -17px 0 0 -35px;
  font-size: var(--fs-body); font-weight: 800; letter-spacing: 0; color: var(--red); border: 3px double var(--red);
  transform: rotate(var(--r, -14deg)); text-shadow: 0 0 6px rgba(var(--bg-0-rgb), .7); box-shadow: 0 0 0 2px rgba(var(--red-rgb), .16); }
.atd__stamp img { display: none; }
.atd__stamp.is-img { width: 86px; height: 86px; margin: -43px 0 0 -43px; border: 0; box-shadow: none; }
.atd__stamp.is-img img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(var(--bg-0-rgb), .5)); }
.atd__stamp.is-img b { display: none; }
/* 오늘 받을 칸 */
.atd__day.is-next { border-color: var(--ink-hi); box-shadow: 0 0 0 1px var(--ink-hi), 0 0 18px rgba(var(--ink-hi-rgb), .3); }
.atd__today { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 1px 8px; font-size: var(--fs-badge); font-weight: 700; color: var(--paper-ink); background: var(--ink-hi); }
/* 누적 선물 줄 */
.atd__gifts { padding: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.atd__h { margin: 0 0 14px; font-size: var(--fs-body); color: var(--ink-hi); text-align: center; }
.atd__h small { display: block; margin-top: 4px; font-size: var(--fs-note); font-weight: 400; color: var(--ink-dim); }
.atd__gifts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.atd__gifts li { display: grid; justify-items: center; gap: 6px; width: 132px; padding: 12px 8px; text-align: center; background: var(--red-deep); border: 1px solid var(--red-deep); }
.atd__gifts li b { font-size: var(--fs-sub); color: var(--ink-hi); }
.atd__gifts li em { font-style: normal; width: 100%; padding: 5px 0; font-size: var(--fs-note); font-weight: 600; color: var(--ink-hi); background: var(--bg-3); }
.atd__gifts li.is-got em { background: var(--red-deep); }
.atd__notes { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 4px 6px 0; }
.atd__notes p { margin: 0; font-size: var(--fs-sub); font-weight: 700; color: var(--red-light); }
.atd__notes ul { margin: 0; padding-left: 16px; display: grid; gap: 4px; font-size: var(--fs-note); line-height: var(--lh-body); color: var(--ink-dim); }
@media (max-width: 760px) {
  .atd__steps { grid-template-columns: 1fr; } .atd__steps li + li::before { content: none; }
  .atd__board { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px; gap: 5px; }
  .atd__count { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .atd__day { min-height: 112px; }
  .atd__notes { grid-template-columns: 1fr; gap: 6px; }
}

/* v43 관리 → 출석 보상 판 */
.arb { display: grid; gap: 10px; }
.arb__daily { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; color: inherit; font: inherit; cursor: pointer; background: var(--bg-2); border: 1px solid var(--line); }
.arb__daily:hover, .arb__c:hover { border-color: var(--red-light); }
.arb__daily.is-empty { border-style: dashed; }
.arb__txt { display: grid; gap: 2px; min-width: 0; }
.arb__txt b { font-size: var(--fs-body); color: var(--ink-hi); }
.arb__txt small { font-size: var(--fs-sub); color: var(--ink); }
.arb__txt em { font-style: normal; font-size: var(--fs-note); color: var(--ink-dim); }
.arb__ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: rgba(var(--bg-0-rgb), .3); border: 1px solid rgba(var(--bg-0-rgb), .3); }
.arb__ic img { width: 36px; height: 36px; object-fit: contain; }
.arb__t { font-size: var(--fs-badge); font-weight: 700; color: var(--gold-light); }
.arb__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 10px; background: var(--red-deep); border: 1px solid var(--red-deep); }
.arb__c { position: relative; display: grid; justify-items: center; align-content: start; gap: 5px; min-height: 118px; padding: 8px 4px; color: inherit; font: inherit; cursor: pointer; background: var(--red-deep); border: 1px solid rgba(var(--bg-0-rgb), .5); }
.arb__c b { font-size: var(--fs-note); color: var(--ink-hi); }
.arb__c em { position: absolute; top: 6px; right: 6px; padding: 0 4px; font-style: normal; font-size: var(--fs-badge); color: var(--paper-ink); background: var(--gold-light); }
.arb__c small { font-size: var(--fs-badge); line-height: var(--lh-ui); color: var(--ink); word-break: keep-all; text-align: center; }
.arb__c i { font-style: normal; font-size: var(--fs-badge); color: var(--gold-light); }
.arb__c:not(.has) .arb__ic, .arb__c:not(.has) small { opacity: .38; }
.arb__c.has { background: var(--red-deep); }
.arb__c.is-big { border-color: var(--gold-light); }
@media (max-width: 760px) { .arb__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px; } .atd__stamp.is-img { width: 70px; height: 70px; margin: -35px 0 0 -35px; } .atd__head--left { padding: 26px 20px; } }

/* v47 · 132번 출석 보상 무작위 · 골라 받기 */
.rwed__row .field[data-rk-src] { grid-column: 2; }
.rwed__pool { grid-column: 1 / -1; display: grid; gap: 6px; padding: 10px 12px; background: rgba(var(--ink-hi-rgb), .04); border: 1px dashed var(--line); }
.rwed__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rwed__chips:empty::before { content: "아직 후보가 없습니다"; font-size: var(--fs-note); color: var(--ink-faint); }
.rwed__chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 10px; font-size: var(--fs-sub); color: var(--ink); background: rgba(var(--gold-light-rgb), .08); border: 1px solid rgba(var(--gold-light-rgb), .5); }
.rwed__chip button { width: 22px; height: 22px; padding: 0; font: inherit; line-height: 1; color: var(--ink-dim); background: none; border: 0; cursor: pointer; }
.rwed__chip button:hover { color: var(--red-light); }
.rwed__padd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.atdpick { display: grid; gap: 16px; }
.atdpick__g { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.atdpick__g legend { padding: 0; margin-bottom: 10px; font-weight: 700; color: var(--ink); }
.atdpick__g legend small { margin-left: 6px; font-weight: 400; color: var(--ink-faint); }
.atdpick__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; max-height: 46vh; overflow: auto; }
.atdpick__it { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; text-align: center; font-size: var(--fs-sub); color: var(--ink-dim); background: rgba(var(--ink-hi-rgb), .04); border: 1px solid var(--line); cursor: pointer; }
.atdpick__it input { position: absolute; opacity: 0; pointer-events: none; }
.atdpick__it:has(input:checked) { color: var(--ink); border-color: var(--gold-light, var(--gold-light)); box-shadow: inset 0 0 0 1px var(--gold-light, var(--gold-light)); background: rgba(var(--gold-light-rgb), .08); }
.atdpick__it:has(input:focus-visible) { outline: 2px solid var(--gold-light, var(--gold-light)); outline-offset: 2px; }
.atdpick__ic { width: 48px; height: 48px; display: grid; place-items: center; }
.atdpick__ic img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 760px) { .rwed__padd { grid-template-columns: 1fr; } .atdpick__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* v166 글자 체계: 휴대폰에서는 제목 · 부제목만 한 단계 작게 (나머지는 PC와 같음) */
@media (max-width: 760px) { :root { --fs-title: 22.5px; --fs-subtitle: 19.5px; } }

/* v166 숫자 뱃지 — 게임과 같은 모양: 동그란 원 안에 숫자 (20 × 20, --fs-badge) */
.nbadge { display: inline-grid; place-items: center; box-sizing: border-box; min-width: 20px; height: 20px; padding: 0 3px; border-radius: 10px;
  font-style: normal; font-size: var(--fs-badge); font-weight: 700; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--ink-hi); background: var(--red); vertical-align: middle; }

/* ==========================================================
   v49 창 너비: 작은 창 S 560 · 중간 M 920 · 큰 창 L 1180 세 가지만 (게임과 같은 값)
   너비가 바뀐 창은 안쪽 여백 · 간격을 같은 비율로 맞춰 예전과 똑같은 비율로 보이게 함
   · 기본 창(dlg) 420 → S 560 : ×1.345   · 로그인 480 → S 560 : ×1.17
   · 중간 창(dlg--mid) 620 → S 560 : ×0.9 · 넓은 창(dlg--wide) 880 → M 920 : ×1.046
   휴대폰(760px 이하)은 예전 그대로.
   ========================================================== */
:root { --mw-s: 560px; --mw-m: 920px; --mw-l: 1180px; }
.dlg, .dlg--mid, #loginDlg, .sumodal { width: min(var(--mw-s), calc(100% - 32px)); }
.dlg--wide { width: min(var(--mw-m), calc(100% - 32px)); }
@media (min-width: 761px) {
  .dlg .dlg__in { gap: 24px; padding: 43px 40px 35px; }
  .dlg--mid .dlg__in { gap: 16px; padding: 29px 27px 23px; }
  .dlg--wide .dlg__in { gap: 19px; padding: 33px 31px 27px; }
  #loginDlg .dlg__in { gap: 23px; padding: 52px 47px 42px; }
}

/* v53: 아이폰은 16px보다 작은 입력칸을 누르면 화면을 확대함 → 휴대폰에서는 모든 입력칸을 --fs-input(16.5) (게임과 같은 규칙) */
@media (max-width: 760px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), textarea, select { font-size: var(--fs-input) !important; }
}
