/* 도톨이 사이트 공통 스타일 — 도톨이 AI 프로그램 테마(차콜 다크 + 네온 라임) + 은은한 픽셀 */
:root {
  --bg: #101012;
  --top: #0b0b0e;
  --surface: #1c1c21;
  --raised: #28282f;
  --input: #151518;
  --line: #393943;
  --line-soft: #23232a;
  --border: #767684;
  --ink: #f5f5f7;
  --muted: #b9b9c5;
  --lime: #c9ff35;
  --lime-shadow: #5e7a1f;
  --green-bg: #273525;
  --green-ink: #ddffc0;
  --green-line: #65c766;
  --purple: #cfabff;
  --notice-bg: #27272d;
  --notice-ink: #e7d6fa;
  --notice-line: #4a3f5c;
  --gold: #f3d184; --gold-bg: #3b3022; --gold-line: #967745;
  --silver: #d9e4f2; --silver-bg: #354151; --silver-line: #8292a9;
  --bronze: #edb78f; --bronze-bg: #42302a; --bronze-line: #9c7155;
  --red: #f07a7a;
  --font: 'Noto Sans KR', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pixel: 'Silkscreen', 'Noto Sans KR', monospace;
  --wrap: 1280px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--lime); }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section.alt { background: var(--top); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.grow { flex: 999 1 560px; min-width: 0; }
.side { flex: 1 1 320px; min-width: 0; }
.eyebrow { font-family: var(--pixel); font-size: 13px; font-weight: 700; color: var(--lime); letter-spacing: .02em; }
.eyebrow.purple { color: var(--purple); }
.h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.15; font-weight: 900; letter-spacing: -.04em; }
.h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.25; font-weight: 900; letter-spacing: -.03em; }
.lead { font-size: 18px; color: var(--muted); max-width: 600px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.note { font-size: 12px; color: var(--muted); }
.mono { font-family: var(--mono); }
.pixel-grid {
  background-color: var(--bg);
  background-image: linear-gradient(#18181d 1px, transparent 1px), linear-gradient(90deg, #18181d 1px, transparent 1px);
  background-size: 24px 24px;
}

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 4px; border: 1px solid var(--border); background: transparent; color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.btn:hover { color: var(--ink); border-color: var(--ink); }
.btn.primary { background: var(--lime); color: var(--bg); border-color: var(--lime); box-shadow: 4px 4px 0 var(--lime-shadow); }
.btn.primary:hover { color: var(--bg); transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--lime-shadow); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 배지·태그 */
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 4px; background: var(--raised); font-size: 12px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 4px; font-family: var(--pixel); font-size: 11px; font-weight: 700; }
.badge.lime { background: var(--lime); color: var(--bg); }
.badge.live { background: var(--lime); color: #E0001B; }  /* 실시간 표시: 배경은 그대로, 글씨만 빨간색 */
.badge.purple { background: var(--purple); color: var(--bg); }
.badge.soon { background: var(--notice-bg); color: var(--notice-ink); border: 1px solid var(--notice-line); font-family: var(--font); font-weight: 700; }
.grade { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 6px; border-radius: 4px; font-weight: 900; font-size: 14px; border: 1px solid; }
.grade.g-s { background: var(--gold-bg); color: var(--gold); border-color: var(--gold-line); }
.grade.g-a { background: var(--silver-bg); color: var(--silver); border-color: var(--silver-line); }
.grade.g-b { background: var(--bronze-bg); color: var(--bronze); border-color: var(--bronze-line); }

/* 카드 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.card.lime { border-color: var(--lime); }
.card.notice { background: var(--notice-bg); border-color: var(--notice-line); color: var(--notice-ink); }
.card-link { display: flex; flex-direction: column; gap: 12px; }
.card-link:hover { border-color: var(--border); color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* 헤더 */
.site-header { position: relative; z-index: 50; background: var(--top); }
.topbar { border-bottom: 1px solid var(--line-soft); }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 900; letter-spacing: -.03em; }
.logo:hover { color: var(--ink); }
.searchbox { flex: 1 1 280px; max-width: 520px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--input); border: 1px solid var(--line); border-radius: 6px; }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 14px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-actions .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.avatar { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; }
.mainnav { background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.mainnav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-size: 15px; font-weight: 500; }
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; height: 52px; padding: 0 14px; }
.nav-item.current > a { box-shadow: inset 0 -2px 0 var(--lime); }
.dropdown { display: none; position: absolute; top: 52px; left: 0; width: 360px; max-width: calc(100vw - 32px); padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: flex; flex-direction: column; gap: 2px; }
.dropdown a { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 6px; }
.dropdown a:hover { background: var(--raised); color: var(--ink); }
.dropdown .dd-title { display: block; font-size: 15px; font-weight: 700; }
.dropdown .dd-desc { display: block; font-size: 13px; color: var(--muted); }
.dd-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid; }
.dd-label { padding: 8px 12px 4px; font-family: var(--pixel); font-size: 11px; color: var(--muted); }

/* 공지 띠 */
.notice-bar { display: block; background: var(--green-bg); border-bottom: 1px solid #3c5a3a; color: var(--green-ink); }
.notice-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; }
.notice-bar:hover { color: var(--green-ink); }

/* 페이지 머리 */
.page-head { border-bottom: 1px solid var(--line-soft); }
.page-head .wrap { display: flex; flex-direction: column; gap: 18px; padding-top: 40px; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--muted); }
.subtabs { display: flex; flex-wrap: wrap; gap: 4px; font-size: 15px; font-weight: 700; }
.subtabs a { display: inline-flex; align-items: center; height: 48px; padding: 0 16px; color: var(--muted); }
.subtabs a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--lime); }

/* 칩·세그먼트 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; cursor: pointer; }
.chip.on { background: var(--lime); border-color: var(--lime); color: var(--bg); font-weight: 700; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { height: 42px; padding: 0 14px; border: 0; border-right: 1px solid var(--line); background: var(--input); color: var(--ink); font-size: 14px; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--green-bg); color: var(--lime); font-weight: 700; }
.seg .cnt { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 6px; }

/* 키워드 표 */
.kw-table { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.kw-row { display: grid; grid-template-columns: 56px minmax(200px, 2fr) 1.2fr 1fr 1.6fr 64px; gap: 12px; align-items: center; min-width: 760px; padding: 12px 20px; border-top: 1px solid var(--line); }
.kw-row.head { border-top: 0; background: var(--top); font-size: 12px; font-weight: 700; color: var(--muted); }
.kw-row .kw { font-weight: 700; }
.kw-row .go { display: inline-flex; align-items: center; justify-content: center; height: 30px; border-radius: 4px; background: var(--green-bg); color: var(--green-line); font-size: 13px; font-weight: 700; }
.kw-lock { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 18px 20px; border-top: 1px solid var(--line); background: var(--input); font-size: 14px; }
.rank { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 30px; padding: 0 8px;
  border-radius: 4px; background: var(--raised); color: var(--muted); font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 13px; font-weight: 700; }
.rank.top { background: var(--lime); color: #101012; box-shadow: 2px 2px 0 var(--lime-shadow, #5E7A1F); }
.kw-row.issue { grid-template-columns: 56px minmax(200px, 2fr) 1fr 2fr 72px 64px; }
.kw-row.issue.empty { opacity: .45; }
.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tag.t-flash { background: var(--green-bg); color: var(--green-ink); }
.tag.t-days { background: var(--silver-bg); color: var(--silver); }
.tag.t-season { background: var(--gold-bg); color: var(--gold); }
.kw-empty { padding: 32px 20px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }

/* 스크리너(메인) */
.screener { background: var(--input); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.screener-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.screener-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.screener-tabs button { height: 48px; padding: 0 12px; border: 0; background: transparent; color: var(--ink); font-size: 15px; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.screener-tabs button.on { color: var(--lime); font-weight: 700; box-shadow: inset 0 -2px 0 var(--lime); }
.screener-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; font-size: 13px; color: var(--muted); }
.bar { display: inline-block; width: 88px; height: 8px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 8px); }
.bar > span { display: block; height: 8px; background: repeating-linear-gradient(90deg, var(--lime) 0 6px, transparent 6px 8px); }

/* 폼 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.input, select.input, textarea.input { min-height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--input); color: var(--ink); font-size: 15px; }
textarea.input { padding: 12px 14px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--lime); }
.form-msg { font-size: 14px; min-height: 22px; }
.form-msg.ok { color: var(--green-line); }
.form-msg.err { color: var(--red); }

/* 영상 */
.video { display: flex; flex-direction: column; gap: 12px; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .dur { position: absolute; right: 10px; bottom: 10px; font-family: var(--mono); font-size: 12px; font-weight: 700; background: var(--top); border-radius: 4px; padding: 1px 6px; }

/* 법적 문서 */
.doc { max-width: 820px; }
.doc h2 { font-size: 20px; margin: 32px 0 10px; }
.doc p, .doc li { color: #d6d6de; }
.doc ul, .doc ol { padding-left: 20px; }
.draft { padding: 12px 16px; border-radius: 6px; background: var(--notice-bg); border: 1px solid var(--notice-line); color: var(--notice-ink); font-size: 14px; }

/* 하단 */
.site-footer { background: var(--top); border-top: 1px solid var(--line-soft); color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-top: 40px; padding-bottom: 40px; font-size: 13px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 40px; font-size: 14px; }
.foot-cols div { display: flex; flex-direction: column; gap: 8px; }
.foot-cols b { font-size: 12px; color: var(--ink); }
.foot-cols a { color: var(--muted); }

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .wrap { padding: 0 16px; }
  .top-actions .hide-sm { display: none; }
}

/* 첫 화면 띠: 지금 홈판 이슈 TOP 10 */
.ticker { background: var(--top); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: 13px; }
.ticker-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; flex: none; white-space: nowrap; padding-right: 16px; border-right: 1px solid var(--line); }
.ticker-track { position: relative; flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; white-space: nowrap; animation: ticker 60s linear infinite; }
.ticker-dup { display: inline-flex; }
.ticker:hover .ticker-move, .ticker:focus-within .ticker-move { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px 6px 0; margin-right: 6px; font-size: 13px; }
.ticker-item:hover .ticker-kw { color: var(--lime); }
.ticker-rank { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 3px;
  background: var(--raised); color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.ticker-rank.top { background: var(--lime); color: #101012; }
.ticker-up { color: #ff5f5f; font-size: 9px; }
.ticker-kw { font-weight: 700; color: var(--ink); font-size: 13px; }
.ticker-topic { font-size: 11px; color: var(--muted); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* 윈도우 '애니메이션 효과 끔'(움직임 줄이기) 설정이어도 띠는 항상 흐른다. 마우스를 올리면 멈춤 */
@media (max-width: 640px) {
  .ticker-label b, .ticker-label .small { display: none; }
}

/* 홈판 이슈 잘 쓰는 법 (키워드 표 아래) */
.guide-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guide-num { font-size: 28px; color: var(--lime); }
.guide-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.gt-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) 2fr 1.3fr; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; align-items: start; }
.gt-row:first-child { border-top: 0; }
.gt-row.head { background: var(--raised); font-size: 12px; color: var(--muted); font-weight: 700; }
.gt-row .tag { margin: 0 4px 4px 0; }
@media (max-width: 760px) {
  .guide-stats { grid-template-columns: 1fr; }
  .gt-row { grid-template-columns: 1fr; gap: 6px; }
  .gt-row.head { display: none; }
}

/* 주제 링크·자주 묻는 질문 (SEO) */
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.faq-item { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 0 16px; }
.faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--muted); font-family: var(--mono); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 0 14px; margin: 0; line-height: 1.7; }
.topic-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.topic-links a { color: var(--muted); text-decoration: none; }
.topic-links a:hover { color: var(--ink); text-decoration: underline; }

/* 좁은 화면: 메뉴는 한 줄로 두고 옆으로 밀어서 보기 */
@media (max-width: 640px) {
  .mainnav .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mainnav .wrap::-webkit-scrollbar { display: none; }
  .mainnav .nav-item { flex: none; white-space: nowrap; }
}

.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; }
/* 첫 화면 (도톨이 Labs): 왼쪽 로고·제목·버튼·숫자, 오른쪽 프로그램 화면 */
.hero-labs { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(55% 70% at 75% 45%, rgba(201, 255, 53, .05), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 22px 22px,
    #0c0c10; }
.hero-labs::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #0c0c10 0%, transparent 18%, transparent 82%, #0c0c10 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero-copy { display: flex; flex-direction: column; gap: 30px; }
.hero-logo { display: inline-flex; }
.hero-title { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.12; font-weight: 500; letter-spacing: -.045em; color: #f7f7fa; margin: 0; }
.hero-sub { margin: -10px 0 0; color: #a3a3b1; font-size: 16px; line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 200px; height: 48px; padding: 0 22px; border-radius: 6px;
  font-size: 15px; font-weight: 700; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }
.hero-btn.ghost { border: 1px solid rgba(255, 255, 255, .55); color: #f5f5f7; }
.hero-btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); color: #fff; }
.hero-btn.solid { background: #f5f5f7; color: #101012; border: 1px solid #f5f5f7; }
.hero-btn.solid:hover { background: var(--lime); border-color: var(--lime); color: #101012; }
.hero-btn:active { transform: translateY(1px); }
.hero-btn span { display: inline-flex; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 34px 0 0; }
.hero-stats > div { padding: 0 30px; border-left: 1px solid rgba(255, 255, 255, .1); }
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { font-size: 12.5px; line-height: 1.45; color: #8c8c99; }
.hero-stats dd { margin: 14px 0 0; font-size: 30px; font-weight: 500; letter-spacing: -.03em; color: #f5f5f7; }
.hero-stats dd small { font-size: 13px; margin-left: 3px; color: #b9b9c5; }

.hero-shot { position: relative; margin: 0; }
.shot-frame { position: relative; border-radius: 16px; padding: 10px; background: linear-gradient(180deg, #1a1a21, #121217); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .6); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 6px; }
.shot-bar i { width: 8px; height: 8px; background: #3a3a44; }
.shot-bar i:first-child { background: var(--lime); }
.shot-bar span { margin-left: 8px; font-family: var(--pixel); font-size: 10px; letter-spacing: .08em; color: #7d7d8b; }
.shot-frame img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .05); }
/* 가린 분석 영역 위 안내 (픽셀 말풍선) */
.shot-lock { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); padding: 8px 14px 8px 30px; background: #101012; color: var(--lime);
  font-size: 13px; font-weight: 700; white-space: nowrap; border: 2px solid var(--lime); box-shadow: 4px 4px 0 var(--lime-shadow); image-rendering: pixelated; }
.shot-lock::before { content: ""; position: absolute; left: 11px; top: 50%; width: 10px; height: 8px; margin-top: -2px; background: var(--lime);
  box-shadow: 0 0 0 0 transparent; }
.shot-lock::after { content: ""; position: absolute; left: 13px; top: 50%; width: 6px; height: 5px; margin-top: -7px; border: 2px solid var(--lime); border-bottom: 0; }
/* 픽셀 모서리 */
.px-corner { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.px-corner::before, .px-corner::after { content: ""; position: absolute; background: var(--lime); }
.px-corner::before { width: 14px; height: 4px; } .px-corner::after { width: 4px; height: 14px; }
.px-corner.tl { left: -8px; top: -8px; }
.px-corner.tr { right: -8px; top: -8px; } .px-corner.tr::before { right: 0; } .px-corner.tr::after { right: 0; }
.px-corner.bl { left: -8px; bottom: -8px; } .px-corner.bl::before { bottom: 0; } .px-corner.bl::after { bottom: 0; }
.px-corner.br { right: -8px; bottom: -8px; } .px-corner.br::before { right: 0; bottom: 0; } .px-corner.br::after { right: 0; bottom: 0; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; padding-bottom: 64px; }
}
@media (max-width: 640px) {
  .hero-copy { gap: 24px; }
  
  .hero-btn { flex: 1 1 100%; }
  .hero-stats > div { padding: 0 18px; }
  .hero-stats dd { font-size: 24px; }
  .shot-frame { padding: 6px; border-radius: 12px; }
  .shot-bar { height: 20px; }
  .shot-lock { font-size: 11.5px; padding: 6px 10px 6px 26px; }
}
@media (min-width: 961px) { .hero-labs .wrap.hero-grid { max-width: 1480px; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); } }

/* 도톨이 Labs 로고: 픽셀 다람쥐 + Neo둥근모 '도톨이'·'Labs' */
.labs-logo { display: inline-flex; align-items: center; gap: calc(var(--u) * 6); line-height: 0; white-space: nowrap; }
.labs-logo svg { display: block; flex: none; }
.labs-text { display: inline-flex; align-items: flex-start; gap: calc(var(--u) * 6); }
@media (max-width: 640px) {
  .hero-logo .labs-logo { --u: 2px !important; }
  .hero-logo .labs-text svg { width: auto; height: calc(var(--u) * 13); }
  .hero-logo .labs-logo > svg { width: auto; height: calc(var(--u) * 26); }
}

/* 도톨이 AI 사용법 (/ai/): 왼쪽 고정 목차 + 본문 */
.ai-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; align-items: start; }
.ai-toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ai-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.ai-toc li { counter-increment: toc; }
.ai-toc ol a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--muted); font-size: 14px; text-decoration: none; }
.ai-toc ol a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: #6f6f7c; padding-top: 2px; }
.ai-toc ol a:hover { color: var(--ink); background: var(--raised); }
.ai-toc ol a.on { color: var(--lime); background: var(--green-bg); font-weight: 700; }
.ai-toc ol a.on::before { color: var(--lime); }
.ai-sec { scroll-margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.ai-sec h2 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin: -6px 0 0; }
.ai-sec > p { color: #d6d6de; line-height: 1.75; margin: 0; }
.ai-sec code { font-family: var(--mono); font-size: 13px; background: var(--raised); padding: 1px 6px; border-radius: 4px; }
.ai-shot { margin: 6px 0 0; }
.ai-shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.ai-shot figcaption { margin-top: 8px; }
.ai-points, .ai-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ai-points .card, .ai-menu .card { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.ai-points p { margin: 0; line-height: 1.65; }
.ai-menu dl { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ai-menu dt { font-weight: 700; margin-top: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ai-menu dt:first-child { margin-top: 0; }
.ai-menu dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.ai-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 10px; }
.ai-steps li { counter-increment: st; position: relative; padding: 16px 18px 16px 58px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ai-steps li::before { content: counter(st); position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; display: grid; place-items: center; background: var(--lime); color: #101012; font-weight: 800; font-size: 13px; }
.ai-steps p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.ai-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.ai-tr { display: grid; grid-template-columns: 170px minmax(0, 1fr) 150px; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: center; font-size: 14px; }
.ai-tr.head { border-top: 0; background: var(--raised); font-size: 12px; font-weight: 700; color: var(--muted); }
.ai-tr span:nth-child(2) { color: #cfcfd8; line-height: 1.6; }
.ai-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ai-flow li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ai-flow li:not(:last-child)::after { content: '›'; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); color: var(--lime); font-weight: 900; z-index: 1; }
.ai-flow span { width: 22px; height: 22px; display: grid; place-items: center; background: var(--lime); color: #101012; font-weight: 800; font-size: 12px; }
.ai-flow b { font-size: 15px; }
.ai-flow small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.ai-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: #d6d6de; line-height: 1.7; }
.ai-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
@media (max-width: 960px) {
  .ai-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ai-toc, .ai-body { min-width: 0; }
  .ai-toc { position: static; }
  .ai-toc ol { flex-direction: row; flex-wrap: wrap; }
  .ai-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-flow li:nth-child(3)::after { display: none; }
}
@media (max-width: 640px) {
  .ai-toc ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ai-toc ol a { white-space: nowrap; }
  .ai-tr { grid-template-columns: 1fr; gap: 6px; }
  .ai-tr.head { display: none; }
  .ai-flow { grid-template-columns: 1fr 1fr; }
  .ai-flow li::after { display: none; }
  .ai-steps li { padding-left: 54px; }
}
.hero-howto { margin-top: -14px; font-size: 13.5px; color: #a3a3b1; text-decoration: none; }
.hero-howto:hover { color: var(--lime); }

/* 사용법 페이지: 도톨이 AI란? (사용자·성과·장점) */
.ai-lead { font-size: 17px; line-height: 1.75; color: #e6e6ec !important; }
.ai-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 22px 24px; border-radius: 12px; border: 1px solid var(--line);
  background: radial-gradient(80% 140% at 0% 0%, rgba(201, 255, 53, .08), transparent 60%), var(--surface); }
.ai-proof-head { display: flex; align-items: center; gap: 14px; }
.ai-proof-num { font-size: 40px; font-weight: 700; color: var(--lime); letter-spacing: -.03em; line-height: 1; }
.ai-proof-num small { font-size: 22px; margin-left: 2px; }
.ai-proof-head span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.ai-users { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ai-users li { padding: 7px 12px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.ai-users li:first-child { background: var(--green-bg); border-color: var(--green-line); color: var(--green-ink); }
.ai-wins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ai-win { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.ai-win b { font-size: 18px; letter-spacing: -.02em; }
.ai-win p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.ai-win-ic { width: 32px; height: 32px; display: grid; place-items: center; background: var(--lime); color: #101012; font-size: 14px; font-weight: 900; box-shadow: 3px 3px 0 var(--lime-shadow); }
.ai-h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 0; }
.ai-why { list-style: none; margin: 0; padding: 0; counter-reset: why; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ai-why li { counter-increment: why; position: relative; padding: 18px 18px 18px 56px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ai-why li::before { content: counter(why, decimal-leading-zero); position: absolute; left: 18px; top: 18px; font-family: var(--mono); font-weight: 700; color: var(--lime); font-size: 15px; }
.ai-why b { font-size: 16px; }
.ai-why p { margin: 6px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
@media (max-width: 760px) {
  .ai-wins, .ai-why { grid-template-columns: 1fr; }
  .ai-proof-num { font-size: 34px; }
}
.ai-why li:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* 사용법 페이지 강조 문구: 라임색 */
.ai-sec em { font-style: normal; font-weight: 700; color: var(--lime); }
.ai-sec > p b, .ai-lead b, .ai-steps p b, .ai-list b, .faq-item p b { color: var(--lime); }

/* 다람이 추천 키워드 (/gift/): 픽셀 선물상자 30개 */
.gift-hl { color: var(--lime); font-weight: 800; }
.gift-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px; }
.gift-bar-dot { width: 8px; height: 8px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.gift-bar-time { margin-left: auto; color: var(--muted); font-size: 13px; }
.gift-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.gift-grid.busy .gift-box:not(.shake) { opacity: .45; pointer-events: none; }
.gift-box { position: relative; aspect-ratio: 1 / 1.08; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(70% 60% at 50% 40%, #23232b, var(--surface)); cursor: pointer; color: var(--ink);
  transition: transform .15s, border-color .15s, box-shadow .15s; }
.gift-box svg { width: 62%; height: auto; image-rendering: pixelated; overflow: visible; }
.gift-box svg .lid { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 8px 6px; }
.gift-box:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--lime); box-shadow: 0 10px 24px rgba(201, 255, 53, .12); }
.gift-box:hover:not(:disabled) svg .lid { transform: translateY(-1px); }
.gift-box:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.gift-no { font-size: 12px; color: var(--muted); }
.gift-box.shake { animation: gift-shake .9s ease-in-out; border-color: var(--lime); }
.gift-box.open svg .lid, .gift-box.shake svg .lid { transform: translate(-2px, -5px) rotate(-18deg); }
.gift-box.mine { border-color: var(--lime); background: radial-gradient(70% 60% at 50% 35%, rgba(201, 255, 53, .16), var(--surface)); }
.gift-mine { position: absolute; left: 6px; right: 6px; bottom: 8px; font-size: 12.5px; font-weight: 800; color: var(--lime); text-align: center; line-height: 1.3;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gift-box.mine .gift-no { display: none; }
.gift-box.done { opacity: .35; cursor: default; filter: grayscale(.6); }
@keyframes gift-shake { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-8deg) scale(1.04); } 30% { transform: rotate(7deg) scale(1.06); } 45% { transform: rotate(-6deg) scale(1.06); } 60% { transform: rotate(5deg) scale(1.08); } 80% { transform: rotate(-2deg) scale(1.1); } }
/* 짠! 팝업 */
.gift-pop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(6, 6, 9, .72); backdrop-filter: blur(3px); }
.gift-pop[hidden] { display: none; }
.gift-pop-card { position: relative; width: min(460px, 100%); padding: 34px 26px 26px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, #1d1d25, #15151b);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; overflow: hidden; animation: gift-pop-in .45s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.gift-pop-ta { margin: 0; font-family: var(--font); font-weight: 900; font-size: 40px; line-height: 1; color: var(--lime); letter-spacing: -.02em; text-shadow: 3px 3px 0 var(--lime-shadow); }
.gift-pop-sub { margin: 0; font-size: 14px; color: var(--muted); }
.gift-pop-kw { font-size: clamp(24px, 6vw, 32px); font-weight: 900; letter-spacing: -.03em; line-height: 1.25; color: #fff; padding: 10px 16px; border: 2px dashed rgba(201, 255, 53, .5); border-radius: 10px; word-break: keep-all; }
.gift-pop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.gift-pop-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.gift-pop-close:hover { color: var(--ink); }
.gift-confetti { position: absolute; inset: 0; pointer-events: none; }
.gift-confetti i { position: absolute; top: -10px; width: 7px; height: 7px; animation: gift-fall 1.6s ease-out forwards; }
@keyframes gift-pop-in { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes gift-fall { to { transform: translate(var(--x), 380px) rotate(var(--r)); opacity: 0; } }
@media (max-width: 960px) { .gift-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gift-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .gift-bar-time { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .gift-box.shake, .gift-pop-card, .gift-confetti i { animation: none; } }
/* 첫 화면 선물상자 안내 띠 */
.gift-teaser-wrap { padding: 22px 0; border-bottom: 1px solid var(--line-soft); background: #0e0e13; }
.gift-teaser { display: flex; align-items: center; gap: 18px; padding: 16px 22px; border-radius: 14px; text-decoration: none; color: var(--ink);
  border: 1px solid rgba(201, 255, 53, .35); background: radial-gradient(60% 140% at 0% 50%, rgba(201, 255, 53, .12), transparent 60%), var(--surface); transition: border-color .15s, transform .15s; }
.gift-teaser:hover { border-color: var(--lime); transform: translateY(-2px); }
.gift-teaser-box { flex: none; width: 54px; animation: gift-bounce 2.4s ease-in-out infinite; }
.gift-teaser-box svg { display: block; width: 100%; height: auto; overflow: visible; }
.gift-teaser-box .lid { transform-origin: 8px 6px; animation: gift-peek 2.4s ease-in-out infinite; }
.gift-teaser-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gift-teaser-text b { font-size: 18px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gift-teaser-text > span { font-size: 14px; color: var(--muted); }
.gift-teaser-tag { font-size: 10.5px; padding: 2px 7px; background: var(--lime); color: #101012; letter-spacing: .06em; }
.gift-teaser-go { margin-left: auto; flex: none; font-weight: 800; color: var(--lime); white-space: nowrap; }
@keyframes gift-bounce { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-6px); } 90% { transform: translateY(0); } }
@keyframes gift-peek { 0%, 70%, 100% { transform: none; } 80% { transform: translate(-1px, -3px) rotate(-10deg); } }
@media (max-width: 640px) { .gift-teaser { flex-wrap: wrap; gap: 12px; } .gift-teaser-go { margin-left: 70px; } }
@media (prefers-reduced-motion: reduce) { .gift-teaser-box, .gift-teaser-box .lid { animation: none; } }
/* 선물상자 등급 꼬리표 */
.gift-tier { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.gift-tier.t-s { background: linear-gradient(90deg, #ff6b3d, #ffb13d); color: #1a0d00; box-shadow: 0 0 22px rgba(255, 120, 60, .45); }
.gift-tier.t-a { background: #f3d184; color: #2a1c00; }
.gift-tier.t-b { background: var(--green-bg); color: var(--lime); border: 1px solid rgba(201, 255, 53, .35); }
.gift-tier.t-c { background: var(--raised); color: var(--ink); border: 1px solid var(--line); }
