:root {
  --bg: #f7f8fb; --surface: #fff; --ink: #14151a; --sub: #6b7080; --line: #c9ccd6;
  --wall: #14151a; --accent: #12a150; --accent-2: #6fcf97; --tint: rgba(109, 94, 252, .14);
  --dot: #14151a; --dot-ink: #fff; --bad: #e5484d; --ok: #12a150; --soft: #e9ebf1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151a; --surface: #1d1f27; --ink: #f2f3f7; --sub: #9a9fb0; --line: #3a3d4a;
    --wall: #f2f3f7; --accent: #12a150; --accent-2: #6fcf97; --tint: rgba(139, 125, 255, .2);
    --dot: #f2f3f7; --dot-ink: #14151a; --soft: #2a2d38;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overscroll-behavior: none; touch-action: manipulation; } /* 아이폰은 user-scalable=no 를 무시한다 — 두 번 탭 확대를 여기서 막는다 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; touch-action: none; } /* 버튼 위에서 손가락이 미끄러져도 스크롤로 넘어가지 않게 */
.log-row, .arow, .ach, .sum-comp { touch-action: pan-y; } /* 목록 안의 줄은 위아래로 밀 수 있어야 한다 */
[hidden] { display: none !important; }

.app {
  max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 16px);
}
.top { display: flex; align-items: center; gap: 8px; }
.top h1 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.modes { margin-left: auto; display: flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.modes button { white-space: nowrap; padding: 13px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--sub); }
.modes button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.icon { width: 42px; height: 42px; flex: none; font-size: 18px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.view { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.label { font-size: 18px; font-weight: 800; }
.streak { font-size: 12px; color: var(--sub); }
.right { display: flex; align-items: center; gap: 10px; }
.timer { font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 700; min-width: 3.2em; text-align: right; }
.pill { padding: 12px 18px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 600; }
.pill:active, .btn:active { opacity: .75; } /* 누를 때 크기를 줄이지 않는다 — 가장자리를 누르면 버튼이 손가락 밑에서 빠져나가 탭이 취소될 수 있다 */

.diffs { display: flex; gap: 6px; }
.diffs button { flex: 1; padding: 9px 0; border-radius: 10px; background: var(--soft); font-size: 13px; font-weight: 600; color: var(--sub); }
.diffs button.on { background: var(--ink); color: var(--bg); }

.board-wrap { display: flex; justify-content: center; }
.board { width: min(100%, calc(100dvh - 300px)); min-width: 240px; aspect-ratio: 1; touch-action: none; display: block; }
.board .bg { fill: var(--surface); }
.board .cell { fill: transparent; transition: fill .12s; }
.board .cell.on { fill: var(--tint); }
.board .grid line { stroke: var(--line); stroke-width: 3; }
.board .frame { fill: none; stroke: var(--line); stroke-width: 4; }
.board .walls line { stroke: var(--wall); stroke-width: 11; stroke-linecap: round; }
.board .trail { fill: none; stroke: var(--accent); stroke-width: 56; stroke-linecap: round; stroke-linejoin: round; opacity: 1; }
.board .head { fill: var(--surface); opacity: .9; }
.board .dot circle { fill: var(--dot); }
.board .dot text { fill: var(--dot-ink); font-size: 34px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.board .dot.next circle { stroke: var(--accent-2); stroke-width: 6; }
.board .dot.bad circle { fill: var(--bad); }
.board .dot.bad text { fill: #fff; }
.board.won .trail { stroke: var(--ok); opacity: 1; animation: pulse .7s ease-out; }
@keyframes pulse { 0% { opacity: 1; } 40% { opacity: .55; } 100% { opacity: 1; } } /* 굵기는 판마다 다르므로 완성 효과는 밝기로 낸다 */

.progress { text-align: center; font-size: 13px; color: var(--sub); min-height: 18px; }
.progress b { color: var(--ink); }

.actions { display: flex; gap: 8px; }
.btn { flex: 1; padding: 17px 0; min-height: 56px; border-radius: 999px; font-size: 16px; font-weight: 700; text-align: center; }
.linkbtn { align-self: center; padding: 12px 18px; font-size: 14px; font-weight: 700; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.btn.ghost { background: var(--soft); }
.btn.outline { border: 1.5px solid var(--ink); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn:disabled { opacity: .4; pointer-events: none; }

.overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 10;
}
.sheet {
  width: 100%; max-width: 520px; background: var(--surface); border-radius: 24px 24px 0 0;
  padding: 24px 20px calc(env(safe-area-inset-bottom) + 20px); display: flex; flex-direction: column; gap: 12px;
  animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet h2 { margin: 0; font-size: 22px; }
.rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.45; }
.tip { margin: 0; font-size: 13px; color: var(--sub); line-height: 1.5; }
.sheet .btn { flex: none; }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 96px); transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 20; white-space: nowrap;
  pointer-events: none; /* 안내 문구가 그 밑의 버튼을 가려 탭을 가로채지 않게 */
}
.toast.act { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; }
.toast.act[hidden] { display: none; }
.toast button { pointer-events: auto; background: var(--bg); color: var(--ink); border-radius: 999px; padding: 9px 14px; font-weight: 800; } /* 문구는 탭을 흘려보내고 이 버튼만 받는다 */
@media (min-width: 560px) { .overlay { align-items: center; } .sheet { border-radius: 24px; } }

/* 결과 화면 — 큰 기록 + 넘겨 보는 카드. 한 화면(100dvh)에 다 들어가야 버튼이 브라우저 하단 바에 안 가린다. */
.result {
  position: fixed; inset: 0 0 auto 0; height: 100dvh; z-index: 10; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(180deg, #0a5c2f 0%, #12a150 55%, #57c98a 100%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  /* 아래 여백을 크게 둔다 — 폰 브라우저의 떠 있는 하단 바와 겹치면 첫 탭을 브라우저가 먹는다. */
  padding: calc(env(safe-area-inset-top) + 10px) 0 calc(env(safe-area-inset-bottom) + 104px);
  animation: fade .25s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.res-top { width: 100%; max-width: 520px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; flex: none; }
.res-x { font-size: 24px; width: 48px; height: 48px; }
.res-view { font-size: 15px; font-weight: 700; padding: 14px 8px; }
.res-chip { background: rgba(255, 255, 255, .16); padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; flex: none; }
.res-time { font-size: clamp(56px, 20vw, 92px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; flex: none; }
.res-sub { font-size: 16px; font-weight: 600; opacity: .95; padding: 0 16px; flex: none; }
.res-cards {
  width: 100%; max-width: 520px; flex: 1 1 0; min-height: 0; max-height: 400px; display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 11%; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.res-cards::-webkit-scrollbar { display: none; }
.res-card {
  flex: 0 0 100%; scroll-snap-align: center; background: #1c1c21; border-radius: 32px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.res-card .ico { font-size: clamp(56px, 13dvh, 104px); line-height: 1.1; }
.res-card .t1 { font-size: clamp(24px, 7.5vw, 34px); font-weight: 800; }
.res-card .t2 { font-size: clamp(15px, 4.6vw, 20px); font-weight: 600; opacity: .92; line-height: 1.35; }
.res-card .mark { margin-top: 6px; font-size: 13px; font-weight: 800; opacity: .55; letter-spacing: .04em; }
.res-dots { display: flex; gap: 6px; height: 8px; flex: none; }
.res-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.res-dots i.on { background: #fff; }
.res-actions { width: 100%; max-width: 520px; display: flex; gap: 10px; padding: 6px 16px 0; flex: none; }
.btn.black { background: #000; color: #fff; }
.btn.white { background: #fff; color: #14151a; }

/* 기록 시트 */
.log-sum { display: flex; gap: 8px; }
.log-sum div, .log-sum button { flex: 1; background: var(--soft); border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.log-sum strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.log-sum span { font-size: 12px; color: var(--sub); }
.log-list { padding-bottom: 24px; }
.log-list h3 { margin: 14px 0 4px; font-size: 13px; color: var(--sub); font-weight: 700; }
.log-row { width: 100%; text-align: left; display: flex; align-items: baseline; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--soft); font-size: 15px; }
.log-row .when { width: 3.2em; color: var(--sub); font-variant-numeric: tabular-nums; flex: none; }
.log-row .what { flex: 1; min-width: 0; color: var(--sub); }
.log-row .what b { color: var(--ink); }
.log-row .how { font-variant-numeric: tabular-nums; font-weight: 600; flex: none; }

/* 업적 — 탭이 아니라 따로 떨어진 트로피 버튼으로 연다 */
.icon.trophy { background: linear-gradient(135deg, #ffd24a, #ff9a1f); font-size: 20px; }
.icon.trophy.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #ffb52e; }
.sec { margin: 8px 0 0; font-size: 17px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; }
.sec span { font-size: 13px; color: var(--sub); font-weight: 700; }
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ach { background: var(--soft); border-radius: 16px; padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.ach .ai { font-size: 30px; line-height: 1.15; filter: grayscale(1); opacity: .35; }
.ach .an { font-size: 13px; font-weight: 700; color: var(--sub); }
.ach .ad { font-size: 11px; color: var(--sub); font-variant-numeric: tabular-nums; }
.ach.on { background: linear-gradient(160deg, rgba(255, 210, 74, .28), rgba(255, 154, 31, .14)); box-shadow: inset 0 0 0 1.5px rgba(255, 181, 46, .55); }
.ach.on .ai { filter: none; opacity: 1; }
.ach.on .an { color: var(--ink); }
.log-row .go { color: var(--sub); flex: none; }

/* 언어 선택 */
.langrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; color: var(--sub); }
/* 18개 언어라 기기 기본 고르기 창(<select>)을 버튼처럼 꾸민다. 글자 16px 미만이면 아이폰이 누를 때 화면을 확대한다. */
.langsel { position: relative; min-width: 0; flex: 0 1 auto; }
.langsel select { -webkit-appearance: none; appearance: none; max-width: 100%; padding: 9px 34px 9px 14px; border: 0; border-radius: 10px; background: var(--soft); color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-overflow: ellipsis; }
.langsel::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid var(--sub); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }

/* 새 요소 — 구멍·교차로·직진/꺾임 표시·순간이동 고리 */
.board .hole { fill: var(--bg); }
.board .holex { stroke: var(--sub); stroke-width: 7; stroke-linecap: round; opacity: .7; }
.board .edges line { stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
.board .zone { opacity: .3; }
.board .zone.bad { fill: var(--bad); opacity: .45; }
.board .mark.arrowm { fill: var(--ink); stroke: none; }
.board .mark.arrowm.bad { fill: var(--bad); }
.board .bridge line { stroke: var(--sub); stroke-width: 5; stroke-linecap: round; }
.board .mark { fill: none; stroke: var(--ink); stroke-width: 7; }
.board .mark.turn { fill: var(--ink); stroke: none; }
.board .mark.bad { stroke: var(--bad); }
.board .mark.turn.bad { fill: var(--bad); }
.board .portal circle { fill: var(--surface); stroke-width: 9; } /* 순간이동 짝은 글자 없이 색으로만 맞춘다(글자가 있으면 A 를 먼저 가야 하는 줄 안다) */
.board .portal .in { fill: none; stroke-width: 6; opacity: .75; }
.board .portal.exit .ring { transform-box: fill-box; transform-origin: center; animation: pexit .9s ease-out infinite; }
@keyframes pexit { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }
/* 매우 어려운 판 표시와 요소 규칙 안내 */
.badge { align-self: flex-start; background: var(--bad); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; }
.legend { font-size: 13px; line-height: 1.5; background: var(--soft); border-radius: 12px; padding: 9px 12px; color: var(--sub); }
.legend b { color: var(--ink); }

/* 나침반 — 힌트에 쓰는 재화 */
.comp { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--soft); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.comp-top { display: flex; align-items: baseline; gap: 10px; }
.comp-top .comp-ico { font-size: 30px; }
.comp-top strong { font-size: 40px; font-variant-numeric: tabular-nums; }
.comp-top span:last-child { font-size: 14px; color: var(--sub); }

/* 푸는 화면 버튼: 실행 취소가 주 버튼, 힌트는 나침반이 드는 보조 버튼, 공유는 아이콘 */
.actions .big { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; } /* 되돌리기 = 화살표 + 글자. 화살표는 되돌리기에만 쓴다(새로 하기는 지우개) */
.btn.hintbtn { flex: 1.15; border: 1.5px solid var(--line); font-size: 15px; white-space: nowrap; }
.btn.iconbtn { flex: none; width: 52px; padding: 0; background: var(--soft); display: grid; place-items: center; } /* 새로 하기 · 공유 */

/* 업적·기록 화면 */
.logtop { display: flex; align-items: center; gap: 10px; }
.backbtn { padding: 11px 12px 11px 0; font-size: 14px; font-weight: 700; color: var(--sub); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.logtop .seg { flex: none; }
.backbtn::before { content: '‹ '; }
.seg { margin-left: auto; display: flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.seg button { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--sub); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.pane { display: flex; flex-direction: column; gap: 12px; }
.ach-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 24px; }
.arow { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 16px; padding: 12px 14px; }
.arow .ai { font-size: 30px; line-height: 1; flex: none; width: 36px; text-align: center; opacity: .6; }
.arow .ab { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.arow .ab b { font-size: 15px; }
.arow .ab small { font-size: 12px; color: var(--sub); line-height: 1.35; }
.arow .bar { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; }
.arow .bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.arow .ar { flex: none; text-align: right; font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; line-height: 1.5; }
.arow .ar em { font-style: normal; font-weight: 700; color: var(--ink); }
.arow.on { background: linear-gradient(160deg, rgba(255, 210, 74, .28), rgba(255, 154, 31, .14)); box-shadow: inset 0 0 0 1.5px rgba(255, 181, 46, .55); }
.arow.on .ai { filter: none; opacity: 1; }
.arow.hero { box-shadow: inset 0 0 0 2px var(--accent); padding: 16px 14px; }
.arow.hero .ai { filter: none; opacity: 1; font-size: 36px; }

/* 시간 제한 실험(/rush/ 시험 페이지에서만 쓴다) */
.rush { flex: none; display: flex; align-items: center; gap: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rush .heart { font-size: 16px; color: var(--bad); }
.rush .time { font-size: 22px; min-width: 2.6em; text-align: right; }
.rush.low .time { color: var(--bad); }
.rush button { min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 800; }
.rush button:disabled { opacity: .4; pointer-events: none; }
.rbar { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.rbar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .1s linear; }
.rbar.low i { background: var(--bad); }

/* 토스 판(앱인토스) — 오른쪽 위에 토스의 닫기(X)·더보기 버튼이 떠 있어서 그만큼 내려 그린다. 여백은 SDK 가 준 값(--sat/--sab)을 쓴다. */
.toss .app { padding-top: calc(var(--sat, 0px) + 54px); padding-bottom: calc(var(--sab, 0px) + 16px); }
.toss .sheet { padding-bottom: calc(var(--sab, 0px) + 20px); }
.toss .result { padding: calc(var(--sat, 0px) + 54px) 0 calc(var(--sab, 0px) + 40px); }
.ko-only .langrow { display: none; }
.shop-list, .shop-hist { display: flex; flex-direction: column; gap: 10px; }
.shop-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--soft); }
.shop-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shop-row b { font-size: 16px; }
.shop-row span { font-size: 13px; color: var(--sub); line-height: 1.4; }
.shop-row .btn { flex: none; min-height: 44px; padding: 0 16px; font-size: 15px; }
.shop-msg { color: var(--bad); }
.shop-msg:empty { display: none; }
.shop-h { margin: 6px 0 0; font-size: 14px; color: var(--sub); }
.shop-ord { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.shop-ord span:last-child { color: var(--sub); flex: none; }
.shop-hist { max-height: 120px; overflow-y: auto; }
.res-noti { flex: none; padding: 12px 18px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 15px; font-weight: 700; }

/* 오늘의 퍼즐 노말/하드 고르기 — 판 위 이름 줄 오른쪽. 깬 쪽에는 ✓ 가 붙는다. */
.dkind { margin-left: auto; flex: 0 1 auto; min-width: 0; }
.dkind button { padding: 11px 14px; font-size: 13px; min-height: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* 고르는 칸이 생긴 뒤로 이름 줄이 좁아질 수 있다 — 넘치면 줄바꿈 대신 말줄임(줄바꿈되면 판과 버튼 줄이 화면 밖으로 밀린다) */
.bar .meta { flex: 0 1 auto; }
.bar .label, .bar:has(.dkind:not([hidden])) .streak { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dkind button[data-k="h"].on { background: var(--bad); color: #fff; }
/* 최근 7일 — 결과 카드(어두운 바탕)와 🏆 화면에 같이 쓴다 */
.days { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.days i { width: 34px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-style: normal; }
.days b { font-size: 11px; font-weight: 600; opacity: .7; }
.days em { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 15px; font-weight: 800; background: rgba(127, 127, 140, .22); color: #fff; }
.days i.on em { background: var(--accent); }
.days i.both em { background: #0a6b35; box-shadow: 0 0 0 2px #f5b301; }
.days i.today em { outline: 2px solid currentColor; outline-offset: 2px; }
.log-days { background: var(--soft); border-radius: 14px; padding: 10px 12px; }
.log-days .dh { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.log-days .dh span { color: var(--sub); font-size: 12px; }
.log-days .days { margin-top: 8px; }
.log-days p { margin: 8px 0 0; font-size: 11px; color: var(--sub); text-align: center; }

/* 스토어 앱 상점(나침반 창 안)·지난 퍼즐 보관함 — window.Native.iap 가 있을 때만 그려진다(웹·토스 판에는 없다) */
#compsheet .sheet { max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cshop { display: flex; flex-direction: column; gap: 10px; }
.cshop .linkbtn { padding: 8px 18px; }
.arc-lock { display: flex; flex-direction: column; gap: 8px; background: var(--soft); border-radius: 14px; padding: 14px; margin-top: 12px; }
.arc-lock b { font-size: 16px; }
.arc-lock p { margin: 0; font-size: 13px; color: var(--sub); line-height: 1.5; }
.arc-lock.pulse { animation: arcpulse .5s ease; }
@keyframes arcpulse { 30% { transform: scale(1.03); } }
.arc-list h3 { margin: 14px 0 4px; font-size: 13px; color: var(--sub); font-weight: 700; }
.arc-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--soft); font-size: 15px; }
.arc-no { width: 3em; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.arc-day { flex: 1; min-width: 0; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arc-k { flex: none; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--soft); font-size: 13px; font-weight: 700; white-space: nowrap; }
.arc-k.on { background: var(--accent); color: #fff; }
.arc-list.locked .arc-row { opacity: .55; }
#logtabs button { white-space: nowrap; }
