/* 맡아둠 — 미색 종이 + 짙은초록 + 금 세로선 (명함·봉투와 같은 언어). 모서리 10px 하나로 통일. */
:root {
  --paper: #f2eee4; --card: #fbf9f4; --ink: #1f2421; --muted: #5d625e; --line: #d9d3c4;
  --green: #1e3a2f; --gold: #a98a52; --go: #16794a; --stop: #b3261e; --r: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); word-break: keep-all; overflow-wrap: anywhere;
  font: 16px/1.6 Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif; }
.wrap { max-width: 480px; margin: 0 auto; padding: 20px 16px 48px; min-height: 100dvh; }
.wrap.wide { max-width: 1080px; }
header.brand { display: flex; align-items: center; gap: 12px; padding: 4px 0 20px; }
header.brand .mark { font-family: 'Noto Serif KR', serif; font-weight: 600; color: var(--green);
  font-size: 22px; letter-spacing: .08em; border-left: 2px solid var(--gold); padding-left: 10px; }
h1 { font-size: 24px; line-height: 1.3; margin: 8px 0 6px; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 28px 0 10px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; border-left: 3px solid var(--gold); }
.ticket .name { font-size: 19px; font-weight: 700; }
.ticket .serial { font-variant-numeric: tabular-nums; letter-spacing: .06em; color: var(--muted); font-size: 14px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
input[type=text], input[type=tel], input[type=password], input[type=date], select {
  width: 100%; font: inherit; padding: 13px 14px; border: 1px solid #b9b2a2; border-radius: var(--r);
  background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; margin-top: 18px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); }
.btn { display: block; width: 100%; text-align: center; font: inherit; font-weight: 700; padding: 15px;
  border-radius: var(--r); border: 0; background: var(--green); color: #fff; text-decoration: none;
  margin-top: 20px; cursor: pointer; transition: transform .12s ease; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--green); border: 1px solid var(--green); }
.btn.small { display: inline-block; width: auto; padding: 9px 14px; margin: 0; font-size: 14px; }
.error { background: #fbe9e7; color: #8c1d18; border-radius: var(--r); padding: 12px 14px; font-size: 14px; margin-top: 14px; }
.note { background: #e8efe9; color: var(--green); border-radius: var(--r); padding: 12px 14px; font-size: 14px; margin-top: 14px; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.days a, .slots button { display: block; text-align: center; padding: 10px 4px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--card); color: var(--ink); text-decoration: none; font: inherit; font-size: 14px; }
.days a.on { background: var(--green); color: #fff; border-color: var(--green); }
.days a small, .slots small { display: block; font-size: 12px; color: var(--muted); }
.days a.on small { color: #d6e2da; }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slots button { padding: 14px; cursor: pointer; }
.slots button[disabled] { opacity: .45; cursor: default; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.tabs a.on { background: var(--green); color: #fff; border-color: var(--green); }
dl.kv { display: grid; grid-template-columns: 88px 1fr; gap: 6px 12px; margin: 14px 0 0; font-size: 15px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 600; }
.rules { font-size: 13px; color: var(--muted); padding-left: 18px; margin: 16px 0 0; }
.rules li { margin-bottom: 4px; }
/* 매장 스캔: 색만 보면 되게 화면 전체 */
.scan { min-height: 100dvh; color: #fff; padding: 28px 20px; display: flex; flex-direction: column; }
.scan.go { background: var(--go); }
.scan.stop { background: var(--stop); }
.scan.done { background: var(--green); }
.scan .big { font-size: 34px; font-weight: 800; line-height: 1.25; margin: 18px 0 8px; }
.scan .who { font-size: 22px; font-weight: 700; }
.scan .menu { font-size: 18px; opacity: .92; margin-top: 6px; }
.scan .why { font-size: 20px; font-weight: 600; margin-top: 8px; }
.scan .store { font-size: 14px; opacity: .85; }
.scan .btn { background: #fff; color: var(--go); font-size: 20px; padding: 20px; margin-top: auto; }
.scan.done .btn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); font-size: 16px; }
.scan form { margin-top: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: var(--r); font-size: 12px; background: #e4ded0; }
.pill.used, .pill.visited { background: #dbe8df; color: var(--green); }
.pill.void, .pill.noshow { background: #f3d9d6; color: #8c1d18; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.stats b { display: block; font-size: 22px; }
.row { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.envelope { background: #fbf9f4; width: 100%; max-width: 560px; aspect-ratio: 220 / 110; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; position: relative; margin: 20px auto; }
.envelope .to { font-family: 'Noto Serif KR', serif; font-size: 30px; color: var(--green); letter-spacing: .04em; }
.envelope .side { position: absolute; right: 24px; top: 18px; bottom: 18px; border-left: 1px solid var(--gold);
  padding-left: 10px; writing-mode: vertical-rl; font-family: 'Noto Serif KR', serif; color: var(--green); letter-spacing: .3em; }
@media print { .noprint { display: none; } body { background: #fff; } .envelope { border: 0; } }

/* ── 랜딩(커밍순): 짙은초록 + 금 + 미색 글자, 한 테마로 고정 ── */
.landing { --deep: #0f1d17; --deep2: #142821; --cream: #efe9dc; --cream-dim: #b9b3a5; --gold2: #b8975c;
  background: var(--deep); color: var(--cream); min-height: 100dvh; }
.lp-hero { position: relative; min-height: 100dvh; display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px 24px 56px; overflow: hidden; isolation: isolate; }
.lp-bg, .lp-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.lp-bg img { object-fit: cover; object-position: 50% 72%; }
.lp-hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,29,23,.55) 0%, rgba(15,29,23,.15) 30%, rgba(15,29,23,.55) 62%, rgba(15,29,23,.96) 100%); }
.lp-top { display: flex; justify-content: space-between; align-items: center; }
.lp-mark { font-family: 'Noto Serif KR', serif; font-weight: 600; font-size: 22px; letter-spacing: .14em;
  border-left: 2px solid var(--gold2); padding-left: 12px; color: var(--cream); }
.lp-mark.small { font-size: 17px; }
.lp-latin { font-size: 11px; letter-spacing: .32em; color: var(--cream-dim); }
.lp-copy { max-width: 620px; }
.lp-copy h1 { font-family: 'Noto Serif KR', serif; font-weight: 600; font-size: clamp(30px, 7.4vw, 52px);
  line-height: 1.32; letter-spacing: -.01em; margin: 0 0 18px; color: var(--cream); text-wrap: balance; }
.lp-sub { font-size: 16px; line-height: 1.7; color: var(--cream); opacity: .88; margin: 0 0 22px; max-width: 30em; }
.lp-when { display: inline-block; font-size: 13px; letter-spacing: .08em; color: var(--gold2);
  border-top: 1px solid rgba(184,151,92,.5); padding-top: 10px; margin: 0; }
.lp-body { max-width: 620px; padding: 64px 24px 24px; }
.lp-body h2 { font-family: 'Noto Serif KR', serif; font-weight: 600; font-size: 22px; margin: 0 0 22px; color: var(--cream); }
.lp-steps { list-style: none; padding: 0; margin: 0 0 40px; counter-reset: s; }
.lp-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; padding: 14px 0;
  border-top: 1px solid rgba(239,233,220,.12); font-size: 15px; line-height: 1.65; color: var(--cream); }
.lp-steps li::before { content: counter(s); font-family: 'Noto Serif KR', serif; color: var(--gold2); font-size: 15px; }
.lp-product { border-left: 2px solid var(--gold2); padding: 4px 0 4px 18px; margin-bottom: 36px; }
.lp-product p { margin: 0; color: var(--cream-dim); font-size: 15px; line-height: 1.7; }
.lp-product .lp-product-name { color: var(--cream); font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.lp-product em { font-style: normal; color: var(--gold2); font-weight: 500; margin-left: 6px; }
.lp-news { font-size: 14px; color: var(--cream-dim); }
.lp-news b { color: var(--cream); font-weight: 600; }
.lp-foot { max-width: 620px; padding: 40px 24px 48px; border-top: 1px solid rgba(239,233,220,.1); margin-top: 24px; }
.lp-foot p { font-size: 12px; line-height: 1.9; color: #8d8a80; margin: 14px 0 0; }
@media (min-width: 900px) {
  .lp-hero { padding: 36px 64px 80px; }
  .lp-bg img { object-position: 50% 62%; }
  .lp-hero::after { background: linear-gradient(90deg, rgba(15,29,23,.92) 0%, rgba(15,29,23,.55) 45%, rgba(15,29,23,.1) 100%),
                                 linear-gradient(180deg, rgba(15,29,23,0) 70%, rgba(15,29,23,.95) 100%); }
  .lp-body, .lp-foot { margin-left: 64px; padding-left: 0; padding-right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .lp-bg img { animation: lp-settle 2.6s cubic-bezier(.16,1,.3,1) both; }
  .lp-copy > * { animation: lp-rise .9s cubic-bezier(.16,1,.3,1) both; }
  .lp-copy > :nth-child(2) { animation-delay: .12s; }
  .lp-copy > :nth-child(3) { animation-delay: .24s; }
}
@keyframes lp-settle { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes lp-rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
body:has(.landing) { background: #0f1d17; }

.slots label { display: block; text-align: center; padding: 14px 4px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); font-size: 14px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.slots label small { display: block; font-size: 12px; color: var(--muted); }
.slots input { position: absolute; opacity: 0; pointer-events: none; }
.slots input:checked + label { background: var(--green); border-color: var(--green); color: #fff; }
.slots input:checked + label small { color: #d6e2da; }
.slots input:disabled + label { opacity: .45; cursor: default; }
.slots input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }
.pick { margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: #e8efe9; color: var(--green); font-size: 15px; }
.btn[disabled] { background: #b9c2bd; cursor: default; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid;
  place-items: center; font-size: 28px; margin: 12px 0 8px; }

.slots label { margin: 0; font-weight: 600; }
.slots > div { position: relative; }
/* 관리자 표: 좁은 화면에선 줄바꿈 대신 가로 스크롤 (한 글자씩 세로로 깨지는 것 방지) */
@media (max-width: 760px) {
  .wrap.wide table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wrap.wide th, .wrap.wide td { white-space: nowrap; }
}
a.tel { color: inherit; }

.lp-verse { font-family: 'Noto Serif KR', serif; font-size: 19px; line-height: 1.9; color: var(--cream); margin: 0 0 36px; }

/* 구절 단위로만 줄바꿈 (단어·구절 중간에서 안 끊기게) */
.nb { white-space: nowrap; }

/* ── 고객·매장 화면 다듬기 (10/28 도그푸드) ── */
.tk { background: #17302a; color: #efe9dc; border-radius: var(--r); padding: 18px 18px 14px 20px; position: relative; overflow: hidden; }
.tk::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.tk-name { font-family: 'Noto Serif KR', serif; font-weight: 600; font-size: 19px; letter-spacing: .01em; }
.tk-menu { color: #b9b3a5; font-size: 14px; margin-top: 2px; }
.tk-meta { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 10px; border-top: 1px dashed rgba(239,233,220,.22);
  font-size: 12.5px; color: #b9b3a5; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.steps li { flex: 1; padding-top: 8px; border-top: 3px solid var(--line); }
.steps li.done { border-color: var(--gold); }
.steps li.on { border-color: var(--green); color: var(--green); font-weight: 700; }
details.fine { font-size: 13px; color: var(--muted); margin: 6px 0 0 30px; }
details.fine summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
details.fine p { margin: 6px 0 0; line-height: 1.6; }
.otp { text-align: center; font-size: 26px !important; letter-spacing: .5em; font-variant-numeric: tabular-nums; padding-left: .5em !important; }
.timer { color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.row-links { display: flex; justify-content: space-between; margin-top: 14px; }
button.link, a.link { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 14px; color: var(--green);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
button.link.muted { color: var(--muted); font-size: 13px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-h { font-size: 12px; color: var(--muted); padding-bottom: 2px; }
.cal-d { display: block; padding: 11px 0; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-d.on { background: var(--green); border-color: var(--green); color: #fff; }
.sun { color: #b3261e; } .sat { color: #2a5ea8; }
.cal-d.on.sun, .cal-d.on.sat { color: #fff; }
.map { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--green); }
.srow { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-top: 10px; }
.srow.visited { opacity: .7; }
.srow-main { display: flex; align-items: center; gap: 12px; }
.srow-time { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.srow-who { font-size: 16px; font-weight: 600; flex: 1; }
.srow-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.howto { margin-top: 26px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.howto b { color: var(--ink); }
.howto ol { padding-left: 18px; margin: 8px 0; }
.howto p { font-size: 13px; margin: 8px 0 0; }
.warn { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: #fbf4e6; border: 1px solid #e6d3a8; font-size: 14px; }
.warn > b { display: block; color: #6b4b12; margin-bottom: 4px; }
.warn .check { margin-top: 10px; }
.warn-list { margin: 6px 0 0; padding-left: 18px; color: #4a4a44; line-height: 1.6; font-size: 13.5px; }
.warn-list li { margin-bottom: 5px; }
.warn-list b { color: var(--ink); }
