/* 체킹 Checking — Leapinity 스타일(leapinity-brand.css)을 먼저 불러오고, 그 위에 체킹만의 모양을 더해요
   체킹 고유 색: 남보라 #4f46c8 (--lp-accent). 글꼴은 Pretendard(사이트 안 vendor 폴더)
   어두운 화면은 기기 설정을 따라가고, 위쪽 🌓 버튼(자동→밝게→어둡게)으로 바꿀 수도 있어요. 움직임 줄이기 설정이면 움직임을 멈춰요 */
:root {
  /* 체킹 고유 색 (Leapinity 스타일 규칙: 사이트마다 색 하나) */
  --lp-accent: #4f46c8; --lp-accent-ink: #4338ca; --lp-accent-ink-dark: #b9c0ff; --lp-on-accent: #ffffff;
  /* 체킹 이름 → Leapinity 공통 값 */
  --vio: var(--lp-accent); --sky: var(--lp-sky); --mint: var(--lp-mint);
  --grad: var(--lp-grad);
  --ink: var(--lp-ink); --soft: var(--lp-soft); --mute: var(--lp-mute);
  --bg: var(--lp-bg-soft); --card: var(--lp-card); --line: var(--lp-line); --chip: var(--lp-chip);
  --vio-ink: var(--lp-accent-ink); --vio-soft: #eeedff;
  --ok: #0f7556; --ok-bg: #e8faf3; --bad: #c0305c; --bad-bg: #ffe8ef;
  --wait: #d63a5e; --go: #13a36f;
  --shadow: var(--lp-shadow);
  --r: var(--lp-r);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --vio-soft: #262a6a;
  --ok: #6ee7c4; --ok-bg: rgba(45, 212, 167, .14); --bad: #ff9cbb; --bad-bg: rgba(244, 114, 182, .16);
  color-scheme: dark;
} }
/* 🌓 버튼으로 '어둡게'를 고르면 기기 설정과 상관없이 어두운 색 */
:root[data-theme="dark"] {
  --vio-soft: #262a6a;
  --ok: #6ee7c4; --ok-bg: rgba(45, 212, 167, .14); --bad: #ff9cbb; --bad-bg: rgba(244, 114, 182, .16);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--lp-font);
  font-size: 16px; line-height: 1.6; overflow-x: hidden; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--vio-ink); }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lp-focus); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 위쪽: Leapinity 막대(.lp-bar)를 써요. 체킹은 칸이 좁아서 막대 안 높이만 조금 줄여요 */
.lp-bar-in { min-height: 60px; }
.nav-btn { padding: 0 16px; font-size: 14.5px; }

/* 첫 띠 */
.hero { padding: 26px 0 8px; }
.hero h1 { font-size: clamp(26px, 6.4vw, 38px); line-height: 1.25; letter-spacing: -.02em; }
.hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin-top: 10px; color: var(--soft); font-size: 16.5px; }
.crumb { font-size: 14px; color: var(--mute); margin-bottom: 6px; }
.crumb a { color: var(--mute); }

/* 카드 목록 */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0 8px; padding: 0; list-style: none; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); min-height: 96px; transition: transform .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--lp-accent); }
.card .ic { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: var(--vio-soft); }
.card b { display: block; font-size: 18px; }
.card span { display: block; font-size: 14.5px; color: var(--soft); line-height: 1.45; }
.card em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--ok); }
.cards.small .card { min-height: 0; padding: 12px 14px; }
.cards.small .card .ic { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
.cards.small .card b { font-size: 16px; }

/* 테스트 판 */
.panel { scroll-margin-top: 68px; margin: 16px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.friend { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--vio-soft); color: var(--vio-ink); font-weight: 700; font-size: 15px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tabs button { flex: 1; min-height: 44px; border-radius: var(--lp-pill); border: 1px solid var(--line); background: var(--chip); font-weight: 700; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--vio); border-color: var(--vio); color: #fff; }
.stage { position: relative; width: 100%; border-radius: 16px; user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; overflow: hidden; }
.big-zone { min-height: min(56vh, 420px); display: grid; place-items: center; text-align: center; padding: 20px; cursor: pointer; background: #4f46c8; color: #fff; border: 0; width: 100%; }
.big-zone .em { font-size: 54px; line-height: 1; display: block; margin-bottom: 10px; }
.big-zone .msg { font-size: clamp(22px, 6vw, 30px); font-weight: 800; display: block; }
.big-zone .sub { margin-top: 8px; font-size: 16px; opacity: .92; display: block; }
.big-zone.wait { background: var(--wait); }
.big-zone.go { background: var(--go); }
.big-zone.early { background: #b26a00; }
.big-zone.done { background: #3c3f6e; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 0; list-style: none; }
.stats li { flex: 1 1 70px; text-align: center; padding: 8px 6px; border-radius: 12px; background: var(--chip); font-size: 14px; color: var(--soft); }
.stats li b { display: block; font-size: 18px; color: var(--ink); }
.hint { margin-top: 10px; font-size: 14.5px; color: var(--mute); }

/* 에임 */
.aim-zone { height: min(62vh, 460px); background: var(--chip); border: 1px solid var(--line); cursor: crosshair; }
.target { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(circle, #fff 0 18%, #ff4f7b 19% 42%, #fff 43% 62%, #ff4f7b 63%); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.target.first { width: 96px; height: 96px; margin: -48px 0 0 -48px; color: #fff; font-weight: 800; background: var(--vio); font-size: 17px; }
.aim-hud { position: absolute; left: 10px; top: 8px; font-weight: 800; font-size: 15px; color: var(--soft); pointer-events: none; }

/* 색깔 */
.color-grid { display: grid; gap: 6px; width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; }
.color-grid button { -webkit-tap-highlight-color: transparent; border: 0; border-radius: 10px; padding: 0; cursor: pointer; min-width: 0; min-height: 0; }
.color-grid.n7 button, .color-grid.n8 button { border-radius: 7px; }
.bar { height: 10px; border-radius: 99px; background: var(--chip); overflow: hidden; margin: 6px 0 12px; }
.bar i { display: block; height: 100%; background: var(--grad); width: 100%; transform-origin: left; }

/* 숫자 기억 · 타자 */
.show-num { min-height: 160px; display: grid; place-items: center; font-size: clamp(30px, 9vw, 52px); font-weight: 800; letter-spacing: .08em; text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; padding: 10px; }
.field { width: 100%; min-height: 54px; padding: 10px 14px; font: inherit; font-size: 20px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.field:focus { border-color: var(--lp-focus); outline: none; }
.target-line { font-size: clamp(19px, 5.2vw, 24px); font-weight: 700; line-height: 1.6; padding: 14px; border-radius: 14px; background: var(--chip); margin-bottom: 10px; min-height: 64px; }
.target-line .r { color: var(--ok); }
.target-line .w { color: var(--bad); background: var(--bad-bg); border-radius: 4px; }
.target-line .c { border-bottom: 3px solid var(--vio); }
.row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.row .field { flex: 1; min-width: 0; }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: var(--lp-pill); border: 1px solid var(--line); cursor: pointer; font-weight: 800; font-size: 16px; text-decoration: none; background: var(--card); color: var(--ink); transition: transform .3s var(--lp-ease), background-color .2s; }
.btn.main { background: var(--lp-accent); border-color: var(--lp-accent); color: var(--lp-on-accent); }
@media (hover: hover) { .btn:not(:disabled):hover { transform: translateY(-2px); } }
.btn:not(:disabled):active { transform: scale(.97); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.btns .btn.main, .btns .btn.wide { grid-column: 1 / -1; }
.center { text-align: center; }
.start-box { text-align: center; padding: 22px 8px; }
.start-box .em { font-size: 56px; line-height: 1; }
.start-box p { color: var(--soft); margin: 10px 0 16px; }

/* 결과 */
.result { text-align: center; padding: 8px 4px; }
.result .label { font-size: 15px; color: var(--mute); font-weight: 700; }
.result .score { font-size: clamp(40px, 12vw, 58px); font-weight: 900; line-height: 1.15; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 4px 0; }
.result .extra { color: var(--soft); font-weight: 700; }
.result .grade { margin-top: 12px; font-size: 22px; font-weight: 900; }
.result .gline { color: var(--soft); }
.result .top { display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: 99px; background: var(--ok-bg); color: var(--ok); font-weight: 900; font-size: 20px; }
.result .note { margin-top: 6px; font-size: 13.5px; color: var(--mute); }
.result .best { margin-top: 10px; font-size: 14.5px; color: var(--soft); }
.result .best.new { color: var(--vio-ink); font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #161c3d; color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 700; z-index: 50; max-width: calc(100% - 32px); text-align: center; }

/* 글 (방법·자주 묻는 질문) */
.doc { margin: 28px 0; }
.doc h2 { font-size: 21px; margin: 26px 0 10px; }
.doc ol, .doc ul { padding-left: 22px; margin: 0; }
.doc li { margin: 4px 0; }
.doc p { color: var(--soft); margin: 8px 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 8px 0; }
.faq summary { cursor: pointer; padding: 12px 14px; font-weight: 700; min-height: 44px; }
.faq details p { padding: 0 14px 12px; margin: 0; }
.note-box { padding: 12px 14px; border-radius: 14px; background: var(--vio-soft); color: var(--ink); font-size: 15px; margin: 12px 0; }

/* 광고 자리 (lp-ads.js · 승인 전엔 hidden 이라 자리를 차지하지 않아요) */
.lp-ad[hidden] { display: none !important; }
.lp-ad { display: block; max-width: 728px; margin: 28px auto; text-align: center; }
.lp-ad::before { content: "광고"; display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--mute); }

/* 아래쪽: Leapinity 공통(.lp-foot) */
.foot-note { width: 100%; margin: 0; font-size: 14px; }
.lp-foot-links a { min-width: 44px; justify-content: center; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Leapinity의 다른 도구 (아래쪽 바로 위, 카드 3장. 휴대폰은 한 줄씩) ---------- */
.lp-more { margin-top: 40px; margin-bottom: 8px; }
.lp-more-h { margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: .01em; color: var(--lp-soft); }
.lp-more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-more-card { display: flex; align-items: center; gap: 12px; min-height: 64px; height: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 18px;
  background: var(--lp-card); border: 1px solid var(--lp-line); color: var(--lp-ink); text-decoration: none; transition: transform .25s ease, border-color .25s; }
.lp-more-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--lp-vio) 45%, var(--lp-line)); }
.lp-more-card:focus-visible { outline: 3px solid var(--lp-focus); outline-offset: 2px; }
.lp-more-ic { flex: none; width: 40px; height: 40px; }
.lp-more-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.lp-more-txt b { font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.lp-more-txt span { font-size: 13.5px; color: var(--lp-soft); line-height: 1.4; word-break: keep-all; }
.lp-more-go { flex: none; font-size: 22px; line-height: 1; color: var(--lp-mute); }
@media (max-width: 720px) {
  .lp-more { margin-top: 32px; }
  .lp-more-list { grid-template-columns: 1fr; gap: 8px; }
  .lp-more-card { min-height: 56px; padding: 10px 12px; }
  .lp-more-ic { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .lp-more-card { transition: none; } .lp-more-card:hover { transform: none; } }

/* 글자 모양 v2 (2026-11-08): 허브·FicePal 과 같게 — 큰 제목 800·-0.035em, 설명 600, 카드 제목 800·-0.02em (값은 lp-brand 의 var) */
.hero h1 { font-weight: var(--lp-title-w, 800); letter-spacing: var(--lp-hero-track, -.035em); line-height: var(--lp-hero-lh, 1.15); }
.hero h1 + p { font-weight: var(--lp-lead-w, 600); letter-spacing: var(--lp-lead-track, -.01em); }
.card b { font-weight: var(--lp-title-w, 800); letter-spacing: var(--lp-card-track, -.02em); line-height: 1.3; }

/* ===================== 흰 배경 v3 (2026-11-08, 기준: _leapinity-style/흰배경-기준.md) =====================
   순수한 흰 바탕, 그림자 대신 1px 테두리, 주 단추는 검정, 그러데이션은 큰 제목 뒷말·그림에만.
   색 값은 leapinity-brand.css 의 --lpw-… (어두운 화면 값도 거기 있어요) */
:root {
  --bg: var(--lpw-bg); --card: var(--lpw-card); --line: var(--lpw-line); --chip: var(--lpw-bg2);
  --ink: var(--lpw-text); --soft: var(--lpw-sub); --mute: var(--lpw-mute); --vio-soft: var(--lpw-tint);
  --shadow: none; --r: var(--lpw-radius-card);
  --lp-bar-bg: color-mix(in srgb, var(--lpw-bg) 86%, transparent); --lp-bar-line: var(--lpw-line);
  --lp-ghost-bg: var(--lpw-card); --lp-ghost-line: var(--lpw-line); --lp-ghost-hover: var(--lpw-bg2);
}
.lp-body, body { background: var(--lpw-bg); color: var(--lpw-text); }
a { color: var(--lpw-text); }
.doc a, .faq a { color: var(--lp-accent-ink); }

/* 위쪽 줄: 높이 64px, 왼쪽에 사이트 그림 + 이름 */
.lp-bar { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lp-bar-in { min-height: var(--lpw-bar-h); }
.lp-brand { font-size: 17px; font-weight: 800; color: var(--lpw-text); }
.lp-brand b { font-weight: 800; }
.lp-logo-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--lpw-tint); }
.lp-logo-ico svg { width: 22px; height: 22px; display: block; }
.nav-btn { border-radius: var(--lpw-radius-btn); font-weight: 700; padding: 0 14px; }
@media (hover: hover) { .nav-btn:not(:disabled):hover { transform: none; } }
/* 🌓 화면 색 버튼: 보조 단추처럼 흰 바탕 + 테두리 */
.lp-theme-btn { border-radius: var(--lpw-radius-btn); border-color: var(--lpw-line); background: var(--lpw-card); color: var(--lpw-text); }
@media (hover: hover) { .lp-theme-btn:hover { background: var(--lpw-card); border-color: var(--lpw-hover-line); } }

/* 첫 띠 */
.hero { padding: 30px 0 8px; }
.hero h1 { color: var(--lpw-text); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.hero h1 .g { background: var(--lpw-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead, .hero h1 + p { margin-top: 12px; font-size: clamp(15px, 2vw, 17px); font-weight: 400; letter-spacing: 0; line-height: 1.6; color: var(--lpw-sub); }
.hero.home { text-align: center; padding: 48px 0 20px; }
.hero.home h1 { font-size: clamp(36px, 8vw, 56px); margin-top: 14px; }
.pill { display: inline-flex; padding: 6px 14px; border-radius: 99px; background: var(--lpw-bg2); border: 1px solid var(--lpw-line); font-size: 13px; font-weight: 700; color: var(--lpw-sub); }
.cta { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta .btn { min-width: 150px; }
.t-h1 { display: flex; align-items: center; gap: 12px; font-size: clamp(26px, 6vw, 36px); }
.t-h1 .ic, .start-box .ic { flex: none; width: 50px; height: 50px; border-radius: var(--lpw-radius-ico); display: grid; place-items: center; background: var(--lpw-tint); }
.t-h1 .ic svg, .start-box .ic svg { width: 28px; height: 28px; display: block; }
.start-box .ic { margin: 0 auto; width: 64px; height: 64px; border-radius: 18px; }
.start-box .ic svg { width: 36px; height: 36px; }
.crumb, .crumb a { color: var(--lpw-mute); }

/* 카드: 흰 바탕 + 1px 테두리, 올리면 테두리만 옅은 보라 */
.card { box-shadow: none; border-color: var(--lpw-line); border-radius: var(--lpw-radius-card); background: var(--lpw-card); transition: border-color .2s; min-height: 88px; }
.card:hover { transform: none; border-color: var(--lpw-hover-line); }
.card .ic { width: 50px; height: 50px; border-radius: var(--lpw-radius-ico); background: var(--lpw-tint); }
.card .ic svg { width: 28px; height: 28px; display: block; }
.card b { font-size: 16.5px; }
.card span { color: var(--lpw-sub); font-weight: 500; }
.card .txt span { font-size: 14px; }
.card em { background: var(--lpw-bg2); color: var(--lpw-sub); padding: 3px 9px; border-radius: 8px; font-size: 12.5px; margin-top: 8px; }
.cards.small .card .ic { width: 40px; height: 40px; border-radius: 12px; }
.cards.small .card .ic svg { width: 24px; height: 24px; }

/* 테스트 판 · 결과 칸 */
.panel { box-shadow: none; border-radius: var(--lpw-radius-card); padding: 20px; }
.friend { background: var(--lpw-tint); color: var(--lpw-text); border: 1px solid var(--lpw-line); }
.tabs button { border-radius: var(--lpw-radius-btn); background: var(--lpw-card); border-color: var(--lpw-line); }
.tabs button[aria-pressed="true"] { background: var(--lpw-text); border-color: var(--lpw-text); color: var(--lpw-bg); }
.stats li { background: var(--lpw-bg2); border: 1px solid var(--lpw-line); }
.aim-zone { background: var(--lpw-bg2); border-color: var(--lpw-line); }
.field { border: 1px solid var(--lpw-line); border-radius: var(--lpw-radius-btn); background: var(--lpw-bg); }
.target-line { background: var(--lpw-bg2); border: 1px solid var(--lpw-line); }
.result { padding: 4px 0; }
.result .label { color: var(--lpw-sub); }
.result .score { background: var(--lpw-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.result .grade { font-weight: 800; letter-spacing: -.02em; }
.result .gline { color: var(--lpw-sub); }
.result .top { border: 1px solid var(--lpw-line); font-weight: 800; }

/* 단추: 주 단추는 검정, 보조는 흰 바탕 + 테두리. 둥글기 12px */
.btn { border-radius: var(--lpw-radius-btn); font-weight: 700; font-size: 15.5px; border-color: var(--lpw-line); background: var(--lpw-card); color: var(--lpw-text); }
.btn.main { background: var(--lpw-text); border-color: var(--lpw-text); color: var(--lpw-bg); }
@media (hover: hover) { .btn:not(:disabled):hover { transform: none; border-color: var(--lpw-hover-line); } .btn.main:not(:disabled):hover { opacity: .88; border-color: var(--lpw-text); } }

/* 글 */
.doc h2 { font-weight: 800; letter-spacing: -.025em; color: var(--lpw-text); }
.doc p { color: var(--lpw-sub); }
.faq details { border-color: var(--lpw-line); background: var(--lpw-card); }
.note-box { background: var(--lpw-tint); border: 1px solid var(--lpw-line); }
.toast { background: var(--lpw-text); color: var(--lpw-bg); }

/* 다른 도구 카드도 테두리만 */
.lp-more-card { background: var(--lpw-card); border-color: var(--lpw-line); }
.lp-more-card:hover { transform: none; border-color: var(--lpw-hover-line); }
.lp-more-h { color: var(--lpw-sub); }
.lp-more-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--lpw-tint); }
.lp-more-ic svg { width: 26px; height: 26px; display: block; }
@media (max-width: 720px) { .lp-more-ic { width: 40px; height: 40px; } }
.crumb { margin-bottom: 2px; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 새 테스트: 1 to 25 · 스트룹 · 10초 맞히기 (2026-11-14) ---------- */
/* 새 테스트 A: 1 to 25 · 스트룹 · 10초 맞히기 (style.css 에 합칠 것) */

/* ---- 🔢 1 to 25: 5×5 숫자 판 (390px 휴대폰에서도 칸이 52px 넘게) ---- */
.nt-grid { display: grid; grid-template-columns: repeat(5, minmax(52px, 1fr)); gap: 6px; width: min(100%, 420px); margin: 0 auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.nt-grid button { aspect-ratio: 1; min-width: 0; min-height: 52px; padding: 0; border: 1px solid var(--lpw-line); border-radius: 12px; background: var(--lpw-bg2); color: var(--lpw-text); font-size: clamp(20px, 5.6vw, 26px); font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity .2s, background-color .15s; }
.nt-grid button:focus-visible { outline: 3px solid var(--lpw-text); outline-offset: 2px; }
.nt-grid button.done { opacity: .22; background: var(--lpw-tint); cursor: default; }
.nt-grid button.bad { animation: nt-bad .35s ease-out; }
@keyframes nt-bad { 0%, 40% { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); } 100% { background: var(--lpw-bg2); } }

/* ---- 🌈 스트룹: 글자는 늘 밝은 칸 위에 (어두운 화면에서도 노랑이 잘 보이게) ---- */
.sp-card { position: relative; display: grid; place-items: center; min-height: 150px; margin-bottom: 12px; border-radius: 16px; background: #f7f8fb; border: 1px solid var(--lpw-line); user-select: none; -webkit-user-select: none; }
.sp-word { font-size: clamp(46px, 14vw, 72px); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: #1f2430; }
.sp-card.wrong { border-color: var(--bad); background: #fff0f4; }
.sp-x { position: absolute; top: 10px; right: 12px; font-size: 28px; line-height: 1; }
.sp-x[hidden] { display: none; }
.sp-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.sp-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; padding: 0 12px; border: 1px solid var(--lpw-line); border-radius: 14px; background: var(--lpw-bg2); color: var(--lpw-text); font-size: 19px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s, opacity .15s; }
.sp-btn:active { transform: scale(.97); }
.sp-btn:focus-visible { outline: 3px solid var(--lpw-text); outline-offset: 2px; }
.sp-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.sp-key { position: absolute; top: 6px; left: 9px; font-size: 12px; font-weight: 700; color: var(--lpw-sub); }
@media (pointer: coarse) { .sp-key { display: none; } }
.sp-btns.locked .sp-btn { opacity: .45; cursor: default; }

/* ---- ⏱️ 10초 맞히기: 세는 동안은 차분한 색 ---- */
.big-zone.ts-run { background: #2b3a67; }

/* 결과 아래 작은 표 (10초 맞히기의 3번 기록 등) */
.mini-table { width: 100%; max-width: 360px; margin: 12px auto 0; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.mini-table th, .mini-table td { padding: 7px 8px; text-align: center; border-bottom: 1px solid var(--lpw-line); }
.mini-table th { font-size: 13px; font-weight: 700; color: var(--lpw-sub); }
.mini-table td { color: var(--lpw-text); }

/* 움직임 줄이기: 흔들림(JS)·눌림 효과는 빼고, 빨간 색 깜빡임만 남김 */
@media (prefers-reduced-motion: reduce) {
  .nt-grid button, .sp-btn { transition: none; }
  .sp-btn:active { transform: none; }
}

/* ---------- 새 테스트: 순서 기억 · 30초 암산 · 영어 타자 · 그림 위치 기억 (2026-11-14) ---------- */
/* ---- 💡 순서 기억 (sequence) ---- */
.seq-msg { min-height: 1.6em; margin: 4px 0 12px; text-align: center; font-weight: 800; font-size: 18px; color: var(--lpw-text); }
.seq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(100%, 360px); aspect-ratio: 1; margin: 0 auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.seq-tile { position: relative; min-width: 48px; min-height: 48px; padding: 0; border-radius: 16px; border: 2px solid var(--lpw-line); background: var(--lpw-bg2); color: var(--lpw-text); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .12s, border-color .12s, transform .12s; }
.seq-grid.locked .seq-tile { cursor: default; }
.seq-tile.on { background: var(--lp-accent); border-color: var(--lp-accent); transform: scale(.95); }
/* 색만으로 구별하지 않게: 켜진 칸에 하얀 점 */
.seq-tile.on::after { content: ''; position: absolute; inset: 0; margin: auto; width: 28%; height: 28%; border-radius: 50%; background: var(--lp-on-accent, #fff); }
.seq-tile.ok { border-color: var(--ok); background: var(--ok-bg, var(--lpw-tint)); }
.seq-tile.ok::after { content: '✔'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: var(--ok); }
.seq-tile.bad { border-color: var(--bad); background: var(--bad-bg); }
.seq-tile.bad::after { content: '✖'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: var(--bad); }

/* ---- 🧮 30초 암산 (mathspeed) ---- */
.math-q { margin: 6px 0 4px; text-align: center; font-size: clamp(34px, 11vw, 56px); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--lpw-text); overflow-wrap: anywhere; }
.math-ans { width: min(100%, 220px); min-height: 60px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 16px; border: 2px solid var(--lpw-line); background: var(--lpw-bg2); font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--lpw-text); }
.math-ans.empty { color: var(--lpw-sub); }
.math-ans.good { border-color: var(--ok); }
.math-ans.skipped { border-color: var(--bad); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 360px); margin: 0 auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.keypad button { min-height: 56px; min-width: 0; padding: 0 6px; border-radius: 14px; border: 1px solid var(--lpw-line); background: var(--lpw-bg2); color: var(--lpw-text); font-size: 24px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .08s, background-color .12s; }
.keypad button:active { transform: scale(.95); background: var(--lpw-tint); }
.keypad .k-back { font-size: 22px; }
.keypad .k-skip { font-size: 16px; color: var(--bad); background: var(--bad-bg); border-color: transparent; }
.keypad.locked { opacity: .5; pointer-events: none; }

/* ---- 🖼️ 그림 위치 기억 (mempic) ---- */
.mode-box[hidden] { display: none; }
.pic-msg { min-height: 1.6em; margin: 4px 0 12px; text-align: center; font-weight: 800; font-size: 18px; color: var(--lpw-text); }
.pic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(100%, 400px); aspect-ratio: 1; margin: 0 auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.pic-grid button { min-width: 48px; min-height: 48px; padding: 0; border-radius: 14px; border: 2px solid var(--lpw-line); background: var(--lpw-bg2); color: var(--lpw-text); font-size: clamp(26px, 8vw, 40px); line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .12s, border-color .12s; }
.pic-grid.locked button { cursor: default; }
.pic-grid button.show { background: var(--lpw-tint); border-color: var(--lp-accent); }
.pic-grid button.ok { background: var(--ok-bg, var(--lpw-tint)); border-color: var(--ok); }
.pic-grid button.bad { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); font-weight: 800; }
.pic-grid button.miss { border-style: dashed; border-color: var(--bad); opacity: .75; }

/* 키보드로 고를 때 어디인지 잘 보이게 */
.seq-tile:focus-visible, .keypad button:focus-visible, .pic-grid button:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .seq-tile, .keypad button, .pic-grid button { transition: none; }
  .seq-tile.on, .keypad button:active { transform: none; }
}

/* ===================== 대개편 (2026-11-14): 띠·번갈아 하기·분포 그래프·도전장·오늘의 도전·능력치 ===================== */
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14.5px; }
.btn.ghost { background: var(--lpw-card); }
.link-btn { border: 0; background: none; padding: 0 4px; margin-left: 8px; min-height: 32px; color: var(--lpw-sub); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: 14px; }
.band { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--lpw-tint); border: 1px solid var(--lpw-line); font-size: 15px; color: var(--lpw-text); }
.band a { margin-left: 10px; font-weight: 700; font-size: 14px; color: var(--lpw-sub); }
.party-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.party-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.party-pick span { font-size: 14px; color: var(--lpw-sub); font-weight: 700; margin-right: 2px; }
.party-res { margin-top: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--lpw-line); background: var(--lpw-bg2); }
.party-win { font-size: 22px; font-weight: 800; }
.party-rank { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.party-rank li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--lpw-card); border: 1px solid var(--lpw-line); font-weight: 700; }
.party-res .btn.main.wide { margin-top: 10px; }

/* 분포 그래프 */
.hist-box { margin: 14px auto 0; max-width: 420px; }
.hist { width: 100%; height: auto; display: block; }
.hist .hb { fill: var(--lpw-line); }
.hist .hb.me { fill: var(--lp-accent); }
.hist .hme-bg { fill: var(--lpw-text); }
.hist .hme-t { fill: var(--lpw-bg); font-size: 12px; font-weight: 800; }
.hist .hax { stroke: var(--lpw-line); stroke-width: 1; }
.hist .hlab { fill: var(--lpw-mute); font-size: 11px; font-weight: 600; }
.hist-box figcaption { font-size: 13px; color: var(--lpw-mute); margin-top: 2px; }
.new-title { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--lpw-sub); }
.new-title a { color: var(--lp-accent-ink); }

/* 도전장 결과 · 오늘의 도전 다음 단추 */
.vs { margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--lpw-line); background: var(--lpw-bg2); font-weight: 700; }
.vs.win { background: var(--ok-bg); color: var(--ok); }
.vs .btn { margin-top: 10px; }
.daily-next { margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--lpw-line); background: var(--lpw-tint); }
.daily-next p { margin-bottom: 10px; }

/* 작은 표 (반응 속도 최고·최저, 10초 맞히기) */
.mini-table tr.hi-best td { color: var(--ok); font-weight: 800; }
.mini-table tr.hi-worst td { color: var(--bad); font-weight: 800; }

/* 첫 화면: 오늘의 도전 큰 카드 · 묶음 · 능력치 카드 */
.daily-card { margin: 8px 0 22px; padding: 20px; border-radius: var(--lpw-radius-card); border: 1px solid var(--lpw-line); background: var(--lpw-card); }
.dc-head { display: flex; gap: 14px; align-items: center; }
.dc-head .ic, .me-card .ic { flex: none; width: 50px; height: 50px; border-radius: var(--lpw-radius-ico); display: grid; place-items: center; background: var(--lpw-tint); }
.dc-head .ic svg, .me-card .ic svg { width: 28px; height: 28px; display: block; }
.dc-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.dc-head p { color: var(--lpw-sub); font-size: 14.5px; margin-top: 2px; }
.dc-list { list-style: none; padding: 0; margin: 14px 0 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dc-list li a, .dc-list li span.dc-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--lpw-line); background: var(--lpw-bg2); text-align: center; text-decoration: none; color: var(--lpw-text); font-weight: 700; font-size: 14px; line-height: 1.3; }
.dc-list .em { font-size: 24px; line-height: 1; }
.dc-list .done a, .dc-list .done .dc-item { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.dc-list small { font-size: 12px; font-weight: 700; }
.dc-streak { font-weight: 800; margin-bottom: 10px; }
.groups { margin-top: 4px; }
.group-h { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 22px 0 0; }
.group-h small { font-size: 13.5px; font-weight: 600; color: var(--lpw-sub); margin-left: 6px; letter-spacing: 0; }
.group .cards { margin-top: 10px; }
.me-card { display: flex; align-items: center; gap: 14px; margin: 22px 0 6px; padding: 18px; border-radius: var(--lpw-radius-card); border: 1px solid var(--lpw-line); background: var(--lpw-tint); text-decoration: none; color: var(--lpw-text); }
.me-card:hover { border-color: var(--lpw-hover-line); }
.me-card .txt { flex: 1; min-width: 0; }
.me-card b { display: block; font-size: 17px; font-weight: 800; }
.me-card .txt span { font-size: 14px; color: var(--lpw-sub); }
.me-card .go { font-size: 28px; color: var(--lpw-mute); }

/* /daily/ */
.dl-date { font-size: 14px; color: var(--lpw-sub); font-weight: 700; }
.dl-total { font-size: clamp(34px, 10vw, 48px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0; }
.dl-total small { font-size: 18px; color: var(--lpw-sub); margin-left: 4px; }
.dl-steps { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.dl-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--lpw-line); background: var(--lpw-bg2); }
.dl-steps li.done { background: var(--ok-bg); border-color: transparent; }
.dl-steps .em { font-size: 26px; flex: none; }
.dl-steps .nm { flex: 1; min-width: 0; font-weight: 700; }
.dl-steps .nm small { display: block; font-weight: 600; color: var(--lpw-sub); font-size: 13px; }
.dl-steps .pt { font-weight: 800; white-space: nowrap; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 12px 0 4px; padding: 0; list-style: none; }
.cal li { text-align: center; padding: 8px 2px; border-radius: 12px; border: 1px solid var(--lpw-line); font-size: 12px; color: var(--lpw-sub); font-weight: 700; }
.cal li b { display: block; font-size: 18px; line-height: 1.3; }
.cal li.on { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.cal li.today { outline: 2px solid var(--lp-accent); outline-offset: 1px; }
.dl-streak { font-size: 18px; font-weight: 800; margin-top: 10px; }

/* /me/ */
.radar { width: 100%; max-width: 380px; display: block; margin: 0 auto; height: auto; }
.radar .grid { fill: none; stroke: var(--lpw-line); stroke-width: 1; }
.radar .axis { stroke: var(--lpw-line); stroke-width: 1; }
.radar .area { fill: color-mix(in srgb, var(--lp-accent) 28%, transparent); stroke: var(--lp-accent); stroke-width: 2.5; stroke-linejoin: round; }
.radar .dot { fill: var(--lp-accent); }
.radar .lab { fill: var(--lpw-text); font-size: 13px; font-weight: 800; }
.radar .val { fill: var(--lpw-sub); font-size: 11.5px; font-weight: 700; }
.me-sum { text-align: center; margin: 4px 0 12px; color: var(--lpw-sub); font-weight: 700; }
.me-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.me-list li a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--lpw-line); background: var(--lpw-card); text-decoration: none; color: var(--lpw-text); }
.me-list .nm { flex: 1; min-width: 0; font-weight: 700; }
.me-list .nm small { display: block; color: var(--lpw-sub); font-weight: 600; font-size: 12.5px; }
.me-list .sc { font-weight: 800; white-space: nowrap; }
.me-list .none { color: var(--lpw-mute); font-weight: 600; }
.dex { display: grid; gap: 10px; margin-top: 10px; }
.dex section { padding: 12px; border-radius: 14px; border: 1px solid var(--lpw-line); background: var(--lpw-bg2); }
.dex h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.dex h3 small { color: var(--lpw-sub); font-weight: 700; margin-left: 4px; }
.dex ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dex li { padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; border: 1px solid var(--lpw-line); background: var(--lpw-card); color: var(--lpw-mute); }
.dex li.got { background: var(--lpw-text); color: var(--lpw-bg); border-color: var(--lpw-text); }
.me-h { font-size: 19px; font-weight: 800; margin: 22px 0 4px; letter-spacing: -.02em; }
.me-reset { margin-top: 18px; text-align: center; }
@media (max-width: 420px) { .dc-list li a, .dc-list li span.dc-item { font-size: 13px; } }
.btns .wide-p { grid-column: 1 / -1; font-weight: 800; text-align: center; }
/* 어두운 화면: 그래프의 내 막대·능력치 면을 더 밝게 */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hist .hb.me, :root:not([data-theme="light"]) .radar .dot { fill: #8f88ff; } :root:not([data-theme="light"]) .radar .area { stroke: #8f88ff; } }
:root[data-theme="dark"] .hist .hb.me, :root[data-theme="dark"] .radar .dot { fill: #8f88ff; }
:root[data-theme="dark"] .radar .area { stroke: #8f88ff; }
