:root { --bg:#f4f6f2; --fg:#1b2a20; --muted:#667066; --card:#fff; --accent:#2f6b45; --warn:#b3541e; --line:#dfe5dc; --tab:56px; --ad:60px; }
@media (prefers-color-scheme: dark) { :root { --bg:#111712; --fg:#e8efe8; --muted:#9aa59b; --card:#1b231c; --accent:#6fbf8a; --warn:#f0a070; --line:#2a352b; } }
* { box-sizing: border-box; }
html, body { margin:0; background:var(--bg); color:var(--fg); font:16px/1.5 system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
.top { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background:var(--accent); color:#fff; }
.top h1 { margin:0; font-size:18px; }
.net { font-size:12px; opacity:.9; }
main { padding:16px; padding-bottom:calc(var(--tab) + var(--ad) + 24px + env(safe-area-inset-bottom)); max-width:640px; margin:0 auto; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; margin-bottom:12px; }
.card h2 { margin:0 0 8px; font-size:17px; }
.muted { color:var(--muted); font-size:14px; }
.big { font-size:28px; font-weight:700; }
.row { display:flex; justify-content:space-between; gap:8px; padding:6px 0; border-bottom:1px solid var(--line); }
.row:last-child { border-bottom:0; }
select, button.primary, label.primary { width:100%; font-size:16px; padding:12px; border-radius:10px; border:1px solid var(--line); background:var(--card); color:var(--fg); }
button.primary, label.primary { background:var(--accent); color:#fff; border:0; font-weight:700; text-align:center; display:block; cursor:pointer; }
button.primary:disabled { opacity:.45; }
.warn { color:var(--warn); }
.ok { color:var(--accent); font-weight:700; }
.hours { display:grid; grid-template-columns:repeat(4, 1fr); gap:6px; font-size:13px; }
.hours div { background:var(--bg); border-radius:8px; padding:6px; text-align:center; }
.badge { display:inline-block; padding:2px 8px; border-radius:99px; background:var(--bg); font-size:13px; margin:2px; }
.badge.done { background:var(--accent); color:#fff; }
img.photo { width:100%; border-radius:10px; margin-top:8px; }
.tabs { position:fixed; left:0; right:0; bottom:calc(var(--ad) + env(safe-area-inset-bottom)); height:var(--tab); display:flex; background:var(--card); border-top:1px solid var(--line); z-index:3; }
.tabs button { flex:1; border:0; background:none; color:var(--muted); font-size:15px; }
.tabs button.on { color:var(--accent); font-weight:700; }
/* 광고: 화면 가장 하단 고정 */
.ad { position:fixed; left:0; right:0; bottom:0; height:calc(var(--ad) + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); display:flex; align-items:center; justify-content:center; background:#e9ece6; color:#8a948a; font-size:12px; border-top:1px solid var(--line); z-index:3; }
@media (prefers-color-scheme: dark) { .ad { background:#0c110d; color:#5d675e; } }
.park { padding:8px 0; border-bottom:1px solid var(--line); }
.park:last-of-type { border-bottom:0; }
.links { display:flex; gap:8px; margin-top:6px; }
.links a { flex:1; text-align:center; padding:8px; border-radius:8px; background:var(--bg); color:var(--accent); text-decoration:none; font-weight:700; font-size:14px; }
/* 정상 인증 지도(기록 탭) */
.kmap { width:100%; height:auto; display:block; margin:8px 0; }
.kmap .land { fill:#dfe8dc; stroke:#9fb39a; stroke-width:3; }
.kmap .pin circle { fill:#fff; stroke:#9aa59b; stroke-width:4; }
.kmap .pin.on circle { fill:var(--accent); stroke:#fff; }
.kmap .pin .n { font:700 34px system-ui, sans-serif; fill:#667066; }
.kmap .pin.on .n { fill:#fff; }
.kmap .pin .name { font:600 30px system-ui, "Apple SD Gothic Neo", sans-serif; fill:var(--fg); paint-order:stroke; stroke:var(--bg); stroke-width:6px; }
@media (prefers-color-scheme: dark) { .kmap .land { fill:#24301f; stroke:#3d4d38; } .kmap .pin circle { fill:#1b231c; } }
/* 주머니 자동 인증 화면(켜진 채 까맣게) */
#pocket { position:fixed; inset:0; z-index:20; background:#000; color:#555; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:16px; text-align:center; font-size:20px; line-height:1.6; padding:24px; touch-action:none; user-select:none; }
#pocket small { font-size:13px; color:#333; }
#pocket.done { color:#6fbf8a; }
button.badge.stamp { border:1px solid var(--line); font-size:15px; padding:6px 12px; margin:3px; cursor:pointer; color:var(--fg); }
button.badge.stamp.done { color:#fff; border-color:var(--accent); }
button.badge.stamp.sel { outline:3px solid var(--warn); outline-offset:1px; font-weight:700; }
