/* 이편한자막 웹 공통 스타일 — 홈(/), 서비스 소개(/service), 요금제, 학습(/app), 계정, 로그인, 약관이 같이 쓴다.
   기준: 흰 바탕 · 짙은 남색 글씨 · 연회색 면 · 둥근 카드와 알약 버튼 · 부드러운 그림자 · 짧은 문구.
   색의 뜻은 확장과 같다: 먹색 = 원문, 파랑(--easy) = 쉬운말, 노랑(--sign) = 수어. */

:root {
  --bg: #ffffff;
  --bg-2: #f4f5f7;        /* 연회색 면(카드 바탕, 입력칸 등) */
  --bg-3: #eceef2;
  --card: #ffffff;
  --ink: #0f1729;
  --ink-2: #4a5263;
  --ink-3: #5f6776;
  --line: #eceef2;
  --line-2: #dcdfe5;
  --sign: #ffd60a;
  --sign-ink: #3d3200;
  --easy: #1366e4;
  --easy-soft: #e9f1fe;
  --good: #16a34a;
  --bad: #e5484d;
  --maxw: 1120px;
  --gut: clamp(20px, 4vw, 32px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;          /* 상단 메뉴가 떠올랐을 때의 아래 끝(60 + 10 + 여유) — 그 아래 붙는 요소의 top */
  --r: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 41, .04), 0 12px 32px -12px rgba(15, 23, 41, .14);
  --shadow-lg: 0 2px 4px rgba(15, 23, 41, .04), 0 24px 60px -20px rgba(15, 23, 41, .25);
  /* 어두운 강조 면(학습 "오늘 할 일", 서비스 소개 요금 띠 등). --ink를 배경으로 쓰면 다크 모드에서 흰 판이 되므로 따로 둔다 */
  --panel: #0f1729; --panel-ink: #ffffff; --panel-line: transparent;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* 남색 기운 없는 중성 어둠 — 면은 한 단계씩만 밝아진다 */
    --bg: #111113; --bg-2: #1c1c1f; --bg-3: #26262a; --card: #18181b; --ink: #f4f4f5; --ink-2: #b9b9c0; --ink-3: #85858e;
    --line: #26262a; --line-2: #34343a; --easy: #4c9dff; --easy-soft: rgba(76, 157, 255, .14); --good: #3fbf74; --bad: #ff6b6b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
    --panel: #1b1e27; --panel-ink: #f4f4f5; --panel-line: #2b2f3b;
    color-scheme: dark;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.6; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere;
  color: var(--ink); background: var(--bg); min-height: 100vh;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: none; }
img, video { max-width: 100%; display: block; }
::selection { background: var(--sign); color: #111; }
/* 초점 테두리는 요소의 원래 모서리를 따라간다 — 여기서 border-radius를 바꾸면 초점이 갈 때마다 버튼 모양이 달라진다 */
:focus-visible { outline: 2px solid var(--easy); outline-offset: 3px; }
/* 옆·아래 버튼이 테두리 위에 덧그려져 잘리지 않게 초점 요소를 한 층 위로. :where라 이미 층을 정한 메뉴·팝업은 그대로 */
:where(:focus-visible) { z-index: 1; }
/* 모서리 값이 없는 링크·글 줄은 각진 테두리 대신 살짝 둥글게 */
:where(a, summary, [role="button"], [tabindex]):where(:focus-visible) { border-radius: 6px; } /* 특이도 0 — 자기 모서리가 있는 버튼·알약은 그대로 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* ───────── 글자 ───────── */
/* 제목은 줄 길이를 고르게, 문단은 마지막 줄에 한 낱말만 남지 않게(지원 안 하는 브라우저는 그냥 무시) */
h1, h2, h3, h4 { text-wrap: balance; }
p, li, figcaption, dd, blockquote { text-wrap: pretty; }
.display { font-size: clamp(36px, 5.4vw, 60px); font-weight: 750; line-height: 1.22; letter-spacing: -0.04em; }
.h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 750; line-height: 1.3; letter-spacing: -0.035em; }
.h3 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; line-height: 1.4; letter-spacing: -0.03em; }
.lead { font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-2); line-height: 1.7; }
.center { text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--easy); }
.kicker.sign { color: #9a7a00; }
.kicker.ink { color: var(--ink-2); }

/* ───────── 상단 메뉴 ─────────
   맨 위에선 배경 없이 화면 폭에 펼쳐져 있다가, 내리면 가운데로 모이며 흰 막대로 떠오른다(.scrolled).
   높이는 그대로 두고 transform만 써서 아래 내용이 들썩이지 않는다. */
.top { position: sticky; top: 0; z-index: 40; padding: 0 var(--gut); pointer-events: none; }
.top-bar { pointer-events: auto; max-width: var(--maxw); margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 24px; padding: 0 4px; border-radius: 14px; background: transparent; box-shadow: 0 0 0 1px transparent;
  transition: max-width .45s var(--ease), padding .45s var(--ease), transform .45s var(--ease), background .3s, box-shadow .3s; }
.top.scrolled .top-bar { max-width: 1000px; padding: 0 8px 0 18px; transform: translateY(10px); background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 12px 28px -18px rgba(15, 23, 41, .35); }
@media (prefers-reduced-motion: reduce) { .top-bar { transition: none; } }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; letter-spacing: -0.03em; flex-shrink: 0; }
.logo img { width: 26px; height: 24px; object-fit: contain; }
.top-menu { display: flex; gap: 2px; margin: 0 auto; }
.top-menu a { position: relative; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.top-menu a:hover { color: var(--ink); background: var(--bg-2); }
.top-menu a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.top-menu a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink); }
.top-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top-menu ~ .top-right { margin-left: 0; }
.me-btn { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: box-shadow .2s; }
.me-btn .avatar { width: 34px; height: 34px; }
.me-btn:hover { box-shadow: 0 0 0 3px var(--bg-3); }
.learn-btn { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink); font-size: 14px; font-weight: 650; transition: background .2s; }
.learn-btn:hover { background: var(--bg-3); }
.learn-btn i { display: grid; width: 15px; height: 15px; }
.learn-btn svg { width: 100%; height: 100%; }
.learn-btn[aria-current="page"] { background: var(--ink); color: var(--bg); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; font-size: 13px; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.plan-tag { font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 2px 7px; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); }
.plan-tag.pro { background: var(--ink); color: var(--bg); }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 12px; place-items: center; }
.menu-toggle:hover { background: var(--bg-2); }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-pop { pointer-events: auto; position: absolute; right: max(var(--gut), calc((100vw - 1040px) / 2)); top: 80px; min-width: 240px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); padding: 8px; display: grid; animation: pop .25s var(--ease) both; }
.menu-pop .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-pop .who b { display: block; font-size: 14.5px; }
.menu-pop .who small { color: var(--ink-3); font-size: 12.5px; }
.menu-pop a, .menu-pop button { text-align: left; padding: 11px 12px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--bg-2); }
@media (max-width: 860px) {
  .top-menu { display: none; }
  .menu-toggle { display: grid; }
  .top-right .btn-soft { display: none; }
  .top-menu ~ .top-right { margin-left: auto; }
  /* 휴대폰에선 흐림(backdrop-filter)이 스크롤마다 다시 그려져 끊겨 보인다 — 불투명 바탕으로 */
  .top-bar { gap: 12px; }
  .top.scrolled .top-bar { padding: 0 6px 0 14px; }
}
@media (max-width: 400px) { .learn-btn span { display: none; } .learn-btn { width: 34px; padding: 0; justify-content: center; } .top-right { gap: 6px; } }
@media (max-width: 340px) { .logo-text { display: none; } }

/* ───────── 버튼·입력 ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 14px; font-size: 15px; font-weight: 700; white-space: nowrap; border: 0; transition: background .2s, color .2s, box-shadow .2s, transform .35s var(--ease), opacity .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover:not(:disabled) { opacity: .88; }
.btn-soft { background: var(--bg-2); color: var(--ink); }
.btn-soft:hover:not(:disabled) { background: var(--bg-3); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.btn-ghost:hover:not(:disabled) { box-shadow: 0 0 0 1px var(--ink-3); }
.btn-float { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-float:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn-sign { background: var(--sign); color: #111; }
.btn-quiet { color: var(--ink-2); padding: 0 12px; }
.btn-quiet:hover { color: var(--ink); background: var(--bg-2); }
.btn-danger { color: var(--bad); background: transparent; box-shadow: 0 0 0 1px color-mix(in srgb, var(--bad) 35%, transparent); }
.btn-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--bad) 8%, transparent); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--ink-2); flex-shrink: 0; }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn svg, .btn svg { width: 20px; height: 20px; }
.input { width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--bg-2); font-size: 15px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background .2s; }
.input:hover { background: var(--bg-3); }
.input:focus { outline: none; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }

.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--bg-2); gap: 2px; }
.seg button { height: 36px; padding: 0 16px; border-radius: 11px; font-size: 14px; font-weight: 700; color: var(--ink-3); transition: background .2s, color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 41, .1); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--bg-2); font-size: 13.5px; font-weight: 700; color: var(--ink-2); transition: background .2s, color .2s; }
.chip:hover { background: var(--bg-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip b { font-weight: 700; margin-left: 4px; opacity: .6; }

/* ───────── 카드·목록 ───────── */
.card { background: var(--card); border-radius: var(--r); padding: clamp(20px, 3vw, 28px); box-shadow: 0 0 0 1px var(--line); }
.panel { background: var(--bg-2); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); }
.card-title { font-size: 15.5px; font-weight: 750; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em; }
.card-title .more { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.card-title .more:hover { color: var(--ink); }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 750; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.badge.warn { background: color-mix(in srgb, var(--sign) 45%, transparent); color: var(--sign-ink); }
.badge.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.badge.ink { background: var(--ink); color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.warn { color: var(--sign); } }

.page { padding: clamp(24px, 5vw, 56px) 0 112px; }
.page-head { margin-bottom: clamp(24px, 4vw, 40px); }
.page-title { font-size: clamp(30px, 4.2vw, 44px); font-weight: 750; letter-spacing: -0.04em; line-height: 1.2; }
.page-sub { margin-top: 10px; color: var(--ink-2); font-size: 16.5px; }

.meter { display: grid; gap: 7px; }
.meter-top { display: flex; justify-content: space-between; font-size: 14px; }
.meter-top b { font-weight: 650; }
.meter-bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); width: var(--p, 0%); transition: width .8s var(--ease); }
.meter.full .meter-bar i { background: var(--bad); }

.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty h3 { color: var(--ink); font-size: 18px; margin-bottom: 8px; letter-spacing: -0.02em; }
.empty .btn { margin-top: 18px; }
.skeleton { background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-3) 50%, var(--bg-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: 12px; min-height: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 모달·알림 */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(8, 11, 20, .42); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 16px; animation: fade .2s both; }
.modal { width: min(440px, 100%); background: var(--card); border-radius: 14px; padding: 26px; box-shadow: var(--shadow-lg); animation: pop .35s var(--ease) both; }
.modal h2 { font-size: 19px; letter-spacing: -0.03em; margin-bottom: 8px; }
.modal p { color: var(--ink-2); font-size: 15px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 650; box-shadow: var(--shadow-lg); transition: opacity .25s, transform .4s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; }
/* 새 버전 알림(core.js watchDeploy) — 토스트 자리에 뜨지만 닫기 전까지 남는다. 버튼 파랑은 다크 모드에서도 흰 글자 대비가 되게 고정 */
.update-toast { position: fixed; left: 50%; bottom: 28px; z-index: 119; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px); padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--panel); color: var(--panel-ink); border: 1px solid var(--panel-line); box-shadow: var(--shadow-lg); font-size: 14.5px; font-weight: 650; animation: pop .35s var(--ease) both; }
.update-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--easy); flex: none; }
.update-btn { flex: none; font: inherit; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 999px; background: #1366e4; color: #fff; }
.update-btn:hover { background: #0f56c2; }
.update-x { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: inherit; opacity: .6; }
.update-x:hover { opacity: 1; }
.update-x svg { width: 16px; height: 16px; }

/* 자주 묻는 질문 */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); padding: 0 4px; }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 16.5px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; letter-spacing: -0.02em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-list details p { padding: 0 0 20px; color: var(--ink-2); font-size: 15px; }
.faq-list details a { text-decoration: underline; text-underline-offset: 3px; }

/* ───────── 푸터 (어두운 면) ───────── */
.foot { background: #0b0f19; color: #e7eaf0; padding: clamp(56px, 7vw, 88px) 0 40px; margin-top: 0; }
.foot .wrap { display: grid; gap: 48px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.foot-top .logo { color: #fff; margin-bottom: 18px; }
.foot-top h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 750; line-height: 1.35; letter-spacing: -0.035em; color: #fff; }
.foot-cta { background: #fff; color: #0b0f19; }
.foot-cta:hover { opacity: .9; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot-cols h3 { font-size: 13px; font-weight: 600; color: #7c8494; margin-bottom: 12px; }
.foot-cols a { display: block; width: max-content; max-width: 100%; font-size: 14.5px; color: #cfd4dd; padding: 5px 0; transition: color .2s; } /* 글자만큼만 — 초점 테두리가 칸 폭 전체로 그려지지 않게 */
.foot-cols a:hover { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot { background: #0a0a0b; border-top: 1px solid var(--line); } }
.foot-biz { border-top: 1px solid #1d2331; padding-top: 24px; font-size: 12.5px; color: #8b93a3; line-height: 1.8; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 등장 효과(화면에 들어오면 한 번) */
/* 첫 화면(히어로)에는 쓰지 않는다 — 글이 늦게 떠서 로딩이 긴 것처럼 느껴졌다 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .65s var(--ease); transition-delay: calc(var(--lag, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }
/* 휴대폰에선 빨리 넘기면 빈칸이 먼저 보였다가 나타나 끊겨 보였다 — 터치 기기는 처음부터 보인다 */
@media (hover: none) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* 팝업 공지(core.js showNotices) */
.notice:focus { outline: none; }
/* 흔히 보는 사이트 팝업 모양: 사진 → 제목·내용 → 아래 띠(오늘 하루 보지 않기 | 닫기) */
.notice { position: relative; width: min(400px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px -18px rgba(15, 23, 41, .45); animation: pop .3s var(--ease) both; }
.notice-scroll { overflow: auto; }
.notice-img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.notice-body { padding: 22px 22px 20px; }
.notice h2 { font-size: 19px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.4; }
.notice p { margin-top: 10px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-line; }
.notice-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 14.5px; font-weight: 700; color: var(--easy); }
.notice-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.notice-bar { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); flex: none; }
.notice-bar button { height: 48px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--bg-2); }
.notice-bar button + button { border-left: 1px solid var(--line); color: var(--ink); }
.notice-bar button:hover { background: var(--bg-3); }

/* ───────── 오류 화면 부품(lib/core.js errorScreen · errorModal · banner · toast 버튼) ───────── */
.err-page { min-height: calc(100dvh - var(--nav-h)); display: grid; place-items: center; padding: 24px var(--gut) 80px; }
.err-screen { max-width: 460px; margin: 0 auto; padding: 40px 0; display: grid; justify-items: center; gap: 12px; text-align: center; }
.err-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--bad) 12%, var(--card)); color: var(--bad); margin-bottom: 6px; }
.err-ic svg { width: 30px; height: 30px; }
.err-screen.offline .err-ic, .err-ic.offline { background: var(--bg-2); color: var(--ink-2); }
.err-screen.maint .err-ic, .err-ic.maint { background: color-mix(in srgb, var(--sign) 40%, var(--card)); color: var(--sign-ink); }
.err-screen.lock .err-ic, .err-ic.lock, .err-ic.card { background: var(--bg-2); color: var(--ink); }
.err-screen h1 { font-size: clamp(22px, 3vw, 28px); font-weight: 780; letter-spacing: -0.04em; line-height: 1.3; }
.err-screen > p { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.err-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.err-code { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.err-mail { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 12px 16px; border-radius: 14px; background: var(--bg-2); }
.err-modal { display: grid; gap: 8px; }
.err-modal .err-ic.sm { width: 44px; height: 44px; margin: 0 0 4px; }
.err-modal .err-ic.sm svg { width: 22px; height: 22px; }
.err-modal h2 { font-size: 19px; letter-spacing: -0.03em; }
.err-modal > p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.err-detail { font-size: 13px; color: var(--ink-3); }
.err-detail summary { cursor: pointer; width: max-content; }
.err-detail p { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); word-break: break-all; }

.banner-stack { position: sticky; top: 0; z-index: 60; display: grid; }
.banner { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px var(--gut); font-size: 14px; font-weight: 650; text-align: center; animation: fade .25s both; }
.banner.warn { background: #fff6d6; color: #5c4800; }
.banner.bad { background: #fdecec; color: #a4282c; }
.banner.good { background: #e7f6ec; color: #13733a; }
.banner-btn { font: inherit; font-size: 13.5px; font-weight: 750; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .08); color: inherit; }
.banner-btn:hover { background: rgba(0, 0, 0, .14); }
.banner-x { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: inherit; opacity: .7; }
.banner-x svg { width: 16px; height: 16px; }
.toast.has-action { display: flex; align-items: center; gap: 12px; }
.toast.show.has-action { pointer-events: auto; }
.toast.bad .toast-btn { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.toast-btn { font: inherit; font-size: 13.5px; font-weight: 750; color: var(--sign); padding: 2px 4px; }

/* 자바스크립트가 꺼졌거나 너무 오래된 브라우저 */
.noscript { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; padding: 24px; background: #fff; color: #0f1729; text-align: center; font-family: -apple-system, "Malgun Gothic", sans-serif; }
.noscript b { display: block; font-size: 22px; margin-bottom: 8px; }
.noscript p { color: #4b5263; line-height: 1.6; }

/* 처음 쓰는 사람 안내 — 테두리째 밝히고, 카드의 화살표가 지금 설명하는 것을 가리킨다 */
.tour { position: fixed; inset: 0; z-index: 400; }
.tour-hole { position: fixed; box-shadow: 0 0 0 9999px rgba(15, 23, 41, .55); pointer-events: none; }
.tour-mark { position: relative; z-index: 1; box-shadow: 0 0 0 2px var(--sign) !important; }
.tour-bubble { position: fixed; padding: 18px 18px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lg); display: grid; gap: 6px; transition: left .25s var(--ease); animation: pop .25s var(--ease) both; }
.tour-bubble::before { content: ""; position: absolute; top: -6px; left: calc(var(--arrow-x, 50%) - 7px); width: 14px; height: 14px; background: var(--card); border-radius: 3px; transform: rotate(45deg); transition: left .25s var(--ease); }
.tour-bubble.up::before { top: auto; bottom: -6px; }
.tour-bubble:focus { outline: none; }
.tour-bubble b { font-size: 16px; letter-spacing: -0.025em; }
.tour-bubble p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.tour-dots { display: flex; gap: 5px; margin-bottom: 4px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width .2s; }
.tour-dots i.on { width: 16px; background: var(--ink); }
.tour-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.tour-actions .btn { margin-left: auto; }
.tour-skip { font-size: 13.5px; font-weight: 600; color: var(--ink-3); padding: 6px 2px; }
.tour-skip:hover { color: var(--ink); }

/* 손가락으로 누르는 화면: 누를 곳은 44px 이상 */
@media (pointer: coarse) {
  .btn-sm, .chip, .learn-btn, .text-btn, .back, .term .icon-btn, .me-btn { min-height: 44px; min-width: 44px; }
}
@media (hover: none) { .term .icon-btn { opacity: 1; } }
.badge { font-size: 13px; }
.foot-biz { font-size: 13px; }
