/* 영문은 Arvo Bold (Adam's 브랜드 영문 글꼴). 한글·숫자는 기본 글꼴 */
@font-face { font-family: "Arvo"; src: url("/s/Arvo-Bold.ttf") format("truetype"); font-weight: 400 900;
  font-display: swap; unicode-range: U+0041-005A, U+0061-007A, U+0027, U+2019; }
:root { --g: #214539; --soft: #eef1e7; --ink: #111; --mut: #6b746d; --err: #933526; --ok: #2e6647; --line: #d9ddd2; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--soft); color: var(--ink);
  font: 16px/1.45 "Arvo", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
.hidden { display: none !important; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  padding: 14px 16px calc(12px) ; padding-top: calc(12px + env(safe-area-inset-top)); background: var(--g); color: #f4f0e6; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.sub { opacity: .8; font-size: 14px; }
.top .ghost { margin-left: auto; color: #d7e3bc; border-color: #4d6a5f; padding: 4px 10px; font-size: 13px; width: auto; }
main { max-width: 560px; margin: 0 auto; padding: 12px 14px 110px; }
h1 { font-size: 22px; margin: 0 0 6px; } h2 { font-size: 17px; margin: 18px 2px 8px; } h3 { margin: 0 0 12px; } h4 { margin: 14px 0 8px; }
.card { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 10px; box-shadow: 0 1px 0 var(--line); }
.muted { color: var(--mut); } .small { font-size: 13px; }
.err { color: var(--err); min-height: 1.2em; font-size: 14px; }
.warn { color: #8a5a00; font-size: 14px; margin-top: 6px; }
.notice { background: #fff3cd; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
label { display: block; font-size: 14px; color: var(--mut); margin: 12px 0 0; }
input { display: block; width: 100%; font-size: 18px; padding: 12px; margin-top: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
button { font: inherit; cursor: pointer; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 12px; }
button.primary { width: 100%; margin-top: 14px; background: var(--g); color: #fff; border: 0; font-weight: 700; font-size: 17px; }
button.primary:disabled { opacity: .5; }
button.ghost { width: 100%; margin-top: 8px; background: transparent; }
button.danger { color: var(--err); border-color: #e3c4bd; padding: 8px; margin-top: 10px; }
.me { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.me b { font-size: 20px; }
.me .small { margin-left: auto; }
.order .ohead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.badge { font-size: 13px; padding: 3px 8px; border-radius: 999px; background: var(--soft); }
.order.accepted .badge { background: #dceee0; color: var(--ok); }
.order.done .badge { background: var(--g); color: #fff; }
.order.rejected .badge, .order.cancelled .badge { background: #f3e1dd; color: var(--err); }
.line { font-size: 15px; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs button { padding: 8px 14px; border-radius: 999px; }
.tabs button.on { background: var(--g); color: #fff; border-color: var(--g); }
.menu { display: grid; gap: 8px; }
.item { display: flex; justify-content: space-between; text-align: left; padding: 14px; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.08); }
.cartbar button { width: auto; margin: 0 0 0 auto; padding: 12px 22px; }
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; z-index: 10; }
.sheet-body { background: #fff; width: 100%; max-width: 560px; margin: 0 auto; border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto; }
.opts, .pick { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button.on, .pick button.on { background: var(--g); color: #fff; border-color: var(--g); }
.qty { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; font-size: 20px; }
.qty button { width: 48px; }
.cline { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--soft); }
.cline > span:first-child { flex: 1; }
.cq { display: flex; align-items: center; gap: 8px; } .cq button { padding: 4px 10px; }
.price { min-width: 64px; text-align: right; }
.sum { margin-top: 14px; }
#pickTime { margin-top: 8px; }
.item.soldout { opacity: .45; }
.tag { font-style: normal; font-size: 12px; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #f3e1dd; color: var(--err); }
.tag.few { background: #fff3cd; color: #8a5a00; }
.nm { color: #111; }
.hot { color: #c62828; }
.iced { color: #1565c0; }
.item span.nm { color: #111; }
.order.picked .badge { background: #e0e0e0; color: #555; }
.toast { position: fixed; left: 12px; right: 12px; top: calc(60px + env(safe-area-inset-top)); z-index: 20; max-width: 536px; margin: 0 auto;
  background: var(--g); color: #fff; padding: 14px 16px; border-radius: 14px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.top .logo { height: 24px; width: auto; display: block; }
/* 홈 화면 추가 안내 */
.install { display: grid; grid-template-columns: 48px 1fr; gap: 6px 12px; align-items: center; border: 1px solid #cfd8c4; }
.install .ico { width: 48px; height: 48px; border-radius: 11px; }
.install .txt b { display: block; font-size: 16px; }
.install .txt p { margin: 2px 0 0; }
.install .btns { grid-column: 1 / -1; display: flex; gap: 8px; }
.install .btns button { margin-top: 4px; }
.install .btns .ghost { width: 34%; border: 1px solid var(--line); }
.install .btns .primary { flex: 1; font-size: 16px; }
.linkbtn { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--g); text-decoration: underline; font-size: 14px; padding: 6px; }
.steps { margin: 0 0 6px; padding-left: 22px; }
.steps li { margin: 0 0 12px; line-height: 1.55; }
.steps .ic { width: 22px; height: 22px; vertical-align: -5px; color: #0a63d6; background: #eef4ff; border-radius: 6px; padding: 2px; }
.arrow { position: fixed; z-index: 60; left: 50%; width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; margin-left: -16px; pointer-events: none; }
.arrow.down { bottom: calc(8px + env(safe-area-inset-bottom)); border-top: 22px solid #f2c14e; animation: bob 1s ease-in-out infinite; }
.arrow.up { top: calc(4px + env(safe-area-inset-top)); left: auto; right: 22px; border-bottom: 22px solid #f2c14e; animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
.sheet.attop { align-items: flex-start; }
.sheet.attop .sheet-body { border-radius: 0 0 18px 18px; padding-top: calc(18px + env(safe-area-inset-top)); }
#instSheet { z-index: 50; }
