/* 꾸밈 시안 '가' (11-28): 색·글꼴·둥근 정도는 아래 변수만 바꾸면 전체가 바뀌어요 */
:root {
  /* 색 */
  --accent: #1D4ED8;        /* 대표 색(단추·강조) */
  --accent-dark: #173EA8;   /* 단추에 올렸을 때 */
  --tint: #EAF0FE;          /* 대표 색의 연한 짝(띠·딱지 바탕) */
  --bg: #F4F6FA; --card: #FFFFFF; --ink: #17202E; --soft: #556070; --mute: #6B7686; --line: #DDE3EC; --line-strong: #C9D2DF;
  --ok: #0B6B4F; --ok-bg: #E7F5EF; --bad: #B42318; --bad-bg: #FDECEA; --stamp: #C0392B;
  /* 글꼴: 기기에 있는 글꼴만 씀(글꼴 파일·바깥 주소 없음) */
  --font: "Noto Sans KR", "맑은 고딕", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  /* 글자 크기 4단계 + 주차 제목 */
  --s: 15px; --m: 17px; --l: 24px; --xl: clamp(30px, 4.6vw, 52px); --xl-week: clamp(27px, 3.4vw, 38px);
  /* 둥근 정도·그림자 */
  --r-card: 20px; --r-box: 14px; --r-btn: 12px; --r-pill: 999px;
  --shadow: 0 2px 8px rgba(23, 32, 46, .06); --shadow-lg: 0 16px 40px rgba(23, 32, 46, .10); --shadow-btn: 0 8px 20px rgba(29, 78, 216, .24);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--m)/1.65 var(--font); word-break: keep-all; }
a { color: var(--accent); }
b, strong { font-weight: 700; }

/* 아이콘(직접 그린 선 그림) */
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ic.dot circle { fill: currentColor; stroke: none; } .ic.dot path { stroke: #fff; }

/* 맨 위 */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 32px; background: var(--card); border-bottom: 1px solid #E3E8EF; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand::before { content: ""; width: 26px; height: 26px; border: 3px solid var(--accent); border-radius: 7px; background: linear-gradient(var(--accent), var(--accent)) 0 0 / 50% 50% no-repeat, linear-gradient(var(--accent), var(--accent)) 50% 0 / 2px 100% no-repeat, linear-gradient(var(--accent), var(--accent)) 0 50% / 100% 2px no-repeat, #fff; }
.brand #siteName { color: var(--ink); }
nav { display: flex; flex-wrap: wrap; gap: 2px; }
nav a, nav .nl { padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none; font-weight: 500; font-size: var(--s); color: var(--ink); }
nav a:hover, nav a.on { background: var(--tint); color: var(--accent); }
nav a.on { font-weight: 700; }
nav .nl { color: var(--mute); cursor: default; }

main { margin: 0; padding: 0; }
.in { max-width: 1120px; margin: 0 auto; padding: 56px 32px; }
#week > .in { padding-top: 40px; }
.band.hero { background: var(--tint); }
.heroin { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-block: 72px; }
/* 내 진도: 흰 카드 하나 */
.band.white > .in { padding-block: 0; }
.progcard { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 36px; }

h1 { font-size: var(--xl); line-height: 1.22; font-weight: 800; letter-spacing: -.03em; margin: 0 0 20px; text-wrap: balance; }
#week h1 { font-size: var(--xl-week); margin-bottom: 8px; }
h2 { font-size: var(--l); line-height: 1.4; font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px; }
.card h2 { font-size: 20px; }
.lead { font-size: 20px; line-height: 1.6; color: var(--soft); margin: 0 0 28px; }
#week .lead { font-size: var(--m); }
.eyebrow { margin: 0 0 4px; font-size: var(--s); font-weight: 700; color: var(--accent); }
.eyebrow:empty { display: none; }
.card { background: var(--card); border: 0; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 32px; margin-bottom: 24px; }
.big li { margin-bottom: 8px; }
.note { color: var(--soft); font-size: var(--s); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cols .card { margin-bottom: 0; min-width: 0; }
.cols + .card { margin-top: 24px; }
.crumb { margin: 0 0 14px; font-size: var(--s); }
.crumb a { text-decoration: none; font-weight: 700; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1.5px solid var(--line-strong); border-radius: var(--r-btn); text-decoration: none; font-weight: 700; color: var(--ink); background: var(--card); cursor: pointer; font-size: 16px; font-family: inherit; transition: transform .12s ease-out, background-color .12s ease-out; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.big { min-height: 60px; padding: 0 30px; border-radius: 14px; font-size: 20px; box-shadow: var(--shadow-btn); }
/* 움직임 ②: 단추에 올리면 살짝 뜸 */
@media (hover: hover) { .btn:not([disabled]):hover { transform: translateY(-2px); } .btn.primary:not([disabled]):hover { background: var(--accent-dark); } }
.btn:not([disabled]):active { transform: translateY(1px); }
.btn:focus-visible, .drop:focus-visible, .democard:focus-visible, .stamp:focus-visible, nav a:focus-visible { outline: 3px solid #F0B429; outline-offset: 2px; }
.btn[disabled] { background: #E3E8EF; border-color: #E3E8EF; color: var(--mute); cursor: default; }

/* 첫 화면 */
.perk { display: inline-block; background: var(--card); border-radius: var(--r-pill); padding: 6px 14px; color: var(--accent); font-weight: 700; font-size: var(--s); margin: 0 0 20px; }
.perk:empty { display: none; }
.btns.start { margin: 0 0 22px; }
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; font-size: var(--s); font-weight: 500; color: #33405A; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks .ic { color: var(--accent); }

/* 첫 화면 볼거리: 1주 빠른 연습 표 맛보기 */
.democard { display: block; background: var(--card); border-radius: var(--r-card); padding: 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-lg); }
.demoq { display: block; font-size: var(--s); line-height: 1.6; margin-bottom: 14px; }
.demoq b { display: inline-block; margin-right: 8px; padding: 1px 10px; border-radius: var(--r-pill); background: var(--tint); color: var(--accent); }
.dgrid { border-collapse: collapse; width: 100%; table-layout: fixed; }
.dgrid th { background: #F1F4F9; color: var(--soft); font-weight: 500; font-size: 13px; border: 1px solid var(--line); padding: 4px 0; }
.dgrid th:first-child { width: 34px; }
.dgrid td { position: relative; border: 1px solid var(--line); height: 38px; padding: 0 10px; font-size: 16px; white-space: nowrap; overflow: hidden; background: #fff; }
.dgrid td.n { text-align: right; }
.dgrid td.sel { outline: 3px solid var(--accent); outline-offset: -2px; background: var(--tint); font-weight: 700; }
.dgrid .was { position: absolute; right: 10px; opacity: 0; }
.demofoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: var(--s); font-weight: 700; }
.demook { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); }
.demogo { color: var(--accent); }
/* 움직임 ①: 고칠 칸의 값이 4 → 8로 바뀌고 '맞았어요'가 뜸(7초마다). 움직임을 줄인 설정이면 끝 모습만 */
@media (prefers-reduced-motion: no-preference) {
  .dgrid .was { animation: kkWas 7s infinite; } .dgrid .now { animation: kkNow 7s infinite; } .demook { animation: kkOk 7s infinite; }
  @keyframes kkWas { 0%, 32% { opacity: 1; } 36%, 100% { opacity: 0; } }
  @keyframes kkNow { 0%, 36% { opacity: 0; } 42%, 100% { opacity: 1; } }
  @keyframes kkOk { 0%, 46% { opacity: 0; transform: translateY(4px); } 54%, 100% { opacity: 1; transform: none; } }
}

/* 시작하는 방법: 번호 카드 4장 */
.how { list-style: none; counter-reset: how; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 20px; padding: 0; font-size: 16px; }
.how li { counter-increment: how; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 24px; margin: 0; line-height: 1.6; }
.how li::before { content: counter(how); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 10px; background: var(--tint); color: var(--accent); font-weight: 800; }

/* 완성 모습 */
.paper { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px 30px; min-height: 260px; font-size: 15px; line-height: 1.6; color: #111; }
.paper p { margin: 0 0 4px; }
.paper:has(.sheet) { padding: 14px; overflow-x: auto; }
.sheet { border-collapse: collapse; font-size: 13px; width: 100%; }
.sheet th { background: #F1F4F9; color: var(--soft); font-weight: 500; border: 1px solid var(--line); padding: 2px 5px; }
.sheet td { border: 1px solid #E4E8EE; padding: 3px 6px; white-space: nowrap; }
.sheet.s1 td { border: 1px solid #333; }
.sheet td.h { font-weight: 700; text-align: center; }
.sheet tr.frz td { border-bottom: 3px solid #333; }
.sheet td.n { text-align: right; }
.sheet td.f { color: var(--accent); font-weight: 700; }
.sheet td.more { color: var(--mute); text-align: center; border-style: dashed; }
.sheet td.cf { background: #FFC7CE; }

/* 올리기·채점 결과 */
.drop { display: block; border: 2px dashed var(--line-strong); border-radius: var(--r-box); padding: 36px 20px; text-align: center; cursor: pointer; background: #FAFBFD; }
.drop.over { border-color: var(--accent); background: var(--tint); }
.drop input { display: none; }
#result { margin-top: 18px; }
.score { display: flex; align-items: center; gap: 18px; font-size: var(--l); font-weight: 800; margin-bottom: 12px; }
.items { list-style: none; padding: 0; margin: 0; }
.items li { padding: 12px 16px; border-radius: var(--r-btn); margin-bottom: 8px; }
.items li .ic { margin-right: 8px; }
.items li.ok { background: var(--ok-bg); } .items li.ok .ic { color: var(--ok); }
.items li.bad { background: var(--bad-bg); } .items li.bad .ic { color: var(--bad); }
.items .fix { display: block; color: var(--bad); font-size: var(--s); margin-top: 2px; }
.items .okn { display: block; color: var(--soft); font-size: var(--s); margin-top: 2px; }
.err { background: var(--bad-bg); color: var(--bad); padding: 12px 16px; border-radius: var(--r-btn); }

/* 내 진도: 8칸 길 */
.streak { display: inline-block; background: var(--bg); border-radius: var(--r-pill); padding: 8px 18px; font-size: var(--s); font-weight: 500; color: #33405A; }
.streak .days { display: inline-flex; gap: 6px; margin-left: 12px; vertical-align: middle; }
.streak .d { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); font-size: 13px; text-align: center; line-height: 23px; color: var(--soft); background: var(--card); }
.streak .d.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.stamps { display: grid; grid-template-columns: repeat(8, 1fr); margin: 28px 0 20px; }
.stamp { position: relative; display: block; padding: 0 4px 6px; text-align: center; text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.5; border-radius: 10px; }
.stamp::before { content: ""; position: absolute; top: 24px; left: -50%; width: 100%; height: 4px; background: #E9EDF3; }
.stamp:first-child::before { display: none; }
.stamp.done::before, .stamp.now::before { background: var(--accent); }
.stamp .no { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: #F1F4F9; color: var(--mute); font-style: normal; font-weight: 700; font-size: 18px; }
.stamp.now .no { background: var(--accent); color: #fff; font-weight: 800; box-shadow: 0 0 0 6px var(--tint); }
.stamp.done .no { background: var(--card); border: 3px solid var(--stamp); color: var(--stamp); transform: rotate(-12deg); }
.stamp .tx { display: block; text-wrap: balance; }
.stamp b { display: block; font-size: 16px; }
.stamp small { display: block; font-size: 14px; }
.stamp .mark { display: inline-block; margin-top: 6px; padding: 2px 12px; border-radius: var(--r-pill); background: var(--bg); color: var(--soft); font-size: 14px; }
.stamp.now .mark { background: var(--tint); color: var(--accent); font-weight: 700; }
.stamp.done .mark { background: #FBEDEB; color: var(--stamp); font-weight: 700; }
.stamp.locked, .stamp.locked b { color: var(--mute); }
.stamp.locked .mark { padding: 0; background: none; color: var(--mute); }
a.stamp:hover b { text-decoration: underline; }
.stamp-big { width: 74px; height: 74px; line-height: 66px; border-radius: 50%; border: 4px solid var(--stamp); color: var(--stamp); text-align: center; font-size: var(--m); transform: rotate(-12deg); }

.foot { background: var(--card); border-top: 1px solid #E3E8EF; margin-top: 16px; padding: 28px max(32px, calc((100% - 1120px) / 2 + 32px)); color: var(--soft); font-size: 14px; }
.foot p { margin: 2px 0; }

/* 빠른 연습 */
.sub { font-size: var(--s); font-weight: 400; color: var(--soft); margin-left: 8px; letter-spacing: 0; }
.step2 { margin: 12px 0 16px; }
.qhead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.qhead .qn { color: var(--accent); white-space: nowrap; font-size: var(--s); }
.qbar { display: inline-flex; gap: 5px; }
.qbar i { width: 34px; height: 8px; border-radius: var(--r-pill); background: var(--line); }
.qbar i.on { background: var(--accent); }
.qhead .qq { flex: 1 1 100%; padding: 16px 22px; border-radius: var(--r-box); background: var(--tint); font-size: 19px; font-weight: 700; line-height: 1.5; }
.fbar { display: inline-flex; min-width: 300px; border: 1px solid var(--line); border-bottom: 0; background: #FAFBFD; font-size: var(--s); }
.fbar .fref { width: 64px; padding: 6px 12px; border-right: 1px solid var(--line); font-weight: 700; }
.fbar .fval { padding: 6px 12px; min-height: 1.6em; font-family: Consolas, var(--font); }
.grid { overflow-x: auto; outline: none; }
.grid:focus-visible { outline: 3px solid #F0B429; }
.grid table { border-collapse: collapse; user-select: none; }
.grid th { background: #F1F4F9; color: var(--soft); font-weight: 500; font-size: 13px; border: 1px solid var(--line); padding: 4px 10px; min-width: 30px; }
.grid td { position: relative; border: 1px solid var(--line); width: 132px; min-width: 132px; height: 38px; padding: 0 10px; font-size: 16px; white-space: nowrap; overflow: hidden; background: #fff; cursor: cell; }
.grid td.n { text-align: right; }
.grid td.rg { background: #D5E2FB; }
.grid td.sel { outline: 3px solid var(--accent); outline-offset: -2px; overflow: visible; }
.grid:not(:focus-within) td.sel { outline-style: dashed; }
.grid td.er { color: var(--bad); }
.grid .fh { position: absolute; right: -5px; bottom: -5px; width: 9px; height: 9px; background: var(--accent); border: 1px solid #fff; cursor: crosshair; z-index: 2; }
.grid input.ed { position: absolute; inset: 0; width: 100%; border: 0; padding: 0 10px; font: inherit; outline: none; background: #FFFBE6; }
.grid input.ed.idle { opacity: 0; caret-color: transparent; pointer-events: none; }
.grid.wide td { width: 112px; min-width: 112px; }
.qmsg { display: flex; align-items: flex-start; gap: 8px; min-height: 1.7em; margin-top: 14px; }
.qmsg .ic { margin-top: .15em; }
.qmsg.ok { color: var(--ok); font-weight: 700; }
.qmsg.bad { color: var(--bad); }
.pcnote { display: none; padding: 10px 14px; border-radius: var(--r-btn); background: var(--bg); color: #33405A; font-size: 14px; margin: 0 0 16px; }

/* 다 풀었을 때 */
.qdone { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 28px 0 4px; text-align: center; }
.qdone[hidden], .quick[hidden] { display: none; }
#quickCard:has(#quickDone:not([hidden])) .pcnote { display: none; }
.qdone .badge { width: 88px; height: 88px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 14px var(--tint); margin: 14px 0 6px; }
.qdone .badge .ic { width: 46px; height: 46px; stroke-width: 3; }
.qdone h3 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.2; font-weight: 800; letter-spacing: -.03em; }
.qdone p { margin: 0; color: var(--soft); font-size: 19px; }
.qdone .qcount { display: flex; align-items: center; gap: 12px; color: var(--accent); font-weight: 700; font-size: 16px; }
.qdone .qbar i { width: 40px; }
.qdone .btns { justify-content: center; margin-top: 10px; }
.qnextstep { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; padding: 20px 24px; border-radius: 16px; background: var(--tint); text-align: left; align-self: stretch; }
.qnextstep .icbox { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--card); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.qnextstep .tx { flex: 1 1 300px; font-size: var(--s); color: #33405A; }
.qnextstep b { display: block; font-size: var(--m); color: var(--ink); }

/* 잠긴 주, 수료증 */
#week.locked .card, #week.locked .cols, #week.locked .step2 { display: none; }
.cert .nm { display: inline-flex; align-items: center; gap: 10px; }
.cert .nm input { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-btn); width: 220px; }
.certImg { display: block; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; margin-top: 14px; }

/* 친구 초대 */
.invlink { font: inherit; font-size: var(--s); padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-btn); flex: 1 1 320px; min-width: 0; background: #FAFBFD; }
.invcount { margin: 16px 0 10px; }
.tiers { list-style: none; padding: 0; margin: 0 0 12px; }
.tiers li { border-radius: var(--r-btn); padding: 12px 16px; margin-bottom: 8px; background: var(--bg); }
.tiers li.lock { color: var(--soft); }
.tiers li.open { background: var(--ok-bg); }
.tiers .tg { float: right; font-size: var(--s); font-weight: 700; }
.tiers li.open .tg { color: var(--ok); }
.tiers .tb { display: block; margin-top: 4px; font-size: var(--s); }
.pv { display: flex; gap: 18px; align-items: flex-end; margin-top: 12px; flex-wrap: wrap; }
.pv .sheet { width: auto; }
.bars { display: flex; gap: 14px; align-items: flex-end; height: 120px; border-bottom: 2px solid #999; padding: 0 8px; }
.bar { text-align: center; font-size: 14px; } .bar i { display: block; width: 34px; background: var(--accent); margin: 0 auto 2px; }

@media (max-width: 900px) {
  .how { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --m: 16px; --l: 22px; }
  .in { padding: 36px 20px; }
  #week > .in { padding-top: 24px; }
  .top { padding: 10px 20px; }
  .brand { font-size: 20px; }
  nav { gap: 0; }
  nav a, nav .nl { padding: 10px 7px; font-size: 14px; }
  .heroin { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 40px; }
  .lead { font-size: 16px; }
  .btn.big { width: 100%; min-height: 56px; padding: 0 12px; font-size: 17px; }
  .btns.start { display: block; }
  .checks { flex-direction: column; align-items: flex-start; gap: 8px; }
  .democard { padding: 18px; }
  .dgrid td { padding: 0 8px; font-size: 15px; height: 36px; }
  .progcard { padding: 22px 20px; border-radius: 18px; }
  .how { grid-template-columns: 1fr; gap: 10px; font-size: 15px; }
  .how li { position: relative; padding: 16px 16px 16px 62px; }
  .how li::before { position: absolute; left: 16px; top: 16px; margin: 0; width: 32px; height: 32px; }
  .cols { grid-template-columns: 1fr; }
  .card { padding: 20px 18px; border-radius: 18px; }
  /* 진도 길: 폰에서는 위에서 아래로 */
  .stamps { grid-template-columns: 1fr; }
  .stamp { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; text-align: left; padding: 0 0 16px; }
  .stamp::before { top: -50%; left: 20px; width: 4px; height: 100%; }
  .stamp .no { margin: 0; width: 44px; height: 44px; font-size: 17px; }
  .stamp.now .no { box-shadow: 0 0 0 5px var(--tint); }
  .stamp .tx { text-wrap: wrap; }
  .stamp b { display: inline; margin-right: 8px; }
  .stamp small { display: inline; margin-right: 8px; }
  .stamp small::before { content: "\A"; white-space: pre; }
  .stamp .mark { margin-top: 2px; }
  .stamp.locked .mark { display: block; }
  .streak { display: block; border-radius: var(--r-btn); padding: 10px 14px; }
  .streak .days { display: flex; margin: 8px 0 0; }
  .pcnote { display: block; }
  .qhead .qq { padding: 14px 16px; font-size: 16px; }
  .qbar i { width: 20px; height: 7px; }
  .qdone .qbar i { width: 28px; }
  .qdone p { font-size: 16px; }
  .fbar { min-width: 0; display: flex; }
  .grid td { width: 96px; min-width: 96px; height: 40px; font-size: 15px; }
  .quick .btns .btn { flex: 1 1 140px; }
  .qdone .btns .btn { flex: 1 1 100%; }
  .score { flex-wrap: wrap; }
  .cert .nm input { width: 160px; }
  .paper { padding: 10px; overflow-x: auto; }
  .foot { padding: 24px 20px; }
}

/* 손가락(폰·태블릿): 표 위 밀기는 화면 스크롤, 꾹 누른 뒤 끌기만 범위 고르기(practice.js). 채우기 손잡이는 잡기 쉽게 크게 */
.grid table { touch-action: pan-x pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } /* 밀기는 브라우저(화면·표 스크롤), 두 번 톡 확대만 막음 */
.grid.lp td.sel { outline: 4px solid var(--accent-dark); outline-offset: -3px; background: var(--tint); } /* 꾹 눌렀을 때 표시 */
.grid .fh { touch-action: none; }
.grid .fh::after { content: ""; position: absolute; inset: -14px; }
@media (pointer: coarse) {
  .grid .fh { width: 16px; height: 16px; right: -8px; bottom: -8px; border: 2px solid #fff; border-radius: 4px; }
  .grid .fh::after { inset: -12px; }
}
/* 손가락 기기 전용 '아래로 채우기' 단추(채우기 문제에서만 보임) */
.qfillrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.qfillrow[hidden] { display: none; }
.qfillrow .qfill { min-height: 52px; font-size: 17px; box-shadow: var(--shadow-btn); }
.qfillhint { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-size: var(--s); }
.qfillhint .ic { width: 28px; height: 28px; color: var(--accent); }
@media (max-width: 760px) { .qfillrow .qfill { flex: 1 1 100%; } }

