/* 오늘트럭 기본 화면. 디자인 시안이 정해지면 아래 :root 토큰만 바꿔 입힌다.
   근거: receipts/2026-11-04-soondae-truck/design-refs/rules.md (미색 바탕·흰 카드·알약 버튼·품목 글자 핀) */
:root {
  --bg: #FBF8F3;
  --card: #FFFFFF;
  --ink: #2B2018;
  --ink-2: #5E5047;
  --ink-3: #8A7B70;
  --line: #EADFD2;
  --line-2: #F2EAE0;
  --sundae: #C8452C;
  --sundae-ink: #FFFFFF;
  --chicken: #CF8A1D;
  --chicken-ink: #2B2018;
  --chicken-text: #8F5A00;
  --snack: #7A5230;
  --snack-ink: #FFFFFF;
  --bread: #B06A2C;
  --bread-ink: #FFFFFF;
  --live: #1F7A3A;
  --live-bg: #E7F4EA;
  --warn: #B4471F;
  --warn-bg: #FCEDE6;
  --primary: #C8452C;
  --primary-ink: #FFFFFF;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(43, 32, 24, .06), 0 4px 16px rgba(43, 32, 24, .06);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-title: "Jua", var(--font);
  --gutter: 16px;
  --maxw: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font); word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.3; text-wrap: balance; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 6vw, 36px); }
h2 { font-size: 21px; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #E9A23B; outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.lead { color: var(--ink-2); font-size: 17px; }

/* ---------- 머리·꼬리 ---------- */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(251, 248, 243, .94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line-2);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-title); font-size: 22px; }
.top-nav { margin-left: auto; display: flex; gap: 4px; }
.top-nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.top-nav a:hover { background: var(--line-2); }
.beta-badge { font-size: 12px; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 3px 9px; }

main { display: block; max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gutter) 40px; }
.foot { max-width: var(--maxw); margin: 24px auto 0; padding: 24px var(--gutter) calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.foot-regions, .foot-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; }
.foot-regions a { font-weight: 600; text-decoration: none; }
.foot-links a { color: var(--ink-3); }
.foot-note { color: var(--ink-3); }
.foot-copy { color: var(--ink-3); margin: 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-3); margin-bottom: 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- 버튼·칩 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn:hover { background: #FFF9F2; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #B23B24; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-3); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-big { min-height: 56px; font-size: 18px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips-wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; color: var(--ink-2);
}
.chip.on, .chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.kpin {
  flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: 13px; font-weight: 800; line-height: 1; background: var(--ink-3); color: #fff; border: 2px solid var(--ink);
}
.k-sundae .kpin, .kpin.k-sundae { background: var(--sundae); color: var(--sundae-ink); }
.k-chicken .kpin, .kpin.k-chicken { background: var(--chicken); color: var(--chicken-ink); }
.k-snack .kpin, .kpin.k-snack { background: var(--snack); color: var(--snack-ink); }
.k-bread .kpin, .kpin.k-bread { background: var(--bread); color: var(--bread-ink); }
.chip .kpin { width: 20px; height: 20px; font-size: 11px; border-width: 1.5px; }
.chip.on .kpin { border-color: #fff; }

/* ---------- 카드 ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start;
}
.card-skel { display: block; color: var(--ink-3); }
.card .kpin { margin-top: 2px; width: 32px; height: 32px; font-size: 15px; grid-row: span 3; }
.card-name { font-weight: 800; font-size: 17px; text-decoration: none; }
.card-name:hover { text-decoration: underline; }
.card-sub { color: var(--ink-2); font-size: 15px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-3); }
.card-acts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.card-empty { display: block; text-align: center; padding: 22px 16px; }
.card-empty img { display: block; margin: 0 auto 8px; }
.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: 13px; font-weight: 700; background: var(--line-2); color: var(--ink-2); }
.tag-live { background: var(--live-bg); color: var(--live); }
.tag-owner { background: var(--live); color: #fff; }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-sched { background: transparent; border: 1.5px dashed var(--line); }
.vote { min-height: 36px; padding: 0 12px; font-size: 14px; }
.vote.done { background: var(--live-bg); border-color: var(--live-bg); color: var(--live); }

/* ---------- 처음 화면 ---------- */
.home-head { margin-bottom: 12px; }
.home-title { margin-bottom: 4px; }
.home-title em { font-style: normal; color: var(--sundae); }
.home-sub { color: var(--ink-2); margin-bottom: 12px; }
.chips-kind { margin-top: 2px; }
.home-body { display: grid; gap: 14px; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #EFE8DE; }
.map { height: 46vh; min-height: 280px; max-height: 520px; }
.map-legend {
  position: absolute; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center;
  background: rgba(255, 255, 255, .92); border-radius: 12px; padding: 6px 10px; font-size: 12px; color: var(--ink-2); max-width: calc(100% - 60px);
}
.map-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.lg-live { border: 2px dashed var(--sundae); background: rgba(200, 69, 44, .15); }
.lg-today { background: var(--sundae); border: 2px solid var(--ink); }
.lg-owner { background: var(--live); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--live); }
.map-me { position: absolute; left: 10px; top: 10px; min-height: 40px; border-radius: 999px; border: 0; padding: 0 14px; background: #fff; box-shadow: var(--shadow); font-weight: 700; cursor: pointer; }
.sheet { background: transparent; }
.sheet-grab { display: none; }
.sheet-title { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.sheet-title b { font-family: var(--font); font-weight: 800; color: var(--sundae); font-size: 18px; }
.sheet-hint { color: var(--ink-3); font-size: 14px; }
.more-link { display: inline-block; margin-top: 12px; font-weight: 700; text-decoration: none; color: var(--sundae); }
.home-regions { margin-top: 28px; }
.region-grid { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.region-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-decoration: none; min-height: 96px; }
.region-card b { font-family: var(--font-title); font-weight: 400; font-size: 20px; }
.region-card span { color: var(--ink-2); font-size: 14px; }
.region-card small { color: var(--ink-3); margin-top: auto; }
.fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 22px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(200, 69, 44, .35);
}

/* 지도 위 표시 */
.mk { cursor: pointer; }
.mk-pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); border: 2.5px solid var(--ink); background: var(--ink-3); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.mk-pin span { transform: rotate(45deg); font-weight: 800; font-size: 14px; color: #fff; }
.mk-pin.k-sundae { background: var(--sundae); }
.mk-pin.k-chicken { background: var(--chicken); }
.mk-pin.k-chicken span { color: var(--chicken-ink); }
.mk-pin.k-snack { background: var(--snack); }
.mk-pin.k-bread { background: var(--bread); }
.mk-pin.off { opacity: .45; transform: rotate(-45deg) scale(.8); border-width: 2px; }
.mk-near { width: 64px; height: 64px; border-radius: 50%; border: 2.5px dashed var(--sundae); background: rgba(200, 69, 44, .14); display: grid; place-items: center; }
.mk-near.k-chicken { border-color: var(--chicken); background: rgba(207, 138, 29, .18); }
.mk-near b { font-size: 11px; font-weight: 800; background: #fff; border-radius: 999px; padding: 1px 6px; box-shadow: var(--shadow); white-space: nowrap; }
.mk-owner { display: flex; align-items: center; gap: 4px; background: var(--live); color: #fff; font-weight: 800; font-size: 12px; border-radius: 999px; padding: 4px 10px 4px 4px; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); white-space: nowrap; }
.mk-owner .kpin { width: 22px; height: 22px; border-color: #fff; font-size: 12px; }
.maplibregl-popup-content { border-radius: 14px; padding: 10px 14px; font: 14px/1.5 var(--font); box-shadow: var(--shadow); }
.maplibregl-popup-content b { font-size: 15px; }
.maplibregl-popup-content a { font-weight: 700; color: var(--sundae); }

/* ---------- 지역 요일표 ---------- */
.region-head { margin-bottom: 14px; }
.live-strip { background: var(--live-bg); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; }
.live-strip h2 { color: var(--live); font-size: 18px; }
.week-tabs { position: sticky; top: 57px; z-index: 20; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 8px 0; background: var(--bg); }
.wtab { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 14px; text-decoration: none; background: var(--card); border: 1.5px solid var(--line-2); }
.wtab b { font-size: 16px; }
.wtab small { font-size: 12px; color: var(--ink-3); }
.wtab.today { background: var(--ink); color: #fff; border-color: var(--ink); }
.wtab.today small { color: #E8DCCF; }
.week { display: grid; gap: 12px; }
.day { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; scroll-margin-top: 130px; }
.day.today { box-shadow: 0 0 0 2.5px var(--ink), var(--shadow); }
.day-title { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.day-n { font-family: var(--font); font-size: 14px; color: var(--ink-3); font-weight: 600; }
.today-badge { font-family: var(--font); font-size: 12px; font-weight: 800; background: var(--sundae); color: #fff; border-radius: 999px; padding: 2px 8px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.row:first-child { border-top: 0; }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-name { font-weight: 800; text-decoration: none; }
.row-name:hover { text-decoration: underline; }
.row-near { color: var(--ink-2); font-size: 14px; }
.row-time { font-size: 14px; color: var(--ink-2); font-weight: 600; text-align: right; white-space: nowrap; }
.row-live { grid-column: 2 / 4; }
.row-live:empty { display: none; }
.row.gone { display: none; }
.empty { color: var(--ink-3); font-size: 15px; margin: 4px 0 0; }
.truck-index { margin-top: 28px; }
.tgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tcard { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow); text-decoration: none; }
.tcard .kpin { grid-row: span 2; margin-top: 2px; }
.tcard span { color: var(--ink-3); font-size: 14px; }
.howto { margin-top: 28px; background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.howto ul { padding-left: 1.2em; color: var(--ink-2); }

/* ---------- 트럭 ---------- */
.truck-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.truck-head > .kpin { width: 48px; height: 48px; font-size: 22px; border-width: 3px; }
.truck-head h1 { margin: 0; }
.truck-meta { color: var(--ink-2); margin: 0; font-size: 15px; }
.status { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 16px; }
.status-line { margin: 0; font-weight: 700; font-size: 17px; }
.status.live { background: var(--live-bg); }
.status.live .status-line { color: var(--live); }
.owner-notice { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: #FFF4D6; font-weight: 600; }
.sched, .reports, .share, .owner-cta, .sources { margin-top: 22px; }
.week-dots { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-dots li { display: flex; flex-direction: column; align-items: center; padding: 8px 0; border-radius: 14px; background: var(--card); border: 1.5px dashed var(--line); color: var(--ink-3); }
.week-dots li.on { border-style: solid; border-color: var(--ink); color: var(--ink); background: #FFF6EC; }
.week-dots li.today { box-shadow: 0 0 0 2.5px var(--sundae); }
.week-dots small { font-size: 11px; min-height: 16px; color: var(--live); font-weight: 700; }
.stops { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.stop { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: grid; gap: 6px; }
.stop-when { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.stop-when b { font-size: 17px; }
.stop-when span { color: var(--ink-2); font-weight: 600; }
.stop-where { display: flex; flex-direction: column; }
.stop-where small { color: var(--ink-3); font-size: 13px; }
.stop-go { display: flex; gap: 6px; flex-wrap: wrap; }
.stop.today { box-shadow: 0 0 0 2.5px var(--ink), var(--shadow); }
.mini-map { height: 240px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #EFE8DE; }
.owner-cta { background: #FFF6EC; border-radius: var(--radius); padding: 18px; }
.sources ul { padding-left: 1.2em; color: var(--ink-2); font-size: 15px; }

/* ---------- 제보 ---------- */
.step { border: 0; margin: 0 0 18px; padding: 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.step legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-family: var(--font-title); font-size: 20px; }
.step legend + * { clear: both; }
.pick-list { display: grid; gap: 8px; }
.pick { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; min-height: 52px; }
.pick small { grid-column: 2; color: var(--ink-3); font-size: 13px; }
.pick b { font-weight: 800; }
.pick[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); background: #FFF6EC; }
.new-truck { margin-top: 10px; }
.new-truck summary { cursor: pointer; font-weight: 700; color: var(--sundae); padding: 6px 0; }
.new-truck[open] summary { margin-bottom: 8px; }
.field { display: grid; gap: 6px; margin-top: 10px; }
.field span { font-size: 14px; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.state-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.state { min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; }
.state.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.form-error { color: var(--warn); background: var(--warn-bg); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.done { text-align: center; padding: 20px 0; }
.done-art img { display: block; margin: 0 auto 6px; }
.done .btn { margin-top: 10px; }
.title-unlock { display: inline-block; background: #FFF4D6; border-radius: 999px; padding: 6px 14px; font-weight: 800; }
.share-card { margin: 14px auto; max-width: 360px; text-align: left; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.share-card:empty { display: none; }

/* ---------- 랭킹·내 기록 ---------- */
.rank-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.rank-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; }
.rank-row .n { font-family: var(--font-title); font-size: 22px; text-align: center; }
.rank-row.top1 .n { color: var(--sundae); }
.rank-row .pts { font-weight: 800; }
.rank-row.me { box-shadow: 0 0 0 2.5px var(--ink), var(--shadow); }
.rank-me { font-weight: 700; }
.title-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.title-list li { display: flex; flex-direction: column; background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.title-list li span { color: var(--ink-3); font-size: 14px; }
.title-list li.got { box-shadow: 0 0 0 2.5px var(--chicken), var(--shadow); }
.me-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; text-align: center; }
.me-stats div { background: var(--bg); border-radius: 14px; padding: 10px 4px; }
.me-stats b { display: block; font-size: 22px; font-family: var(--font-title); font-weight: 400; }
.me-stats span { font-size: 13px; color: var(--ink-3); }
.me-nick { display: flex; gap: 8px; align-items: end; margin-bottom: 10px; }
.me-nick .field { flex: 1; margin: 0; }

/* ---------- 사장님·안내 ---------- */
.claim-truck, .owner-truck { font-weight: 800; font-size: 18px; }
.owner-state { font-weight: 700; }
.owner-state.on { color: var(--live); }
.owner-map { height: 300px; margin: 10px 0; }
.owner-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.owner-notice-form { display: flex; gap: 8px; align-items: end; margin-bottom: 14px; }
.owner-notice-form .field { flex: 1; margin: 0; }
.done-msg { background: var(--live-bg); color: var(--live); font-weight: 700; padding: 12px 16px; border-radius: 14px; }
.doc { max-width: 720px; }
.doc h2 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.rules li { margin-bottom: .6em; }

.toast {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
  max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.25); text-align: center;
}
.ad-slot:empty { display: none; }

@media (min-width: 900px) {
  :root { --gutter: 24px; }
  .home-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .map-wrap { position: sticky; top: 76px; }
  .map { height: calc(100vh - 120px); max-height: 720px; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week-tabs { top: 61px; }
  .truck > section, .truck > header, .truck > .crumbs { max-width: 760px; }
  .report, .rank, .me, .claim, .owner { max-width: 640px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   v1.1 지도 중심 화면 · 상태(is-live/is-today/is-off) · 전광판 · 움직임
   ===================================================================== */
:root {
  --live-pin: #1F7A3A;
  --today-ring: #2B2018;
  --sheet-peek: 42vh;
  --sheet-full: calc(100dvh - 120px);
  --spring: cubic-bezier(.34, 1.42, .64, 1);
  --top-h: 57px;
}
/* 음식 표시: 디자인 아이콘(.kic) 또는 글자(.kt). 아이콘 안 움직임은 --ot-play 로 켠다 */
.kpin .kt { font-weight: 800; font-size: inherit; line-height: 1; }
.kpin .kic, .mk-pin .kic { width: 78%; height: 78%; display: block; }
.is-live { --ot-play: running; }
.is-today, .is-off { --ot-play: paused; }
.kpin.is-off { filter: saturate(.55); opacity: .8; }
.kpin.is-live { box-shadow: 0 0 0 3px var(--live-bg), 0 0 0 5px var(--live-pin); }
.tag-today { background: #FFF1DD; color: #8F5A00; }
.tag-off { background: var(--line-2); color: var(--ink-3); }

/* ---------- 처음 화면 레이아웃 ---------- */
.page-home { overflow: hidden; height: 100dvh; }
.page-home .top { position: fixed; left: 0; right: 0; top: 0; }
.page-home .foot { padding-bottom: 120px; margin-top: 16px; }
.mapapp { position: fixed; inset: var(--top-h) 0 0 0; max-width: none; margin: 0; padding: 0; }
.map-full { position: absolute; inset: 0; background: #EFE8DE; }
.map-top { position: absolute; left: 0; right: 0; top: 0; z-index: 12; padding: 8px 10px 0; display: grid; gap: 6px; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.map-top .chips { padding: 0 2px 4px; }
.map-top .chip { box-shadow: var(--shadow); min-height: 38px; }
.me-btn {
  position: absolute; right: 12px; top: 112px; z-index: 12; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: #fff; color: #1D6FD8; box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer;
}
.me-btn.on { color: #fff; background: #1D6FD8; }
.me-btn.busy svg { animation: spin 1s linear infinite; }
.mapapp .maplibregl-ctrl-top-right { top: 164px; }
.mapapp .map-legend { position: absolute; left: 10px; bottom: calc(var(--sheet-peek) + 10px); z-index: 11; }
.lg-seen { border: 2px dashed var(--sundae); background: rgba(200, 69, 44, .15); }
.lg-live { background: var(--live-pin); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--live-pin); }
.lg-today { background: var(--sundae); border: 2px solid var(--ink); }

/* 바텀시트: 통통 튀는 스냅 */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; height: var(--sheet-full);
  background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 24px rgba(43, 32, 24, .14);
  transform: translateY(calc(var(--sheet-full) - var(--sheet-peek)));
  transition: transform .5s var(--spring); display: flex; flex-direction: column; will-change: transform;
}
.sheet[data-state="full"] { transform: translateY(0); }
.sheet.dragging { transition: none; transform: translateY(calc(var(--drag) - (100dvh - var(--sheet-full)))); }
.sheet-grab { display: block; flex: none; width: 100%; height: 28px; border: 0; background: transparent; cursor: grab; touch-action: none; }
.sheet-grab i { display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: 10px auto 0; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) 24px; -webkit-overflow-scrolling: touch; }
.sheet-title { margin: 0 0 2px; font-size: 22px; }
.sheet-title b { font-family: var(--font); font-size: 15px; font-weight: 800; color: var(--live); background: var(--live-bg); border-radius: 99px; padding: 2px 10px; }
.sheet-sub { color: var(--ink-3); font-size: 14px; margin-bottom: 10px; }
.more-btn { margin-top: 10px; }
.fab {
  bottom: calc(14px + env(safe-area-inset-bottom)); gap: 6px; z-index: 30;
  animation: fab-in .6s var(--spring) both .2s;
}

/* 카드 */
.card { position: relative; }
.card-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.card-top .card-name { flex: 1; min-width: 0; }
.dist { flex: none; font-weight: 800; font-size: 14px; color: #1D6FD8; }
.card-menu, .card-ask { grid-column: 2; font-size: 14px; }
.card-menu { color: var(--ink-2); background: #FFF8EE; border-radius: 10px; padding: 4px 10px; justify-self: start; }
.card-ask { color: var(--sundae); font-weight: 700; text-decoration: none; }
.card.is-live { box-shadow: 0 0 0 2px var(--live-pin), var(--shadow); }
.card.is-off { opacity: .86; }
#nearList .card { cursor: pointer; }

/* 같이 찾은 트럭·제보왕·동네 링크 */
.together, .mini-rank, .home-regions { margin-top: 22px; }
.together h2, .mini-rank h2, .home-regions h2 { font-size: 19px; }
.progress-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.progress-list a { display: flex; justify-content: space-between; text-decoration: none; font-weight: 700; font-size: 15px; }
.pg-num { color: var(--ink-3); font-weight: 600; }
.pg-num b { color: var(--live); font-size: 17px; }
.pg-bar { display: block; height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-top: 4px; }
.pg-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3E9B57, var(--live-pin)); transition: width 1.2s var(--spring); min-width: 4px; }
.region-progress { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; font-weight: 700; }
.region-progress .pg-bar { flex-basis: 100%; }
.mini-rank ol { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.mini-rank li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; background: var(--card); border-radius: 14px; padding: 8px 12px; box-shadow: var(--shadow); }
.mini-rank li.muted { display: block; box-shadow: none; background: transparent; padding: 0; }
.mini-rank .n { font-family: var(--font-title); font-size: 18px; color: var(--sundae); text-align: center; }
.region-links { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.region-links a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; font-weight: 700; }
.region-links small { color: var(--ink-3); font-weight: 600; }

/* ---------- 전광판 ---------- */
.ticker {
  display: flex; align-items: center; gap: 8px; height: 38px; border-radius: 999px; padding: 0 6px 0 12px;
  background: rgba(43, 32, 24, .92); color: #FFF6EC; box-shadow: var(--shadow); overflow: hidden;
}
.ticker-bell { flex: none; color: #FFC24B; display: grid; place-items: center; animation: bell 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
.ticker-view { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }
.ticker-track { display: flex; width: max-content; animation: ticker var(--dur, 40s) linear infinite; }
.ticker-track:hover, .ticker-track:focus-within { animation-play-state: paused; }
.ticker-run { display: flex; align-items: center; flex: none; }
.tick { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: none; border: 0; color: inherit; font: 600 14px/1 var(--font); padding: 6px 4px; cursor: pointer; border-radius: 8px; }
.tick[data-truck]:hover span { text-decoration: underline; }
.tick .kpin { width: 20px; height: 20px; font-size: 11px; border-width: 1.5px; border-color: #FFF6EC; }
.tick-sep { color: #8A7B70; padding: 0 6px; }
.tick.fresh { animation: tick-flash 1.2s ease-in-out 3; border-radius: 8px; }

/* ---------- 지도 표시 ---------- */
.mk { cursor: pointer; }
.mk.pop .mk-pin, .mk.pop .mk-dot, .mk.pop .mk-seen { animation: pin-pop .55s var(--spring) both; }
.mk-pin { position: relative; width: 34px; height: 34px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); display: grid; place-items: center; border: 2.5px solid var(--ink); background: var(--ink-3); box-shadow: 0 3px 8px rgba(0, 0, 0, .22); }
.mk-pin > .kt, .mk-pin > .kic { transform: rotate(45deg); color: #fff; font-size: 15px; }
.mk-pin.k-sundae { background: var(--sundae); }
.mk-pin.k-chicken { background: var(--chicken); }
.mk-pin.k-chicken > .kt { color: var(--chicken-ink); }
.mk-pin.k-snack { background: var(--snack); }
.mk-pin.k-bread { background: var(--bread); }
.mk-pin.is-live { border-color: #fff; box-shadow: 0 0 0 3px var(--live-pin), 0 4px 12px rgba(31, 122, 58, .45); width: 40px; height: 40px; }
.mk-pin.is-owner::after { content: '사장님'; position: absolute; transform: rotate(45deg) translate(22px, -6px); font: 800 10px/1 var(--font); color: #fff; background: var(--live-pin); border-radius: 99px; padding: 3px 6px; white-space: nowrap; }
.mk-pin .steam { display: none; }
.mk-pin.is-live .steam { display: block; position: absolute; left: 50%; top: 50%; transform: rotate(45deg); pointer-events: none; }
.steam i { position: absolute; bottom: 20px; width: 6px; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .95); box-shadow: 0 0 0 1.5px rgba(43, 32, 24, .25); opacity: 0; animation: steam 2.2s ease-in-out infinite; }
.steam i:nth-child(1) { left: -11px; animation-delay: 0s; }
.steam i:nth-child(2) { left: -3px; animation-delay: .7s; }
.steam i:nth-child(3) { left: 5px; animation-delay: 1.4s; }
.mk-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(43, 32, 24, .35); background: var(--ink-3); opacity: .8; }
.mk-dot.k-sundae { background: var(--sundae); }
.mk-dot.k-chicken { background: var(--chicken); }
.mk-dot.k-snack { background: var(--snack); }
.mk-dot.k-bread { background: var(--bread); }
.mk-seen { width: 70px; height: 70px; border-radius: 50%; border: 2.5px dashed var(--sundae); background: rgba(200, 69, 44, .12); display: grid; place-items: center; }
.mk-seen.k-chicken { border-color: var(--chicken); background: rgba(207, 138, 29, .16); }
.mk-seen.is-live { border-color: var(--live-pin); background: rgba(31, 122, 58, .12); animation: seen-breathe 2.6s ease-in-out infinite; }
.mk-seen b { font: 800 11px/1 var(--font); background: #fff; border-radius: 99px; padding: 3px 7px; box-shadow: var(--shadow); white-space: nowrap; margin-top: -48px; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #1D6FD8; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); position: relative; }
.me-dot i { position: absolute; inset: -3px; border-radius: 50%; background: rgba(29, 111, 216, .35); animation: me-pulse 2s ease-out infinite; }
.mini-map .mk-pin { width: 30px; height: 30px; }

/* ---------- 제보(위치 인증) ---------- */
.step[disabled] { opacity: .55; }
.step-gps.ok { box-shadow: 0 0 0 2px var(--live-pin), var(--shadow); }
.gps-state { font-size: 15px; }
.gps-state .good { color: var(--live); }
.gps-state .bad { color: var(--warn); }
.gps-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
.btn.busy .gps-dot, .photo-pick.busy { animation: me-pulse-btn 1.2s ease-out infinite; }
.note { background: #FFF4D6; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.photo-pick.busy { opacity: .7; pointer-events: none; }

/* ---------- 트럭: 메뉴판·사진·찾아 준 사람들 ---------- */
.menu { margin-top: 18px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.menu-table { width: 100%; border-collapse: collapse; margin: 4px 0 10px; }
.menu-table th, .menu-table td { padding: 9px 2px; border-bottom: 1px dashed var(--line); text-align: left; font-size: 16px; }
.menu-table td { text-align: right; font-weight: 800; white-space: nowrap; }
.menu-table th { font-weight: 600; }
.menu-table th small { display: block; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.pay { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.photos, .finders { margin-top: 22px; }
.photo-grid { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo-grid li { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-3); }
.photo-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: var(--line-2); display: block; }
.photo-grid li.muted { grid-column: 1 / -1; font-size: 15px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-3); text-decoration: underline; font-size: 12px; cursor: pointer; text-align: left; }
/* 11/06 찾아 준 사람들 = 트럭 앞에 줄 선 손님. 가입한 분은 고른 이모지, 가입 전은 흐린 사람 모양, 줄 끝 빈자리 = 나도 줄 서기.
   땅 선 하나만 긋고 테두리·알약 없이. 폭 계산은 truck.js(트럭 64+8, 한 사람·나도 40+2, +N 34+2). */
.queue { position: relative; display: flex; align-items: flex-start; gap: 8px; padding-top: 6px; overflow: hidden; }
.queue::before { content: ""; position: absolute; left: 0; right: 0; top: 43px; height: 2px; border-radius: 2px; background: var(--line); }
.queue-truck { flex: none; width: 64px; }
.queue-truck img { display: block; width: 64px; height: 43px; transform: scaleX(-1); }
.queue-line { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; min-width: 0; }
.queue-line > li { flex: none; width: 40px; }
.queue-line > li.q-more { width: 34px; }
.q-btn, .q-join a, .q-more { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.q-face { display: grid; place-items: center; width: 30px; height: 30px; margin-top: 7px; font-size: 26px; line-height: 1; }
.q-ghost { width: 24px; height: 24px; fill: var(--ink-3); opacity: .38; }
.q-nick { margin-top: 5px; max-width: 40px; font-size: 11px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-p:first-child .q-nick { color: var(--ink); font-weight: 800; }
.q-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.q-more .q-face { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.q-more .q-nick { color: var(--ink-3); }
.q-join .q-slot { width: 28px; height: 28px; margin-top: 8px; border: 1.5px dashed var(--ink-3); border-radius: 50%; font-size: 17px; font-weight: 700; color: var(--sundae); }
.q-join .q-nick { white-space: normal; text-align: center; color: var(--sundae); font-weight: 700; }
.queue-cap { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); word-break: keep-all; }
.queue-tip { margin-left: 4px; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.truck.is-live .q-p .q-face { animation: q-bob 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.23s); }
@keyframes q-bob { 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .truck.is-live .q-p .q-face { animation: none; } }
.nick-emo { margin-right: 2px; font-weight: 400; }
/* 닉네임 옆 이모지 고르기(가입 창·내 기록) — 고른 것만 바탕색 */
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 2px; margin-top: 8px; }
.emo { height: 42px; padding: 0; border: 0; border-radius: 12px; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; }
.emo[aria-checked="true"] { background: #FFEFD9; box-shadow: inset 0 0 0 2px var(--ink); }
.emo:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.emo-field { margin-top: 12px; }
.emo-label { margin: 0; font-size: 14px; color: var(--ink-2); word-break: keep-all; }
.emo-label .small { display: block; }
.me-emo { margin: 6px 0 18px; }
.me-emo h2 { font-size: 17px; margin: 0 0 2px; }
.me-emo .emo-grid.is-preview .emo { opacity: .55; }
.me-emo-join { font-size: 14px; color: var(--sundae); font-weight: 700; }
.nick-emo-line { margin: 8px 0 0; }
.first-finder { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.truck.is-live .truck-head > .kpin { animation: bob 1.8s ease-in-out infinite; }

/* ---------- 축하 ---------- */
.done, .photos, .card-acts { position: relative; }
.confetti { position: absolute; left: 50%; top: 30%; width: 0; height: 0; pointer-events: none; z-index: 50; }
.confetti i { position: absolute; width: 9px; height: 14px; border-radius: 3px; animation: confetti var(--d, 1s) cubic-bezier(.2, .7, .3, 1) forwards; }
.confetti .c0 { background: var(--sundae); } .confetti .c1 { background: var(--chicken); } .confetti .c2 { background: var(--live-pin); } .confetti .c3 { background: #FFC24B; }
.done-art img { animation: truck-drive 1.1s var(--spring) both; }

/* ---------- 움직임 ---------- */
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tick-flash { 0%, 100% { background: transparent; } 50% { background: rgba(255, 194, 75, .35); } }
@keyframes bell { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 85% { transform: rotate(-12deg); } 92% { transform: rotate(6deg); } }
@keyframes pin-pop { 0% { transform: scale(.2) translateY(14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.mk.pop .mk-pin { animation-name: pin-pop-r; }
@keyframes pin-pop-r { 0% { transform: rotate(-45deg) scale(.2); opacity: 0; } 100% { transform: rotate(-45deg) scale(1); opacity: 1; } }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px) scaleY(.6); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-16px) scaleY(1.2); } }
@keyframes seen-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes me-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes me-pulse-btn { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fab-in { from { transform: translateY(40px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), 160px) rotate(var(--r)); opacity: 0; } }
@keyframes truck-drive { 0% { transform: translateX(-60px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- 데스크톱: 왼쪽 목록 + 오른쪽 지도 ---------- */
@media (min-width: 900px) {
  :root { --top-h: 61px; }
  .mapapp .sheet { right: auto; width: 420px; height: auto; top: 0; transform: none; border-radius: 0; box-shadow: 4px 0 18px rgba(43, 32, 24, .08); }
  .mapapp .sheet-grab { display: none; }
  .mapapp .sheet-body { padding-top: 16px; }
  .mapapp .map-full { left: 420px; }
  .mapapp .map-top { left: 420px; padding: 12px 16px 0; }
  .mapapp .ticker { max-width: 820px; }
  .mapapp .map-legend { left: 436px; bottom: 16px; }
  .mapapp .me-btn { top: 118px; right: 16px; }
  .fab { right: 24px; bottom: 24px; }
}

/* 움직임 줄이기: 멈춘 한 줄·움직임 끔 */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-run[aria-hidden] { display: none; }
  .ticker-view { overflow-x: auto; mask-image: none; }
  .ticker-bell, .steam i, .me-dot i, .mk-seen.is-live, .tick.fresh, .fab, .mk.pop .mk-pin, .mk.pop .mk-dot, .mk.pop .mk-seen, .truck.is-live .truck-head > .kpin, .done-art img { animation: none !important; }
  .sheet { transition: none; }
  .pg-bar i { transition: none; }
}
/* 머리: 좁은 폰에서도 한 줄 */
.logo span, .top-nav a, .beta-badge { white-space: nowrap; }
@media (max-width: 520px) {
  .top { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .logo { font-size: 20px; gap: 6px; }
  .logo img { width: 26px; height: 26px; }
  .top-nav a { padding: 8px 8px; font-size: 14px; }
  .top-nav a[href="/report/"] { display: none; }
  .beta-badge { font-size: 11px; padding: 2px 7px; }
}
/* 디자인 아이콘(인라인 SVG) 안 움직임 계약: .ot-a-* 는 조상이 .is-live 일 때만 움직임 */
.kpin .kic { width: 86%; height: 86%; display: block; overflow: visible; }
.mk-pin .kic { width: 74%; height: 74%; transform: rotate(45deg); }
.kpin:has(.kic) { background: #fff; }
.mk-pin:has(.kic) { background: #fff; }
.kic [class*="ot-a-"] { transform-box: fill-box; }
.is-live .ot-a-steam, .is-live .ot-a-smoke { transform-origin: 50% 100%; animation: ot-steam 1.9s ease-out infinite; animation-delay: var(--d, 0s); }
.is-live .ot-a-blink { transform-origin: 50% 50%; animation: ot-blink 3.6s ease-in-out infinite; }
.is-live .ot-a-breathe { transform-origin: 50% 100%; animation: ot-breathe 2.2s ease-in-out infinite; }
.is-live .ot-a-spin { transform-origin: 50% 50%; animation: spin 1.6s linear infinite; }
.is-live .ot-a-flip { transform-origin: 50% 50%; animation: ot-flip 2.8s ease-in-out infinite; }
.is-live .ot-a-roll { transform-origin: 50% 100%; animation: ot-roll 1.3s ease-in-out infinite; }
.is-live .ot-a-sizzle { transform-origin: 50% 50%; animation: ot-sizzle .9s ease-in-out infinite; }
.is-live .ot-a-flag { transform-origin: 0% 50%; animation: ot-flag 1.1s ease-in-out infinite; }
.is-live .ot-a-queue { transform-origin: 50% 100%; animation: ot-queue 1.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.is-live .ot-a-light { transform-origin: 50% 50%; animation: ot-light 1.4s ease-in-out infinite; }
@keyframes ot-steam { 0% { opacity: 0; transform: translateY(4px) scaleY(.7); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px) scaleY(1.1); } }
@keyframes ot-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
@keyframes ot-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05, .96); } }
@keyframes ot-flip { 0%, 40%, 100% { transform: rotateY(0); } 60% { transform: rotateY(180deg); } }
@keyframes ot-roll { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes ot-sizzle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes ot-flag { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-6deg) scaleX(.94); } }
@keyframes ot-queue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes ot-light { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .kic [class*="ot-a-"] { animation: none !important; } }

/* ---------- 동의 바텀시트·안내 ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.modal-back { position: absolute; inset: 0; background: rgba(43, 32, 24, .45); opacity: 0; transition: opacity .3s ease; }
.modal-sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 88dvh; overflow-y: auto; background: var(--bg);
  border-radius: 22px 22px 0 0; padding: 22px var(--gutter) calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0, 0, 0, .2);
  transform: translateY(100%); transition: transform .45s var(--spring);
}
.modal.open .modal-back { opacity: 1; }
.modal.open .modal-sheet { transform: none; }
.modal-sheet h2 { font-size: 22px; }
.modal-sheet h3 { font-family: var(--font); font-weight: 800; font-size: 16px; margin: 14px 0 4px; }
.modal-sheet ul { padding-left: 1.2em; margin: 0; color: var(--ink-2); font-size: 15px; }
.modal-btns { display: grid; gap: 8px; margin-top: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-2); font-weight: 700; font-size: 15px; }
.check input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--primary); }
.check a { font-weight: 600; color: var(--sundae); }
@media (min-width: 700px) { .modal { align-items: center; } .modal-sheet { border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) { .modal-sheet, .modal-back { transition: none; } }
.spot-title { margin: 14px 0 6px; }
.spot-map { height: 260px; margin-bottom: 6px; }
.spot-map .maplibregl-canvas { cursor: crosshair; }
.lbs-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin: 16px 0; }
.lbs-box h2 { font-size: 20px; }
.switch { display: flex; gap: 10px; align-items: center; font-weight: 700; padding: 8px 0; }
.switch input { width: 44px; height: 26px; appearance: none; -webkit-appearance: none; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--spring); }
.switch input:checked { background: var(--warn); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:disabled { opacity: .5; cursor: default; }
.lbs-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.lbs-log { font-size: 14px; color: var(--ink-2); padding-left: 1.3em; max-height: 220px; overflow-y: auto; }
.foot-strong { font-weight: 800; color: var(--ink) !important; }
.terms h2 { font-size: 19px; }
.table-wrap { overflow-x: auto; margin: 10px 0; }
.terms-table { border-collapse: collapse; min-width: 560px; font-size: 14px; }
.terms-table th, .terms-table td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.terms-table th { background: var(--line-2); }

/* ---------- 25개 구: 한 줄 칩 + 검색 ---------- */
.rpick { margin: 6px 0 10px; }
.rpick-row { display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap; padding: 2px 0 6px; scrollbar-width: none; }
.rpick-row::-webkit-scrollbar { display: none; }
.rpick-row .chip { flex: none; }
.rpick-more { border-style: dashed; }
.near-dot { width: 8px; height: 8px; border-radius: 50%; background: #1D6FD8; display: inline-block; }
.rpick-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; margin-top: 4px; }
.rpick-q { width: 100%; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); padding: 8px 12px; font-size: 16px; margin-bottom: 10px; }
.rpick-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow-y: auto; }
.rpick-list .chip small { color: var(--ink-3); font-weight: 600; }
.rpick-list .chip.on small { color: #E8DCCF; }
.rsearch { margin: 4px 0 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.region-links li[hidden] { display: none; }
.foot-regions-wrap summary { cursor: pointer; font-weight: 700; padding: 4px 0 8px; }
.foot-regions-wrap .foot-regions a { font-weight: 600; }
/* 빈칸(아직 트럭을 모르는 동네) */
.card-gap { display: block; background: #FFF8EE; border: 2px dashed var(--chicken); box-shadow: none; }
.card-gap .gap-q { float: right; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px dashed var(--chicken); font-weight: 800; color: var(--chicken-text); }
.card-gap p { margin: 4px 0 10px; }
.mk-gap { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mk-gap b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 248, 238, .95); border: 2px dashed var(--chicken); color: var(--chicken-text); font-weight: 800; }
.mk-gap span { font: 700 11px/1 var(--font); background: #fff; border-radius: 99px; padding: 3px 7px; box-shadow: var(--shadow); white-space: nowrap; }
/* 정보 믿음 정도 */
.trust-notes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.trust-notes li { background: #FFF4D6; border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: #6B4A00; }

/* =====================================================================
   시안 B(토스식 평면, 회장 11/04 선택) — drafts/b/tokens.css 를 옮겨 입힘
   상태: is-live(살아 있음) · is-today(오늘 아직) · is-off(= 시안의 is-closed)
   ===================================================================== */
:root {
  --bg: #FBF8F3; --card: #FFFFFF; --ink: #2B2018; --ink-2: #5E5047; --ink-3: #574A40;
  --line: #EADFD2; --line-2: #F2EAE0;
  --primary: #C8452C; --primary-ink: #FFFFFF;
  --radius: 20px; --radius-sm: 12px; --shadow: 0 2px 12px rgba(43, 32, 24, .10);
  --font-title: "NanumSquareRound", var(--font);
  --me: #2B6DE8; --me-ring: rgba(43, 109, 232, .16);
  --sheet-radius: 24px; --sheet-peek: 36vh; --sheet-handle: #DCD0C2;
  --fab-h: 52px; --pin-size: 54px; --near-dash: #C8452C;
  --progress-h: 8px; --progress-bg: #ECEAE7; --progress-fg: #2B2018; --feed-bg: #FFFFFF;
  --soft: #F3F2F0; --gop: #2F8A72; --tabs: 64px;
}
h1, h2, h3, .sheet-title, .page-title { font-family: var(--font-title); font-weight: 800; letter-spacing: -.02em; }
svg.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn { border-radius: 14px; }
.btn-ghost { background: var(--soft); border-color: var(--soft); color: var(--ink); }
.chip, .ot-chip { flex: none; height: 44px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--soft); color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.chip.on, .chip[aria-pressed="true"], .chip[aria-checked="true"], .ot-chip[aria-pressed="true"], .ot-chip[aria-checked="true"] { background: var(--primary); color: #fff; border: 0; }
.ot-chip small, .chip small { color: var(--ink-3); font-weight: 600; }
.chip-live { width: 10px; height: 10px; border-radius: 50%; background: var(--live); margin: 0 2px 0 4px; display: inline-block; }
.ot-chip[aria-pressed="true"] .chip-live { background: #7FD69A; }
.card { box-shadow: 0 1px 3px rgba(43, 32, 24, .07); }
.kpin { border: 0; background: var(--soft); width: 32px; height: 32px; border-radius: 10px; }
.kpin .kic { width: 90%; height: 90%; }
.kpin:has(.kic) { background: var(--soft); }
.kpin.is-live { box-shadow: 0 0 0 2px var(--live); }
.sec { font-family: var(--font); font-weight: 700; font-size: 18px; padding: 22px 2px 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; }
.sec small { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.note { font-size: 15px; color: var(--ink-3); padding: 12px 2px 0; background: none; }

/* 카드(B): 흰 판 하나 + 구분선 줄 */
.ot-card { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(43, 32, 24, .07); }
.ot-card__row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 72px; cursor: pointer; }
.ot-card__row + .ot-card__row { border-top: 1px solid var(--line-2); }
.ot-card__thumb { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; position: relative; }
.ot-card__thumb > svg, .ot-card__thumb > .kic { width: 42px; height: 42px; overflow: visible; }
.ot-card__thumb .kt { font-size: 18px; }
.ot-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ot-card__name { font-size: 18px; font-weight: 700; line-height: 1.35; text-decoration: none; color: var(--ink); }
.ot-card__sub { font-size: 15px; color: var(--ink-3); line-height: 1.4; }
.ot-card__menu { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.ot-card__ask { font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: underline; margin-top: 2px; }
.ot-card__end { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; align-self: flex-start; padding-top: 2px; }
.ot-card__end b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.ot-card__end span { font-size: 14px; color: var(--ink-3); }
.ot-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 6px; vertical-align: 2px; }
.live-txt { color: var(--live); font-weight: 700; }
.ot-card__row.is-off .ot-card__thumb svg { filter: grayscale(1); opacity: .6; }
.ot-card__row.is-today .ot-card__thumb svg { opacity: .8; }
.ot-card__row .card-acts { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.boss-mark { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2.5px #fff; display: grid; place-items: center; }
.boss-mark svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.gap-row { background: #FFFBF4; border-radius: var(--radius); }
.gap-q { font-weight: 800; font-size: 22px; color: var(--chicken-text); background: #fff !important; box-shadow: inset 0 0 0 2px var(--chicken); border-style: dashed; }

/* 진행(숫자 중심) */
.ot-progress { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.ot-progress__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ot-progress__num { font-size: 16px; color: var(--ink-2); white-space: nowrap; }
.ot-progress__num b { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-right: 2px; }
.ot-progress__who { font-size: 15px; color: var(--ink-3); }
.ot-progress__bar { display: block; height: var(--progress-h); border-radius: 4px; background: var(--progress-bg); overflow: hidden; }
.ot-progress__bar i { display: block; height: 100%; border-radius: 4px; background: var(--progress-fg); width: var(--p, 0%); min-width: 4px; transition: width .9s cubic-bezier(.3, 1.2, .5, 1); }
.progress-list { padding: 4px 0; }
.progress-list li { padding: 12px 16px; }
.progress-list li + li { border-top: 1px solid var(--line-2); }
.progress-list .pg-name { font-weight: 700; }
.progress-list .ot-progress__num b { font-size: 20px; }
.mini-rank .rrow { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 60px; }
.mini-rank .rrow + .rrow { border-top: 1px solid var(--line-2); }
.mini-rank .rnum { width: 28px; font-weight: 800; font-size: 20px; text-align: center; flex: none; }
.mini-rank .rname { flex: 1; }
.mini-rank .rpt { font-weight: 800; font-size: 20px; flex: none; }
.mini-rank .rpt small { font-size: 15px; }
.region-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 6px 0; }
.region-links a.ot-chip { box-shadow: none; }

/* ---------- 처음 화면(B) 배치 ---------- */
.page-home { overflow: hidden; height: 100dvh; }
.page-home .toast { bottom: calc(var(--tabs) + var(--sheet-peek) + 16px); }
.mapapp { position: fixed; inset: 0; max-width: none; margin: 0; padding: 0; }
.map-full { position: fixed; inset: 0; background: #F1EBE1; z-index: 0; }
.map-full .maplibregl-canvas { filter: sepia(.1) saturate(1.06); }
.panel { display: contents; }
.ui-top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; padding: 10px 12px 0; padding-top: max(10px, env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.ui-top > * { pointer-events: auto; }
.ui-row { display: flex; gap: 8px; align-items: center; }
.d-nav { display: none; }
.hood { flex: 1; min-width: 0; height: 48px; padding: 0 14px 0 14px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 8px; font: 700 16px/1 var(--font); color: var(--ink); border: 0; cursor: pointer; justify-content: flex-start; }
.hood span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hood svg.i { width: 20px; height: 20px; margin-left: auto; }
.hood .pinpoint { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--me); box-shadow: 0 0 0 3px var(--me-ring); }
.hood-panel { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 10px 12px; margin: 0; max-height: calc(100dvh - 170px); overflow-y: auto; overscroll-behavior: contain; } /* 11/05 전국 17개 시·도: 길어지면 판 안에서 스크롤 */
.ot-locate { flex: none; width: 48px; height: 48px; border-radius: 16px; background: #fff; color: var(--me); border: 0; display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; }
.ot-locate.on { background: var(--me); color: #fff; }
.ot-locate.busy svg { animation: spin 1s linear infinite; }
body.sheet-open .ot-ticker { visibility: hidden; }

/* 전광판(B): 흰 띠 + 불빛 점 하나, 소식은 하나씩 들어와 가운데 멈춤 */
.ot-ticker { position: relative; display: flex; align-items: center; height: 46px; border-radius: 14px; background: var(--feed-bg); color: var(--ink); overflow: hidden; box-shadow: var(--shadow); }
.ot-ticker__view { position: relative; flex: 1; min-width: 0; height: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ot-ticker__dot { position: relative; flex: none; width: 30px; height: 100%; }
.ot-ticker__dot::before { content: ""; position: absolute; left: 16px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #E9A21F; animation: ot-light 1.4s steps(2) infinite; }
.ot-ticker__track { position: absolute; inset: 0; }
.ot-ticker__item { position: absolute; inset: 0 6px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; font: 600 15px/1.2 var(--font); color: var(--ink); white-space: nowrap; border: 0; background: none; cursor: pointer; transform: translateX(105%); opacity: 0; transition: transform .5s cubic-bezier(.25, .9, .35, 1), opacity .2s; }
.ot-ticker__item span { overflow: hidden; text-overflow: ellipsis; }
.ot-ticker__item.is-in { transform: translateX(0); opacity: 1; }
.ot-ticker__item.is-out { transform: translateX(-105%); opacity: 1; }
.ot-ticker__item > svg, .ot-ticker__item > .kic { width: 26px; height: 26px; flex: none; }
.ot-ticker__item em { font-style: normal; font-weight: 800; color: var(--chicken-text); }
.ot-ticker__item--new.is-in { animation: ot-ticker-flash .7s ease-out .5s 1 both; }

/* 바텀시트(B) */
.ot-sheet { background: var(--card); border-radius: var(--sheet-radius) var(--sheet-radius) 0 0; box-shadow: 0 -2px 16px rgba(43, 32, 24, .10); }
.mapapp .sheet { position: fixed; left: 0; right: 0; bottom: var(--tabs); top: auto; z-index: 12; height: var(--sheet-peek); transform: none; display: flex; flex-direction: column; transition: height .45s cubic-bezier(.3, 1.2, .5, 1); animation: ot-sheet-up .62s cubic-bezier(.2, 1.3, .4, 1) both; will-change: height; }
.mapapp .sheet[data-state="full"] { height: 78vh; transform: none; }
.mapapp .sheet.dragging { transition: none; height: var(--drag); transform: none; }
.ot-sheet__handle { display: flex; justify-content: center; align-items: center; width: 100%; height: 40px; border: 0; background: none; cursor: grab; flex: none; touch-action: none; }
.ot-sheet__handle::before { content: ""; width: 40px; height: 5px; border-radius: 9px; background: var(--sheet-handle); }
.mapapp .sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 20px; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px 8px; }
.mapapp .sheet-title { font-size: 22px; margin: 0; display: flex; gap: 6px; align-items: baseline; }
.mapapp .sheet-title #nearCount { font-family: var(--font); font-size: 18px; font-weight: 800; color: var(--ink); }
.mapapp .chips { display: flex; gap: 6px; overflow-x: auto; margin: 12px -16px 10px; padding: 2px 16px 4px; scrollbar-width: none; }
.mapapp .chips::-webkit-scrollbar { display: none; }
.near-list { margin-top: 4px; }
.mapapp .foot { padding: 20px 2px 24px; margin: 18px 0 0; border-top: 1px solid var(--line-2); }

/* 떠 있는 [트럭 봤어요] */
.fabs { position: fixed; right: 12px; z-index: 13; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; bottom: calc(var(--tabs) + var(--sheet-peek) + 12px); transition: opacity .2s; }
body.sheet-open .fabs { opacity: 0; pointer-events: none; }
.ot-fab { height: var(--fab-h); padding: 0 22px 0 18px; border-radius: 999px; border: 0; background: var(--primary); color: var(--primary-ink); font: 700 18px/1 var(--font); display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 14px rgba(200, 69, 44, .28); cursor: pointer; text-decoration: none; animation: fab-in .6s var(--spring) both .2s; }
.ot-fab svg.i { width: 22px; height: 22px; stroke-width: 2.6; }
.mapapp .fab { display: none; }

/* 아래 탭(폰) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 14; height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar svg.i { width: 24px; height: 24px; }
.has-tabs .foot { padding-bottom: calc(var(--tabs) + 32px); }
.has-tabs .fab { bottom: calc(var(--tabs) + 14px); }

/* 지도 위 핀(B): 트럭 몸체 + 음식 얼굴 */
.mk .ot-pin { position: relative; transform: none; width: var(--pin-size); min-width: 44px; display: block; }
.ot-pin__body { display: block; position: relative; animation: ot-drop .55s cubic-bezier(.3, 1.5, .55, 1) both; animation-delay: calc(var(--i, 0) * 70ms); transform-origin: 50% 100%; }
.ot-pin__body > svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 2px 3px rgba(43, 32, 24, .25)); }
.ot-pin__steam { position: absolute; left: 30%; top: -46%; width: 42%; pointer-events: none; }
.ot-pin__steam svg { display: block; width: 100%; height: auto; }
.ot-pin__tag { position: absolute; top: 40%; white-space: nowrap; background: #fff; color: var(--ink); font: 700 14px/1.4 var(--font); padding: 2px 8px; border-radius: 8px; box-shadow: var(--shadow); }
.ot-pin__tag--r { left: 100%; margin-left: 2px; }
.ot-pin__check { position: absolute; right: -4px; bottom: 22%; width: 22px; height: 22px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2.5px #fff; display: grid; place-items: center; }
.ot-pin__check svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ot-pin--fresh { z-index: 4; }
.ot-pin.is-live { --pin-size: 60px; }
.ot-pin.is-today { opacity: .62; }
.ot-pin.is-off svg, .is-off .ot-pin__body svg { filter: grayscale(1); opacity: .6; }
@media (min-width: 900px) { .mk .ot-pin { --pin-size: 58px; } .mk .ot-pin.is-live { --pin-size: 70px; } }
.ot-near { width: 92px; height: 92px; border-radius: 50%; border: 2.5px dashed var(--near-dash); background: rgba(200, 69, 44, .09); }
.ot-near--chicken { border-color: var(--chicken); background: rgba(207, 138, 29, .10); }
.mk-dot { width: 12px; height: 12px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(43, 32, 24, .35); opacity: .75; }
.mk-dot.is-today { width: 16px; height: 16px; opacity: 1; }
.mk-dot.is-off { filter: grayscale(.6); }
.mk-gap b { background: #fff; border: 2px dashed var(--chicken); width: 34px; height: 34px; }
.me-dot { width: 20px; height: 20px; background: var(--me); border: 0; box-shadow: 0 0 0 4px #fff, 0 0 0 14px var(--me-ring); }
.me-dot i { inset: -4px; background: none; border: 3px solid var(--me); animation: ot-pulse 2.2s ease-out infinite; }
.maplibregl-popup-content { border-radius: 14px; }
.maplibregl-popup-content a { color: var(--ink); text-decoration: underline; }

/* 살아 있음·오늘·끝(시안 B 그대로, is-closed → is-off) */
[class*="ot-a-"] { transform-box: fill-box; transform-origin: 50% 50%; }
.ot-a-breathe, .ot-a-steam, .ot-a-smoke { transform-origin: 50% 100%; }
.ot-a-flag { transform-origin: 0% 100%; }
.is-live .ot-a-breathe { animation: ot-breathe 2.2s ease-in-out infinite; }
.is-live .ot-a-steam { animation: ot-steam 2.4s ease-out infinite; }
.is-live .ot-a-smoke { animation: ot-smoke 2.8s ease-out infinite; }
.is-live .ot-a-spin { animation: ot-spin 1.6s linear infinite; }
.is-live .ot-a-flip { animation: ot-flip 2.8s ease-in-out infinite; }
.is-live .ot-a-roll { animation: ot-roll 1.8s ease-in-out infinite; }
.is-live .ot-a-sizzle { animation: ot-sizzle .9s steps(2) infinite; }
.is-live .ot-a-flag { animation: ot-flag 1.3s ease-in-out infinite; }
.is-live .ot-a-queue > * { animation: ot-queue 1.5s ease-in-out infinite; }
.is-live .ot-a-queue > *:nth-child(n+3) { animation-delay: .3s; }
.is-live .ot-a-light { animation: ot-light 1.2s steps(2) infinite; }
.is-live .ot-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: ot-blink 4.2s infinite; }
.is-today .ot-a-steam, .is-today .ot-a-smoke, .is-today .ot-a-sizzle, .is-today .ot-a-queue,
.is-off .ot-a-steam, .is-off .ot-a-smoke, .is-off .ot-a-sizzle, .is-off .ot-a-queue,
.is-today .ot-pin__steam, .is-off .ot-pin__steam { display: none; }
.is-today .ot-a-light, .is-off .ot-a-light { fill: #B9AC9E; }
.is-off .ot-pin__check { display: none; }
@keyframes ot-drop { 0% { transform: translateY(-46px) scale(.7); opacity: 0; } 55% { transform: translateY(4px) scale(1.04, .94); opacity: 1; } 75% { transform: translateY(-6px); } 100% { transform: none; opacity: 1; } }
@keyframes ot-steam { 0% { transform: translateY(5px) scaleY(.6); opacity: 0; } 35% { opacity: .95; } 100% { transform: translateY(-7px) scaleY(1.1); opacity: 0; } }
@keyframes ot-smoke { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: .9; } 100% { transform: translate(3px, -8px); opacity: 0; } }
@keyframes ot-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes ot-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, .965); } }
@keyframes ot-spin { 0% { transform: scaleX(1); } 25% { transform: scaleX(.55); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(-.55); } 100% { transform: scaleX(1); } }
@keyframes ot-flip { 0%, 60%, 100% { transform: scaleY(1); } 75% { transform: translateY(-6px) scaleY(-1); } 90% { transform: scaleY(1); } }
@keyframes ot-roll { 0%, 100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(2px) rotate(18deg) translateY(-2px); } }
@keyframes ot-sizzle { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: .25; transform: translateY(-2px); } }
@keyframes ot-flag { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-8deg) scaleX(.86); } }
@keyframes ot-queue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes ot-light { 0% { opacity: 1; } 100% { opacity: .35; } }
@keyframes ot-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes ot-sheet-up { 0% { transform: translateY(100%); } 100% { transform: translateY(0); } }
@keyframes ot-ticker-flash { 0% { transform: scale(1); } 30% { transform: scale(1.07); } 60% { transform: scale(.98); } 100% { transform: scale(1); } }

/* 데스크톱(B): 왼쪽 떠 있는 판(머리·동네·전광판·목록) + 오른쪽 지도 */
@media (min-width: 900px) {
  .page-home .tabbar { display: none; }
  .panel { display: flex; flex-direction: column; position: fixed; left: 16px; top: 16px; bottom: 16px; width: 432px; z-index: 12; background: #fff; border-radius: 20px; box-shadow: 0 4px 24px rgba(43, 32, 24, .12); overflow: hidden; }
  .panel .ui-top { position: static; padding: 0 16px 8px; pointer-events: auto; flex: none; }
  .d-nav { display: flex; align-items: center; gap: 8px; height: 60px; margin: 0 -16px 8px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line-2); }
  .d-nav .logo { font-family: var(--font-title); font-weight: 800; font-size: 20px; text-decoration: none; }
  .d-nav nav { margin-left: auto; display: flex; gap: 2px; }
  .d-nav nav a { padding: 8px 10px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
  .d-nav nav a[aria-current="page"] { background: var(--soft); color: var(--ink); }
  .d-nav .beta-badge { margin-left: 4px; }
  .panel .hood { flex: none; background: var(--soft); box-shadow: none; height: 44px; }
  .panel .ui-row { justify-content: flex-start; }
  .panel .ot-locate { width: 44px; height: 44px; box-shadow: none; background: var(--soft); }
  .panel .ot-locate.on { background: var(--me); color: #fff; }
  .panel .ot-ticker { box-shadow: 0 1px 6px rgba(43, 32, 24, .12); }
  .mapapp .sheet { position: static; height: auto; flex: 1; min-height: 0; box-shadow: none; border-radius: 0; animation: none; }
  .mapapp .ot-sheet__handle { display: none; }
  .fabs { bottom: 24px; right: 24px; }
  .map-desk-locate { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  [class*="ot-"], [class*="ot-"] *, [class*="ot-"]::before, [class*="ot-"]::after { animation: none !important; transition: none !important; }
  .ot-ticker__item { transition: none; }
  .ot-ticker__item.is-out { opacity: 0; }
}
.logo { font-weight: 800; }

/* ---------- 제보 사진(B 모양) ---------- */
.row-photo { flex: none; position: relative; width: 60px; height: 60px; border-radius: 14px; overflow: hidden; background: var(--soft); align-self: center; }
.row-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-photo__n { position: absolute; right: 4px; bottom: 4px; background: rgba(43, 32, 24, .78); color: #fff; font: 800 12px/1 var(--font); padding: 3px 6px; border-radius: 8px; }
@media (max-width: 400px) { .row-photo { width: 56px; height: 56px; } .ot-card__row { gap: 10px; padding: 14px 12px; } }
.photo-strip { margin: 14px 0 0; }
.strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 0 6px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip-item { flex: none; position: relative; width: 120px; height: 120px; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: var(--soft); cursor: zoom-in; scroll-snap-align: start; }
.strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-item span { position: absolute; left: 6px; bottom: 6px; background: rgba(43, 32, 24, .72); color: #fff; font: 700 12px/1 var(--font); padding: 4px 7px; border-radius: 8px; }
.pv { margin: 0; }
.pv img { width: 100%; max-height: 64dvh; object-fit: contain; border-radius: 14px; background: var(--soft); display: block; }
.pv figcaption { margin-top: 8px; font-weight: 700; color: var(--ink-2); }
.photo-pick-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.photo-pick-row:empty { display: none; }
.pp { position: relative; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--soft); }
.pp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(43, 32, 24, .75); color: #fff; font-weight: 800; cursor: pointer; line-height: 1; }
.photo-add { cursor: pointer; }
.near-list .ot-card__row { align-items: flex-start; }
.near-list .ot-card__end .row-photo { margin-top: 6px; }

/* ---------- 바텀시트 3단: 접힘(min)·중간(peek)·펼침(full) ---------- */
.sheet-mini { display: none; }
.mapapp .sheet[data-state="min"] { height: 64px; }
.mapapp .sheet[data-state="min"] .sheet-body { display: none; }
.mapapp .sheet[data-state="min"] .ot-sheet__handle { height: 22px; }
.mapapp .sheet[data-state="min"] .sheet-mini { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 42px; padding: 0 18px 4px; border: 0; background: none; font: inherit; cursor: pointer; color: var(--ink); }
.sheet-mini b { font-family: var(--font-title); font-weight: 800; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-mini span { flex: none; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.sheet-mini span::after { content: " ▲"; font-size: 11px; }
.fabs { bottom: calc(var(--tabs) + var(--sheet-h, 36vh) + 12px); transition: bottom .45s cubic-bezier(.3, 1.2, .5, 1), opacity .2s; }
.page-home .toast { bottom: calc(var(--tabs) + var(--sheet-h, 36vh) + 76px); }
.panel-fold, .panel-open { display: none; }
@media (min-width: 900px) {
  .fabs { bottom: 24px; }
  .page-home .toast { bottom: 96px; }
  .panel { transition: transform .45s cubic-bezier(.3, 1.2, .5, 1); }
  body.panel-off .panel { transform: translateX(calc(-100% - 24px)); }
  .panel-fold { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -8px; border: 0; border-radius: 10px; background: var(--soft); color: var(--ink-2); font-size: 14px; cursor: pointer; }
  .panel-open:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; position: fixed; left: 16px; top: 16px; z-index: 13; height: 44px; padding: 0 16px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font: 700 15px/1 var(--font); color: var(--ink); cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) { .panel, .fabs { transition: none !important; } }
@media (min-width: 900px) { .mapapp .map-full { left: 0; } }
@media (min-width: 900px) {
  .d-nav { gap: 6px; padding-left: 14px; }
  .d-nav .logo { font-size: 18px; white-space: nowrap; }
  .d-nav nav a { white-space: nowrap; padding: 8px 8px; font-size: 14px; }
  .d-nav .beta-badge { font-size: 11px; padding: 2px 7px; }
}

/* [당근 카페 구경하기] — 시안 B 버튼 모양, 당근 주황 작은 아이콘 */
.btn-daangn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 14px; border: 0; background: #FFF1E7; color: var(--ink); font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-daangn .dg-ic { width: 20px; height: 20px; flex: none; }
.btn-daangn:hover { background: #FFE6D4; }
.btn-daangn.is-soon { background: var(--soft); color: var(--ink-2); }
.btn-daangn.btn-block { display: flex; width: 100%; margin-top: 10px; }
.btn-daangn.btn-sm { min-height: 36px; font-size: 14px; padding: 0 12px; }
.daangn-slot { margin: 12px 0 2px; }
.daangn-box { margin-top: 22px; background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(43, 32, 24, .07); padding: 16px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.daangn-box p { margin: 0; }
.gap-acts { margin-top: 8px; }

/* 오늘 숫자(방문·영업 예정·지금 영업·내 주변) */
.today-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 2px 0; font-size: 14px; color: var(--ink-3); }
.today-stats b { color: var(--ink); font-weight: 800; font-size: 16px; }
.today-stats span + span::before { content: "·"; margin-right: 12px; color: var(--line); }
/* 시·도 → 구/시·군 두 단계 */
.rpick-sido { display: flex; gap: 6px; margin-bottom: 10px; }
.rpick-list [hidden] { display: none; }
/* 11/05 전국: 시·도가 많으면 ① 시·도 → ② 동네 */
.rpick-step { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.rpick-step > b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; flex: none; }
.rpick-back { min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rpick-sidos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rpick-sidos .chip { justify-content: center; padding: 0 8px; }
.rpick-sidos .chip small { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.rpick-step[hidden], .rpick-sidos[hidden], .rpick-list[hidden] { display: none; }
.region-links .rl-sido { flex-basis: 100%; margin: 8px 0 2px; font-size: 15px; }
.region-links .rl-sido small { color: var(--ink-3); }
.foot-sido { margin: 8px 0 4px; font-weight: 800; color: var(--ink-2); }
.foot-daangn { margin: 0 0 10px; }
.foot-daangn a { font-weight: 700; color: #C85A0A; }

/* '이 트럭, 이렇게 확인했어요' */
.sources { margin-top: 22px; }
.latest-proof { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(43, 32, 24, .07); padding: 14px 16px; }
.latest-proof__line { display: block; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.45; }
a.latest-proof__line[href]:hover { text-decoration: underline; }
.latest-proof__line b { font-weight: 800; }
.latest-proof__line.is-gps b { color: var(--live); }
.latest-proof__sub { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.latest-proof__sub a, .latest-proof__sub b { color: inherit; font-weight: 600; }
.stale-ask { margin: 10px 0 0; background: #FFF4D6; border-radius: 12px; padding: 10px 14px; font-weight: 700; color: #6B4A00; }
.stale-ask a { color: var(--primary); }
.src-list { list-style: none; padding: 0; margin: 10px 0 0; background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(43, 32, 24, .07); }
.src-list li + li { border-top: 1px solid var(--line-2); }
.src-list a, .src-list .src-nolink { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.src-badge { flex: none; font-size: 12px; font-weight: 800; background: var(--soft); color: var(--ink-2); border-radius: 8px; padding: 3px 8px; }
.src-title { flex: 1 1 60%; min-width: 0; font-weight: 600; }
.src-date { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.src-go { font-size: 13px; font-weight: 700; color: var(--ink-3); text-decoration: underline; }
.src-more details summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--ink-2); }
.src-more .src-list { margin: 0; box-shadow: none; border-radius: 0; border-top: 1px solid var(--line-2); }
.ot-card__src { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 설치되는 웹앱(PWA): 홈 화면 추가 안내·오프라인 요일표 ---------- */
.pwa-card {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); max-width: 440px; padding: 12px 12px 12px 14px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 28px rgba(43, 32, 24, .18);
  animation: pwa-in .28s ease-out;
}
.pwa-card img { flex: none; width: 44px; height: 44px; border-radius: 10px; }
.pwa-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.pwa-txt b { font-size: 15px; color: var(--ink); }
.pwa-txt span b { font-size: 13px; white-space: nowrap; }
.pwa-card .btn { flex: none; }
.pwa-x { flex: none; width: 32px; height: 32px; border: 0; background: none; color: var(--ink-3); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px; }
.pwa-x:hover { background: var(--line-2); }
@keyframes pwa-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .pwa-card { animation: none; } }
.foot-install { margin: 8px 0; font-size: 12px; color: var(--ink-3); }
.foot-install .link-btn { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.offline-note { margin: 12px 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--ink); font-size: 14px; line-height: 1.5; }
.offline .chips button.chip { font: inherit; cursor: pointer; }
.offline .day.is-today { box-shadow: 0 0 0 2px var(--sundae); border-radius: var(--radius-sm); }
.offline-retry { margin: 16px 0 24px; text-align: center; }

/* 지도 위 '지금 영업 중' 트럭: 떨어져 내려온 뒤 살짝 통통(따뜻한 지도 11/05). 움직임 줄이기면 멈춤 */
.mk .ot-pin.is-live .ot-pin__body { animation: ot-drop .55s cubic-bezier(.3, 1.5, .55, 1) both, ot-hop 1.8s ease-in-out .8s infinite; animation-delay: calc(var(--i, 0) * 70ms), calc(.8s + var(--i, 0) * 70ms); }
.mk .ot-pin.is-live::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -3px; height: 6px; border-radius: 50%; background: rgba(43, 32, 24, .18); animation: ot-hop-shadow 1.8s ease-in-out .8s infinite; z-index: -1; }
@keyframes ot-hop { 0%, 55%, 100% { transform: translateY(0) scale(1); } 70% { transform: translateY(-7px) scale(.98, 1.03); } 85% { transform: translateY(0) scale(1.04, .95); } }
@keyframes ot-hop-shadow { 0%, 55%, 100% { transform: scale(1); opacity: 1; } 70% { transform: scale(.7); opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .mk .ot-pin.is-live .ot-pin__body, .mk .ot-pin.is-live::after, .ot-pin__body { animation: none !important; }
}

/* ---------- 첫 화면 살리기(11/05 회장 "첫화면이 너무 심심한디") ----------
   인사 한 줄 + 음식 칩(숫자) + 먼저 볼 트럭 카드 3장 · 지도: 멀리선 동네 말풍선, 가까이선 음식 아이콘, 영업 중은 트럭 핀+빛 */
.mapapp .sheet-head.hello { display: block; }
.mapapp .sheet-head.hello .sheet-title { font-size: 20px; line-height: 1.35; display: block; letter-spacing: -.02em; }
#sheetHead em { font-style: normal; color: var(--primary); }
.hello-live { display: inline-flex; align-items: center; margin-left: 6px; padding: 2px 10px; border-radius: 99px; background: var(--live-bg); color: var(--live); font: 800 13px/1.6 var(--font); vertical-align: 3px; }
.kind-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 10px -2px 4px; padding: 2px; }
.kind-chips::-webkit-scrollbar { display: none; }
.kind-chips .ot-chip { flex: none; gap: 4px; }
.chip-ic { display: inline-block; width: 22px; height: 22px; margin: -2px 2px -2px -4px; }
.chip-ic .kic, .tc2__ic .kic, .fm__ic .kic, .rb__ic .kic, .ot-ticker__item .kic { width: 100%; height: 100%; display: block; overflow: visible; }
.kind-chips small:empty { display: none; }
.kind-chips .ot-chip[aria-pressed="true"] small { color: inherit; opacity: .85; }

.today-strip { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.today-strip[hidden] { display: none; }
.tc2 { position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 10px 10px 9px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; box-shadow: 0 1px 2px rgba(43, 32, 24, .05); transition: transform .15s; }
.tc2:active { transform: scale(.97); }
.tc2__ic { width: 40px; height: 40px; padding: 5px; border-radius: 12px; background: #FFF1E8; margin-bottom: 6px; }
.tc2.k-chicken .tc2__ic { background: #FFF4DF; }
.tc2.k-snack .tc2__ic { background: #F6EDE4; }
.tc2.k-bread .tc2__ic { background: #FBEEDC; }
.tc2__tag { position: absolute; top: 10px; right: 8px; font: 800 11px/1.5 var(--font); color: var(--primary); }
.tc2.is-live { border-color: var(--live); box-shadow: 0 0 0 1px var(--live), 0 2px 10px rgba(31, 122, 58, .15); }
.tc2.is-live .tc2__tag { color: var(--live); }
.tc2.is-live .tc2__tag .ot-live-dot { width: 6px; height: 6px; margin-right: 3px; vertical-align: 1px; }
.tc2__name { font: 800 15px/1.3 var(--font); color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc2__sub { font-size: 12px; line-height: 1.45; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc2__sub:first-of-type { color: var(--ink-2); font-weight: 700; }

/* 전광판: 긴 소식은 앞에서부터 보이고 끝만 말줄임 */
.ot-ticker__item { justify-content: flex-start; padding-left: 2px; }
.ot-ticker__item > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ot-ticker__item .kic { width: 22px; height: 22px; flex: none; }

/* 지도: 오늘 오는 트럭 = 음식 아이콘(종류별 테두리), 김이 살짝 오르며 통통 */
.fm { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 3px solid var(--sundae); box-shadow: 0 2px 6px rgba(43, 32, 24, .25); display: grid; place-items: center; animation: fm-in .45s cubic-bezier(.3, 1.5, .55, 1) both, fm-bob 2.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 40ms), calc(var(--i, 0) * 170ms); }
.fm.k-chicken { border-color: var(--chicken); }
.fm.k-snack { border-color: var(--snack); }
.fm.k-bread { border-color: var(--bread); }
.fm__ic { width: 30px; height: 30px; display: block; }
.fm__steam, .fm__steam::after { position: absolute; top: -12px; left: 13px; width: 3px; height: 9px; border-radius: 3px; background: rgba(140, 120, 104, .45); animation: fm-steam 2.4s ease-out infinite; animation-delay: calc(var(--i, 0) * 230ms); }
.fm__steam::after { content: ""; top: -2px; left: 7px; animation-delay: calc(.8s + var(--i, 0) * 230ms); }
@keyframes fm-in { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fm-bob { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 0 -4px; } 90% { translate: 0 0; } }
@keyframes fm-steam { 0% { opacity: 0; transform: translateY(4px) scaleY(.6); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(-7px) scaleY(1.1); } }
/* 영업 중 트럭 핀: 더 크게 + 초록 빛 */
.mk .ot-pin.is-live .ot-pin__body > svg { filter: drop-shadow(0 0 6px rgba(31, 122, 58, .55)) drop-shadow(0 2px 3px rgba(43, 32, 24, .25)); }
.mk .ot-pin.is-live { --pin-size: 66px; }

/* 멀리서 볼 때: 동네 묶음 말풍선(오늘 오는 트럭 수) — 누르면 그 동네로 */
.mk-rb { cursor: pointer; }
.rb { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 4px; border-radius: 99px; background: #fff; border: 2px solid var(--sundae); box-shadow: 0 3px 10px rgba(43, 32, 24, .2); white-space: nowrap; animation: fm-in .45s cubic-bezier(.3, 1.5, .55, 1) both; animation-delay: calc(var(--i, 0) * 45ms); margin-bottom: 7px; }
.rb::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: #fff; border: 2px solid var(--sundae); border-top: 0; border-left: 0; transform: translateX(-50%) rotate(45deg); }
.rb.k-chicken, .rb.k-chicken::after { border-color: var(--chicken); }
.rb.k-snack, .rb.k-snack::after { border-color: var(--snack); }
.rb.k-bread, .rb.k-bread::after { border-color: var(--bread); }
.rb__ic { width: 26px; height: 26px; border-radius: 50%; background: #FFF1E8; padding: 2px; }
.rb b { font: 800 16px/1 var(--font); color: var(--ink); }
.rb__name { font: 700 12px/1 var(--font); color: var(--ink-2); }
.rb.is-live { border-color: var(--live); box-shadow: 0 0 0 4px rgba(31, 122, 58, .18), 0 3px 10px rgba(43, 32, 24, .2); }
.rb.is-live::after { border-color: var(--live); }
.mk-rb:hover .rb { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .fm, .fm__steam, .fm__steam::after, .rb { animation: none !important; }
  .fm__steam { display: none; }
}

/* ---------- 11/05 노점(매일 같은 자리 겨울 간식) ----------
   핀: 트럭 몸체 대신 작은 포장마차 — 둥근 네모 판 + 줄무늬 천막 지붕(물결 끝). 음식 그림은 트럭과 같은 것.
   신선도: 7일 안 손님 확인 = 초록 배지 · 14일 확인 없음 = 흐리게 · 28일 = 지도 핀 대신 '확인 부탁'(가까이서만) */
.type-chips { display: flex; gap: 2px; margin: 10px 0 2px; background: var(--soft); border-radius: 12px; padding: 3px; }
.type-chips button { flex: 1 1 auto; min-height: 40px; border: 0; background: none; border-radius: 9px; font: 700 15px/1.2 var(--font); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; white-space: nowrap; padding: 0 8px; }
.type-chips button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(43, 32, 24, .15); }
.type-chips small { color: var(--ink-3); font-weight: 600; }
.type-chips small:empty { display: none; }
.type-ic { flex: none; width: 16px; height: 12px; display: inline-block; border-radius: 3px; background: var(--sundae); }
.type-ic--truck { border-radius: 3px 6px 3px 3px; box-shadow: inset -5px 0 0 #A9381F; }
.type-ic--stall { background: repeating-linear-gradient(90deg, var(--primary) 0 4px, #FFE3CC 4px 8px); border-radius: 4px 4px 1px 1px; }
@media (max-width: 380px) { .type-chips button { font-size: 14px; padding: 0 5px; } }

.fm--stall { border-radius: 11px; margin-top: 9px; }
.fm__roof { position: absolute; top: -12px; left: -7px; right: -7px; height: 9px; border-radius: 5px 5px 0 0; background: repeating-linear-gradient(90deg, var(--primary) 0 7px, #FFF3E6 7px 14px); box-shadow: 0 -1px 0 rgba(43, 32, 24, .18); }
.fm__roof::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: radial-gradient(circle at 3.5px 0, var(--primary) 3.5px, transparent 4px) 0 0 / 7px 4px repeat-x; }
.fm--stall.k-snack { border-color: #9A5A2A; }
.fm--stall.is-live { width: 46px; height: 46px; border-color: var(--live); box-shadow: 0 0 0 4px rgba(31, 122, 58, .18), 0 2px 6px rgba(43, 32, 24, .25); }
.fm--stall.is-live .fm__ic { width: 36px; height: 36px; }
.fm--stall .ot-pin__steam { position: absolute; top: -30px; left: 50%; width: 26px; transform: translateX(-50%); }
.fm--stall .ot-pin__check { position: absolute; right: -7px; bottom: -6px; }
.fm.is-dim { opacity: .5; filter: grayscale(.75); animation: fm-in .45s cubic-bezier(.3, 1.5, .55, 1) both; }
.mk-dot.is-stall { border-radius: 3px; }
.mk-ask { display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .9; }
.mk-ask b { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 248, 238, .95); border: 2px dashed var(--chicken); color: var(--chicken-text); font: 800 14px/1 var(--font); }
.mk-ask span { font: 700 10px/1 var(--font); color: var(--chicken-text); background: #fff; border-radius: 99px; padding: 3px 6px; box-shadow: var(--shadow); white-space: nowrap; }

.when-tag { display: inline-block; font: 700 12px/1.55 var(--font); color: var(--ink-2); background: var(--soft); border-radius: 6px; padding: 0 6px; margin-right: 3px; vertical-align: 1px; }
.when-tag--stall { background: #FFF0E2; color: #8E431A; }
.ok-badge { display: inline-block; font: 800 12px/1.55 var(--font); color: #fff; background: var(--live); border-radius: 6px; padding: 0 6px; vertical-align: 1px; }
.fresh-txt { font-size: 14px; color: var(--ink-3); }
.fresh-txt.is-ask { color: var(--chicken-text); font-weight: 700; }
.ot-card__row.is-dim .ot-card__thumb, .ot-card__row.is-dim .ot-card__name { opacity: .55; }
/* 11/05 목록 카드: 마지막 확인 알약(오늘 확인·N일 전·오래됨 — 노점 7일 배지·28일 숨김과 같은 경계) */
.ot-card__fresh { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; line-height: 1.4; }
.age-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 700 13px/1 var(--font); letter-spacing: -.01em; white-space: nowrap; }
.age-pill--today { background: var(--live); color: #fff; }
.age-pill--week { background: var(--live-bg); color: #17602D; }
.age-pill--month { background: #ECE8E4; color: var(--ink-2); }
.age-pill--old { background: #F5F2EF; color: #786A60; box-shadow: inset 0 0 0 1px #E6DFD8; font-weight: 600; }
.age-why { font-size: 13px; color: var(--ink-3); }
.age-why.is-ask { color: var(--chicken-text); font-weight: 700; }
/* 사장님 인스타 딱지: 공식 글리프 모양 그대로, 글자색 단색(변형·색 덧칠 X) */
/* 이름 뒤 빈칸 하나로 띄움(딱지가 다음 줄로 넘어가면 빈칸은 줄 끝에서 사라져 들여쓰기 없음) */
.ot-card__title { display: block; line-height: 1.35; }
.ot-card__title .ig-chip { margin-left: 2px; }
.ig-chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 26px; height: 26px; margin-left: 6px; border-radius: 8px; background: var(--soft); color: var(--ink); text-decoration: none; vertical-align: -4px; flex: none; }
.ig-chip .ig-glyph { width: 15px; height: 15px; flex: none; }
.ig-chip:hover { background: #E8E5E1; }
.ig-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ig-chip--wide { width: auto; height: 30px; margin: 6px 0 0; padding: 0 11px 0 9px; font: 600 14px/1 var(--font); color: var(--ink); }
.ig-chip--wide .ig-glyph { width: 16px; height: 16px; }
.ot-card__row.is-stall .ot-card__thumb { border-radius: 12px; margin-top: 6px; }
.ot-card__row.is-stall .ot-card__thumb::before { content: ""; position: absolute; top: -7px; left: -3px; right: -3px; height: 7px; border-radius: 4px 4px 0 0; background: repeating-linear-gradient(90deg, var(--primary) 0 6px, #FFF3E6 6px 12px); }
.ot-card__ask--check { color: var(--chicken-text); font-weight: 700; }
.hello-stall { font: 700 14px/1 var(--font); color: var(--ink-3); white-space: nowrap; }
.tc2.is-stall .tc2__tag { color: #8E431A; }
.tc2.is-stall .tc2__ic { border-radius: 10px; }

.type-tag { display: inline-block; font: 800 12px/1.6 var(--font); color: #8E431A; background: #FFF0E2; border-radius: 6px; padding: 0 7px; }
.stall-fresh { margin: 6px 0 0; }
.stall-season { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.stall-ev { margin: 8px 0; padding: 10px 12px; background: #FFF8F0; border-radius: 10px; font-size: 15px; color: var(--ink-2); }
.stall-ev b { color: #8E431A; margin-right: 4px; }
.row.is-stall.is-dim { opacity: .6; }
.stall-index { margin: 24px 0; }
.stall-pick-title { margin: 14px 0 6px; }
.stall-pick-title small { color: var(--ink-3); font-weight: 600; }
.daangn-ask { margin: 14px 0 6px; color: var(--ink-2); font-size: 15px; text-align: center; }
.ask-box { margin: 20px 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ask-box p { margin: 0; }
.foot-ask { font-size: 14px; }

/* ---------- 선택 가입·내 제보 (11/05) ---------- */
.acct-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px; border: 2px solid #FFE1C2; }
.acct-box.is-on { border-color: transparent; }
.acct-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.acct-head b { font-size: 17px; word-break: keep-all; }
.acct-why { margin: 10px 0 12px; padding-left: 1.2em; color: var(--ink-2); font-size: 15px; display: grid; gap: 2px; word-break: keep-all; }
.acct-link { display: block; margin: 10px auto 0; font-size: 14px; color: var(--ink-2); font-weight: 700; }
.acct-box p.small { margin: 8px 0 0; }
.acct-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.acct-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 26px; font-weight: 800; letter-spacing: .06em; text-align: center; background: var(--bg); border: 2px dashed var(--line); border-radius: 14px; padding: 14px 8px; margin: 12px 0; user-select: all; -webkit-user-select: all; }
.btn-kakao { background: #FEE500; border-color: #FEE500; color: #191600; }
.acct-leave { margin: 24px 0 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.acct-leave h2 { font-size: 17px; margin: 0 0 4px; }
.acct-leave ul { padding-left: 1.2em; margin: 6px 0 10px; color: var(--ink-2); word-break: keep-all; }
.btn.danger { color: var(--warn); border-color: var(--warn-bg); }
.me-stats-4 { grid-template-columns: repeat(4, 1fr); }
.me-stats-4 b { font-size: 20px; }
.month-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #FFF6EA; border-radius: 14px; padding: 10px 12px; margin: 4px 0 8px; }
.month-row div { display: grid; gap: 2px; min-width: 0; }
.month-row b { word-break: keep-all; }
.tag-btn { border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; flex: none; }
.month-row .tag { flex: none; }
.title-chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.title-chips li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--line-2); color: var(--ink-3); font-weight: 700; }
.title-chips li.got { background: #FFF1C9; color: #8F5A00; }
.my-box { margin: 8px 0 18px; }
.my-box h2 { font-size: 20px; margin: 0 0 8px; }
.my-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.my-tabs::-webkit-scrollbar { display: none; }
.my-tab { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.my-tab i { font-style: normal; color: var(--ink-3); font-weight: 600; }
.my-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.my-tab.on i { color: #E9DCCF; }
.my-hint { margin: 8px 0 0; }
.my-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.my-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; }
.my-item.is-hidden { opacity: .6; }
.my-item > .kpin { margin-top: 2px; }
.my-main { min-width: 0; }
.my-name { font-weight: 800; color: var(--ink); text-decoration: none; word-break: keep-all; }
.my-meta { font-size: 13px; color: var(--ink-3); margin-top: 2px; word-break: keep-all; }
.my-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.my-tags .tag { font-size: 12px; padding: 1px 8px; }
.my-act { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.my-act .btn-sm { min-height: 32px; font-size: 13px; padding: 0 12px; }
.my-vote { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 8px; background: var(--live-bg); color: var(--live); white-space: nowrap; }
.my-vote.no { background: var(--warn-bg); color: var(--warn); }
.my-empty { padding: 14px; background: var(--card); border-radius: 16px; }
.my-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.my-photos figure { margin: 0; font-size: 12px; text-align: center; }
.my-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; background: var(--line-2); }
.my-photos figcaption { margin-top: 4px; word-break: keep-all; }
.join-line { margin: 14px 0 4px; padding: 10px 14px; background: #FFF6EA; border-radius: 14px; font-size: 14px; color: var(--ink-2); text-align: left; word-break: keep-all; }
.join-line a { font-weight: 800; color: var(--sundae); white-space: nowrap; }
.rank-tabs { display: flex; gap: 6px; margin: 8px 0; }
.rank-prize { background: #FFF6EA; border-radius: 14px; padding: 10px 14px; font-size: 14px; word-break: keep-all; }
.rank-prize a { white-space: nowrap; font-weight: 800; color: var(--sundae); }
.rank-row .member { font-size: 11px; font-weight: 800; color: var(--live); background: var(--live-bg); border-radius: 999px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }

/* 11/05 웹 푸시 알림 — 동네·트럭 [알림 받기], 내 기록 '켜 둔 알림' */
.push-box { margin: 12px 0 4px; }
.push-btn { gap: 8px; justify-content: center; white-space: normal; text-align: center; word-break: keep-all; }
.push-btn .push-bell { width: 20px; height: 20px; flex: none; }
.push-btn small { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-left: 4px; }
.push-btn.is-on { background: var(--live-bg); border-color: var(--live-bg); color: var(--live); }
.push-how { margin: 6px 2px 0; word-break: keep-all; }
.push-note { display: flex; gap: 8px; align-items: flex-start; background: #FFF6EA; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; margin: 0; word-break: keep-all; }
.push-note .push-bell { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.push-me { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin: 16px 0; }
.push-me h2 { font-size: 20px; }
.push-list { list-style: none; padding: 0; margin: 8px 0 12px; }
.push-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.push-list li a { font-weight: 700; color: var(--ink); text-decoration: none; word-break: keep-all; }
.truck > .push-box { margin: 4px 0 16px; }
