/* 장한평 마패야행 — 8비트 야행 테마
   글꼴 원칙: 게임 글꼴(던파 비트비트)은 큰 제목에만. 읽어야 하는 글은 모두 페이퍼로지. */
@font-face {
  font-family: 'DNFBitBitv2';
  src: url('../assets/fonts/DNFBitBitv2.otf') format('opentype');   /* 사이트 안에 넣은 글꼴(바깥 CDN 을 부르지 않는다) */
  font-display: swap;
}
@font-face {
  font-family: 'Paperlogy';
  src: url('../assets/fonts/Paperlogy-5Medium.woff') format('woff');
  font-weight: 100 599;
  font-display: swap;
}
@font-face {
  font-family: 'Paperlogy';
  src: url('../assets/fonts/Paperlogy-7Bold.woff') format('woff');
  font-weight: 600 900;
  font-display: swap;
}

:root {
  --navy: #001B36;
  --navy-deep: #00101F;
  --navy-2: #0B2A4A;
  --navy-3: #143A63;
  --blue: #007AFF;
  --sky: #5EB0FF;
  --yellow: #FFDD2E;
  --gold: #E39D1B;
  --gold-dk: #A86C0B;
  --red: #C81F20;
  --red-dk: #8E1415;
  --teal: #0F5A65;
  --cream: #FFF3D7;
  --paper: #FCF7EA;
  --ink: #231916;
  --ink-2: #4E4038;
  --soft: #D3DEEC;
  --line: #E4D8BC;
  --px: 4px;
  --head: 56px;
  --tabs: 76px;
  --col: 480px;
  --pf: 'Paperlogy', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --bf: 'Paperlogy', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

/* 제목 글꼴(1.8MB)은 html 에 pf 가 붙은 뒤부터 쓴다: js/app.js 가 화면을 다 그린 뒤에 붙이고, 받아 둔 적이 있으면 index.html 이 바로 붙인다.
   그 전에는 제목도 본문 글꼴로 보인다 */
html.pf { --pf: 'DNFBitBitv2', 'Paperlogy', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
html.big { font-size: 20px; }
body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--cream);
  font-family: var(--bf);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -.005em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; letter-spacing: inherit; }
a { color: inherit; }
b, strong { font-weight: 700; }
h1, h2, h3, p { margin: 0; }
img.px { image-rendering: pixelated; image-rendering: crisp-edges; display: inline-block; vertical-align: middle; user-select: none; -webkit-user-drag: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf { font-family: var(--pf); font-weight: 400; letter-spacing: 0; }

/* ---------- 틀 ---------- */
#app {
  position: relative;
  max-width: var(--col);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--navy);
  box-shadow: 0 0 0 4px #000;
}
.top {
  position: sticky; top: 0; z-index: 30;
  height: var(--head);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 12px 0 14px;
  background: var(--navy);
  border-bottom: 4px solid var(--navy-2);
}
.top .brand { display: flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; }
.top .brand b { font-family: var(--pf); font-weight: 400; font-size: 1.18rem; color: var(--cream); white-space: nowrap; }
.bigbtn {
  height: 40px; padding: 0 12px;
  font-weight: 700; font-size: .88rem; color: var(--cream);
  background: var(--navy-2);
  box-shadow: 0 -2px 0 0 var(--navy-3), 0 2px 0 0 var(--navy-3), -2px 0 0 0 var(--navy-3), 2px 0 0 0 var(--navy-3);
}
html.big .bigbtn { background: var(--yellow); color: var(--ink); }

main { padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom, 0px) + 8px); }
.view { display: none; }
.view.on { display: block; }
/* 스크립트를 받는 동안 빈 본문에 보이는 한 줄(index.html) */
.boot { margin: 0; padding: 56px 20px; text-align: center; font-weight: 700; color: var(--cream); }

.tabs {
  position: fixed; left: 50%; bottom: 0; z-index: 40;
  transform: translateX(-50%);
  width: min(100%, var(--col));
  height: calc(var(--tabs) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--navy-deep);
  border-top: 4px solid var(--navy-2);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font-weight: 700; font-size: .84rem; line-height: 1.1; color: #9DB2CB;
  position: relative;
}
.tab .ti { height: 32px; display: grid; place-items: center; opacity: .6; }
.tab.on { color: var(--yellow); }
.tab.on .ti { opacity: 1; }
.tab.on::before { content: ''; position: absolute; top: -4px; left: 14%; right: 14%; height: 4px; background: var(--yellow); }
.tab .dot { position: absolute; top: 6px; left: calc(50% + 12px); min-width: 22px; height: 22px; padding: 0 5px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 700; font-style: normal; line-height: 22px; text-align: center; }

/* ---------- 픽셀 상자·버튼 ---------- */
.pb {
  --bd: var(--ink); --sh: rgba(0, 0, 0, .45);
  position: relative;
  margin: var(--px);
  background: var(--paper); color: var(--ink);
  box-shadow:
    0 calc(-1 * var(--px)) 0 0 var(--bd), 0 var(--px) 0 0 var(--bd),
    calc(-1 * var(--px)) 0 0 0 var(--bd), var(--px) 0 0 0 var(--bd),
    0 calc(2 * var(--px)) 0 0 var(--sh), calc(-1 * var(--px)) var(--px) 0 0 var(--sh), var(--px) var(--px) 0 0 var(--sh);
}
.pb.dark { background: var(--navy-2); color: var(--cream); --bd: var(--navy-3); }

.btn {
  --bg: var(--yellow); --fg: var(--ink); --bd: var(--ink); --dp: var(--gold-dk);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: calc(100% - 2 * var(--px));
  min-height: 60px; margin: var(--px); padding: 10px 16px;
  font-weight: 700; font-size: 1.16rem; line-height: 1.3; text-align: center; text-decoration: none;
  color: var(--fg); background: var(--bg);
  box-shadow:
    0 calc(-1 * var(--px)) 0 0 var(--bd), 0 var(--px) 0 0 var(--bd),
    calc(-1 * var(--px)) 0 0 0 var(--bd), var(--px) 0 0 0 var(--bd),
    0 calc(3 * var(--px)) 0 0 var(--dp), calc(-1 * var(--px)) calc(2 * var(--px)) 0 0 var(--dp), var(--px) calc(2 * var(--px)) 0 0 var(--dp);
  margin-bottom: calc(3 * var(--px) + 4px);
  transition: transform .05s steps(1);
}
.btn:active { transform: translateY(8px); box-shadow: 0 calc(-1 * var(--px)) 0 0 var(--bd), 0 var(--px) 0 0 var(--bd), calc(-1 * var(--px)) 0 0 0 var(--bd), var(--px) 0 0 0 var(--bd); }
.btn.red { --bg: var(--red); --fg: #fff; --dp: var(--red-dk); }
.btn.cream { --bg: var(--paper); --dp: #BFAE86; }
.btn.navy { --bg: var(--navy-2); --fg: var(--cream); --bd: var(--sky); --dp: #05182E; }
.btn.green { --bg: #03A94D; --fg: #fff; --dp: #02722F; }
.btn.sm { min-height: 52px; font-size: 1.04rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.chip {
  flex: none;
  min-height: 46px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  color: var(--cream); background: var(--navy-2);
  box-shadow: 0 -2px 0 0 var(--navy-3), 0 2px 0 0 var(--navy-3), -2px 0 0 0 var(--navy-3), 2px 0 0 0 var(--navy-3);
  margin: 2px;
}
.chip small { font-weight: 500; font-size: .86rem; opacity: .8; }
.chip.on { color: var(--ink); background: var(--yellow); box-shadow: 0 -2px 0 0 var(--ink), 0 2px 0 0 var(--ink), -2px 0 0 0 var(--ink), 2px 0 0 0 var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }

.badge { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; font-size: .8rem; font-weight: 700; line-height: 1; background: var(--ink); color: var(--paper); }
.badge.on { background: #1E57C8; color: #fff; }
.badge.taste { background: var(--red); color: #fff; }

.sec { padding: 32px 16px 8px; }

/* ---------- 인쇄물(리플렛·포스터)에서 가져온 틀 ---------- */
/* 노란 테두리 + 남색 속줄 + 모서리 네모: 리플렛 2쪽의 안내 상자 */
.frame {
  border: 15px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='45' height='45' shape-rendering='crispEdges'%3E%3Crect width='45' height='45' fill='%23FFFDF6'/%3E%3Cpath fill-rule='evenodd' fill='%23FFD23D' d='M0 0h45v45H0zM5 5v35h35V5z'/%3E%3Cpath fill-rule='evenodd' fill='%23081D38' d='M8 8h29v29H8zM10 10v25h25V10z'/%3E%3Cpath fill='%23FFD23D' d='M0 0h11v11H0zM34 0h11v11H34zM0 34h11v11H0zM34 34h11v11H34z'/%3E%3Cpath fill='%23081D38' d='M3 3h5v5H3zM37 3h5v5h-5zM3 37h5v5H3zM37 37h5v5h-5z'/%3E%3C/svg%3E") 15 fill / 15px stretch;
  color: var(--ink);
}
/* 노란 이름표 제목: 리플렛의 소제목 */
.label { margin: 0 0 14px; text-align: center; line-height: 0; }
.label span { display: inline-block; padding: 7px 18px 6px; background: var(--yellow); color: #081D38; font-family: var(--pf); font-weight: 400; font-size: 1.4rem; line-height: 1.25; }
.sec { padding: 34px 16px 6px; }
.sec > .lead { color: #fff; font-size: 1.06rem; font-weight: 700; margin: -4px 0 14px; text-align: center; }
.fine { margin: 0; padding: 0 4px 0 1.2em; color: #C7D4E3; font-size: .98rem; line-height: 1.55; }
.fine li { margin: 5px 0; }
.note { margin-top: 12px; font-size: .98rem; color: #C7D4E3; text-align: center; }

/* ---------- 홈 ---------- */
.hero { position: relative; overflow: hidden; padding: 18px 16px 0; text-align: center; background: #001B36; }
.sky { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.sky .tw { animation: tw 1.6s steps(2) infinite; }
.sky .tw2 { animation: tw 2.3s steps(2) infinite .7s; }
@keyframes tw { 50% { opacity: .25; } }
.hero .over { position: relative; color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: .02em; }
.hero h1 { position: relative; margin: 10px 0 0; line-height: 1; }
.hero h1 .l1 { display: block; font-family: var(--pf); font-weight: 400; font-size: 1.45rem; color: var(--cream); letter-spacing: .04em; }
.hero h1 img.title { display: block; width: 88%; max-width: 360px; height: auto; margin: 10px auto 0; }
.hero h1 .l2 { display: block; margin-top: 8px; font-family: var(--pf); font-weight: 400; font-size: 3.4rem; color: var(--yellow); text-shadow: 4px 4px 0 var(--red), 8px 8px 0 #000; }
.hero .slogan { position: relative; margin-top: 14px; color: #fff; font-size: 1.16rem; font-weight: 700; line-height: 1.4; }
.hero .hp { background: none; }
.stagewrap { position: relative; height: 164px; margin-top: 6px; }
.stagewrap .lanterns { position: absolute; top: 0; left: -4px; right: -4px; display: flex; justify-content: space-between; line-height: 0; }
.stagewrap .lanterns::before { content: ''; position: absolute; left: -16px; right: -16px; top: 0; height: 4px; background: #05182E; }
.stagewrap .lanterns .gap { flex: 0 0 46%; }
.stagewrap .hp { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); line-height: 0; }
.stagewrap .bubble {
  position: absolute; left: calc(50% + 50px); bottom: 104px;
  padding: 7px 11px; font-weight: 700; font-size: .98rem; line-height: 1.2; color: var(--ink); background: #fff; white-space: nowrap;
  box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink);
}
.stagewrap .bubble::after { content: ''; position: absolute; left: -12px; bottom: 6px; width: 8px; height: 8px; background: #fff; box-shadow: -4px 4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink); }
.stagewrap .ground { position: absolute; left: -16px; right: -16px; bottom: 0; height: 24px; background: #05182E; border-top: 4px solid var(--blue); }
.stagewrap .side { position: absolute; bottom: 28px; line-height: 0; }
.stagewrap .side.l { left: -6px; }
.stagewrap .side.r { right: -6px; }


.when { margin: 18px 12px 0; }
.when .row { display: flex; align-items: baseline; gap: 12px; padding: 8px 4px; border-bottom: 2px dashed var(--line); }
.when .row:last-child { border-bottom: 0; }
.when .k { flex: none; width: 3.4em; font-weight: 700; font-size: 1rem; color: #276FAD; }
.when .v { font-weight: 700; font-size: 1.16rem; line-height: 1.4; }
.when .v small { display: block; font-weight: 500; font-size: 1rem; color: var(--ink-2); }
.menu { display: grid; gap: 6px; padding: 18px 12px 0; }
.mrow { display: flex; align-items: center; gap: 14px; width: calc(100% - 8px); min-height: 84px; padding: 12px 12px 12px 14px; text-align: left; text-decoration: none; }
.mrow .mi { flex: none; width: 56px; height: 56px; display: grid; place-items: center; background: var(--navy); box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink); margin: 4px; }
.mrow .mt { flex: 1; min-width: 0; }
.mrow .mt b { display: block; font-size: 1.28rem; font-weight: 700; line-height: 1.3; }
.mrow .mt span { display: block; font-size: 1rem; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.mrow .go { flex: none; }
.mrow.main { background: var(--yellow); --sh: var(--gold-dk); }
.mrow.main .mt span { color: #4A3600; }
.mrow:active { transform: translateY(4px); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 14px; text-align: center; width: calc(100% - 8px); min-height: 156px; }
.tile .ic { width: 64px; height: 64px; display: grid; place-items: center; background: var(--navy); box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink); }
.tile b { font-weight: 700; font-size: 1.14rem; line-height: 1.3; }
.tile span { font-size: .96rem; color: var(--ink-2); line-height: 1.35; }



.prose p { color: #E3EAF3; margin-bottom: 12px; font-size: 1.04rem; }

.foot { margin-top: 28px; padding: 24px 16px 28px; background: var(--navy-deep); border-top: 4px solid var(--navy-2); font-size: .9rem; color: #A9BBD0; text-align: center; }
.foot img.logo { height: 44px; width: auto; margin-bottom: 12px; }
.foot p { margin-top: 6px; }
.foot .orgs b { color: var(--soft); }

/* ---------- 지도 ---------- */
#v-map.on { display: flex; flex-direction: column; height: calc(100vh - var(--head) - var(--tabs) - env(safe-area-inset-bottom, 0px)); height: calc(100dvh - var(--head) - var(--tabs) - env(safe-area-inset-bottom, 0px)); }
.mapscroll { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; background: #04213F; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.mapcanvas { position: relative; width: 100%; }
.road { position: absolute; top: 0; left: 34%; width: 32%; background: #05182E; border-left: 4px solid var(--blue); border-right: 4px solid var(--blue); }
.roadname { position: absolute; left: 34%; width: 32%; z-index: 1; text-align: center; font-weight: 700; font-size: .84rem; color: #7FB6F5; line-height: 1.3; pointer-events: none; }
.cross { position: absolute; left: 0; right: 0; height: 44px; background: #05182E; border-top: 4px solid var(--blue); border-bottom: 4px solid var(--blue); display: flex; align-items: center; padding: 0 12px; font-weight: 700; font-size: .9rem; color: #7FB6F5; }
.cross.e { left: 66%; }
.zoneband { position: absolute; left: 0; right: 0; }
.zoneband.alt { background: rgba(0, 122, 255, .07); }
.zonesign { position: absolute; left: 6px; padding: 3px 9px; font-weight: 700; font-size: .92rem; color: var(--ink); background: var(--yellow); z-index: 3; }
.barrier { position: absolute; left: 34%; width: 32%; height: 12px; z-index: 2; background: repeating-linear-gradient(90deg, var(--yellow) 0 10px, var(--ink) 10px 20px); }
.barrier.n span { top: -26px; }
.barrier span { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); white-space: nowrap; padding: 1px 6px; font-weight: 700; font-size: .8rem; color: var(--yellow); background: #05182E; }
.bld { position: absolute; width: 31%; display: flex; flex-direction: column; align-items: center; z-index: 2; text-align: center; line-height: 0; }
.bld.w { left: 1.5%; }
.bld.e { right: 1.5%; }
.bld.flash .names { animation: flash .5s steps(2) 6; }
@keyframes flash { 50% { background: var(--yellow); } }
.poi { position: absolute; z-index: 4; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -22px); }
.poi .pin { width: 44px; height: 44px; display: grid; place-items: center; background: var(--yellow); box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink); }
.poi.info .pin { background: var(--red); }
.poi .lb { margin-top: 8px; padding: 2px 7px; font-weight: 700; font-size: .9rem; line-height: 1.3; color: var(--ink); background: #fff; white-space: nowrap; box-shadow: 0 0 0 2px var(--ink); }
.poi.minor { transform: translate(-50%, -14px); }
.poi.minor .pin { width: 28px; height: 28px; background: var(--navy-3); box-shadow: 0 0 0 2px var(--sky); }
.poi.minor .lb { margin-top: 5px; padding: 0 5px; font-size: .8rem; color: var(--cream); background: #05182E; box-shadow: none; }
.poi.flash .lb { animation: flash .5s steps(2) 6; }
.walker { position: absolute; left: 50%; z-index: 6; transform: translate(-50%, -100%); pointer-events: none; transition: opacity .2s; line-height: 0; }
.maphint { position: sticky; bottom: 12px; z-index: 7; display: flex; justify-content: center; pointer-events: none; margin-top: -48px; height: 36px; }
.maphint span { padding: 6px 14px; font-weight: 700; font-size: .96rem; color: var(--ink); background: var(--yellow); animation: bob .8s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.mapend { position: absolute; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; pointer-events: none; }
.mapend span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-weight: 700; font-size: .96rem; color: var(--cream); background: var(--navy-3); }

/* ---------- 가게 ---------- */
.search { display: flex; align-items: center; gap: 8px; margin: 0 16px 8px; padding: 0 12px; height: 54px; background: #fff; color: var(--ink); box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; font: inherit; font-size: 1.1rem; font-weight: 700; color: var(--ink); background: transparent; }
.search input::placeholder { color: #8A7F74; font-weight: 500; }
.search button { flex: none; width: 44px; height: 44px; margin-right: -6px; display: grid; place-items: center; }
.count { padding: 12px 16px 0; font-size: 1.02rem; color: var(--soft); }
.count b { color: var(--yellow); font-size: 1.2rem; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 10px; padding: 12px 12px 16px; }
.card { display: flex; flex-direction: column; width: calc(100% - 8px); text-align: left; min-height: 176px; }
.card { --cc: #6F7C8C; --ct: #E7ECF1; --bd: var(--cc); background: #fff; }
.card[data-cat=food] { --cc: #C84D3D; --ct: #FBE3DD; }
.card[data-cat=pub] { --cc: #D98A0B; --ct: #FDEFC9; }
.card[data-cat=cafe] { --cc: #168E80; --ct: #D6F0EB; }
.card[data-cat=play] { --cc: #7D5BB5; --ct: #E9E1F5; }
.card[data-cat=life] { --cc: #276FAD; --ct: #DBE9F6; }
.card[data-cat=fit] { --cc: #3D9A52; --ct: #DDF1E0; }
.card .art { height: 76px; display: grid; place-items: center; position: relative; background: var(--ct); border-bottom: 4px solid var(--cc); }
.card .art .fl { position: absolute; right: 6px; top: 6px; padding: 1px 7px; font-weight: 700; font-size: .84rem; background: var(--cc); color: #fff; }
.card .body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card .mt { font-size: .96rem; color: var(--ink-2); }
.card .bd { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 6px; }
.empty { padding: 48px 24px; text-align: center; color: var(--soft); }
.empty b { display: block; font-size: 1.25rem; color: var(--cream); margin: 12px 0 4px; }

/* ---------- 한평이 찾기 ---------- */
.quest { padding: 22px 16px 8px; text-align: center; }
.quest h1 { font-family: var(--pf); font-weight: 400; font-size: 2.1rem; color: var(--yellow); text-shadow: 3px 3px 0 var(--red); line-height: 1.15; }
.quest .say { margin-top: 10px; color: #fff; font-size: 1.1rem; line-height: 1.5; }
.track { position: relative; margin: 58px 20px 0; }
.track .cells { display: grid; gap: 6px; }
.track .cell { height: 28px; background: var(--navy-2); box-shadow: 0 -4px 0 0 var(--navy-3), 0 4px 0 0 var(--navy-3), -4px 0 0 0 var(--navy-3), 4px 0 0 0 var(--navy-3); margin: 4px; }
.track .cell.on { background: var(--yellow); box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink); }
.track .runner { position: absolute; bottom: 36px; transform: translateX(-50%); transition: left .5s steps(5); line-height: 0; }
.track .goal { position: absolute; right: -6px; bottom: 40px; line-height: 0; }
.tally { margin-top: 12px; text-align: center; font-size: 1.12rem; font-weight: 700; color: #fff; }
.tally .num { display: block; font-family: var(--pf); font-weight: 400; font-size: 1.7rem; color: var(--cream); line-height: 1.2; }
.tally .num b { color: var(--yellow); font-weight: 400; font-size: 2.4rem; }
.items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; padding: 20px 14px 4px; }
.item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.item .slot { position: relative; width: 68px; height: 68px; display: grid; place-items: center; background: var(--navy-deep); box-shadow: 0 -4px 0 0 var(--navy-3), 0 4px 0 0 var(--navy-3), -4px 0 0 0 var(--navy-3), 4px 0 0 0 var(--navy-3); }
.item.found .slot { background: var(--paper); box-shadow: 0 -4px 0 0 var(--yellow), 0 4px 0 0 var(--yellow), -4px 0 0 0 var(--yellow), 4px 0 0 0 var(--yellow); }
.item.found .slot::after { content: ''; position: absolute; right: -8px; top: -8px; width: 22px; height: 22px; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M8 2h1v1H8zM7 3h1v1H7zM6 4h1v1H6zM5 5h1v1H5zM4 6h1v1H4zM3 5h1v1H3zM2 4h1v1H2zM4 7h1v1H4zM8 3h1v1H8zM7 4h1v1H7zM6 5h1v1H6zM5 6h1v1H5zM3 6h1v1H3zM2 5h1v1H2z'/%3E%3C/svg%3E") center/18px no-repeat; }
.item b { font-size: .94rem; color: #8FA6C0; }
.item.found b { color: #fff; }
.item.new .slot { animation: pop .5s steps(4); }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

.pass { margin: 20px 16px 0; padding: 20px 16px 16px; text-align: center; }
.pass .coin { position: relative; display: inline-block; animation: bob 1s steps(2) infinite; line-height: 0; }
.pass .coin .sp { position: absolute; }
.pass .coin .sp.a { left: -18px; top: 6px; animation: tw 1s steps(2) infinite; }
.pass .coin .sp.b { right: -20px; top: 40px; animation: tw 1.3s steps(2) infinite .4s; }
.pass .coin .sp.c { right: 4px; bottom: -12px; animation: tw 1.1s steps(2) infinite .2s; }
.pass h2 { font-family: var(--pf); font-weight: 400; font-size: 2rem; color: var(--red); margin-top: 12px; line-height: 1.15; }
.pass .tell { margin-top: 8px; font-size: 1.14rem; font-weight: 700; line-height: 1.45; }
.pass .code { margin: 14px auto 6px; display: inline-block; padding: 6px 18px; font-weight: 700; font-size: 2.1rem; letter-spacing: .2em; text-indent: .2em; background: var(--ink); color: var(--yellow); }
.pass .clock { font-size: 1rem; color: var(--ink-2); }
.pass.done .coin { animation: none; opacity: .35; filter: grayscale(1); }
.pass .sealmark { display: inline-block; margin-top: 10px; padding: 6px 16px; font-family: var(--pf); font-size: 1.7rem; color: var(--red); border: 4px solid var(--red); transform: rotate(-6deg); }


/* ---------- 시트·오버레이 ---------- */
.scrim { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; background: rgba(0, 8, 18, .72); opacity: 0; pointer-events: none; transition: opacity .15s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 61;
  width: min(100%, var(--col)); max-height: 88vh; max-height: 88dvh;
  transform: translate(-50%, 104%);
  transition: transform .2s steps(6);
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  border-top: 4px solid var(--ink);
}
.sheet.on { transform: translate(-50%, 0); }
.sheet .shd { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 16px 12px 12px 16px; border-bottom: 2px dashed var(--line); }
.sheet .shd .ic { flex: none; width: 56px; height: 56px; display: grid; place-items: center; background: var(--navy); box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink); margin: 4px; }
.sheet .shd .tt { flex: 1; min-width: 0; }
.sheet .shd h2 { font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
.sheet .shd p { font-size: 1.02rem; color: var(--ink-2); margin-top: 2px; }
.sheet .x { flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 1.3rem; line-height: 1; }
.sheet .sbd { overflow-y: auto; padding: 14px 12px calc(20px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; }
.kv { display: grid; grid-template-columns: 3.6em 1fr; gap: 8px 10px; padding: 4px 4px 14px; font-size: 1.08rem; margin: 0; }
.kv dt { font-weight: 700; color: var(--red); font-size: 1rem; padding-top: 1px; }
.kv dd { margin: 0; font-weight: 700; line-height: 1.45; }
.kv dd small { display: block; font-weight: 500; color: var(--ink-2); font-size: .98rem; }
.list { display: grid; gap: 10px; padding: 4px 0 8px; }
.li { display: flex; align-items: center; gap: 12px; width: calc(100% - 8px); padding: 10px 12px; text-align: left; min-height: 64px; }
.li .ic2 { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--navy-2); color: var(--yellow); font-family: var(--pf); font-size: 1.2rem; }
.li .tx { flex: 1; min-width: 0; }
.li .tx b { display: block; font-size: 1.12rem; line-height: 1.3; }
.li .tx span { display: block; font-size: .98rem; color: var(--ink-2); line-height: 1.4; }
.li .go { margin-left: auto; flex: none; display: flex; gap: 4px; align-items: center; }
.plain { padding: 0 4px 10px; font-size: 1.06rem; }
.plain p { margin-bottom: 8px; }
.plain ul { margin: 6px 0 10px; padding-left: 1.2em; }
.plain li { margin: 4px 0; }
.tip { padding: 10px 12px; background: #F1E7CC; font-size: 1rem; color: var(--ink-2); margin: 0 4px 12px; }

.pinpad { padding: 4px 4px 8px; text-align: center; }
.pindots { display: flex; justify-content: center; gap: 14px; margin: 10px 0 16px; }
.pindots i { width: 24px; height: 24px; background: #E4D8BC; }
.pindots i.on { background: var(--ink); }
.pinerr { min-height: 1.6em; color: var(--red); font-weight: 700; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
.keys .btn { min-height: 64px; font-size: 1.7rem; }
.keys .btn.navy { font-size: 1.1rem; }

.got {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 80;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center; overflow: hidden;
  background: var(--navy-deep);
}
.got.on { display: flex; }
.got > * { position: relative; }
.got .big { padding: 20px; line-height: 0; background: var(--paper); box-shadow: 0 -8px 0 0 var(--yellow), 0 8px 0 0 var(--yellow), -8px 0 0 0 var(--yellow), 8px 0 0 0 var(--yellow); animation: pop .6s steps(5); }
.got h2 { font-family: var(--pf); font-weight: 400; font-size: 2.2rem; color: var(--yellow); text-shadow: 3px 3px 0 var(--red); line-height: 1.2; }
.got p { font-size: 1.2rem; font-weight: 700; color: #fff; line-height: 1.45; }
.got .btn { max-width: 320px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + 20px); z-index: 90; transform: translateX(-50%); max-width: min(92%, 440px); padding: 12px 16px; font-weight: 700; background: var(--ink); color: #fff; box-shadow: 0 0 0 4px var(--yellow); opacity: 0; pointer-events: none; transition: opacity .15s; text-align: center; }
.toast.on { opacity: 1; }

@media (min-width: 520px) {
  body { background: #000814; }
}
@media (max-width: 359px) {
  html { font-size: 16px; }
  .hero h1 .l2 { font-size: 3rem; }
  .items { padding-left: 8px; padding-right: 8px; }
  .item .slot { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 한평이 찾는 방법: 리플렛의 번호 상자 */
.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 12px; align-items: center; padding: 2px 4px; }
.step .n { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--pf); font-size: 1.7rem; line-height: 1; background: #276FAD; color: var(--yellow); }
.step b { display: block; font-size: 1.14rem; font-weight: 700; line-height: 1.35; }
.step p { font-size: 1rem; color: var(--ink-2); line-height: 1.45; margin-top: 1px; }

/* 마패 선물: 리플렛의 '쿠폰 1개 선택' 세 장 */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gcard { --gc: #276FAD; display: flex; flex-direction: column; min-width: 0; text-align: center; background: #fff; color: var(--ink); border: 3px solid var(--gc); }
.gcard.b { --gc: #C84D3D; }
.gcard.c { --gc: #168E80; }
.gcard h3 { display: flex; align-items: center; justify-content: center; min-height: 3em; margin: 0; padding: 4px 2px; background: var(--gc); color: #fff; font-size: 1rem; font-weight: 700; line-height: 1.25; }
.gcard .gi { height: 56px; display: grid; place-items: center; margin-top: 8px; }
.gcard p { padding: 6px 4px 8px; font-size: .94rem; font-weight: 700; line-height: 1.35; }
.gcard small { display: block; margin: auto 6px 0; padding: 6px 0 8px; border-top: 2px solid var(--gc); color: var(--gc); font-size: .88rem; font-weight: 700; line-height: 1.3; }
.or { display: block; margin: 12px 0 0; text-align: center; color: #fff; font-weight: 700; font-size: 1.04rem; }

/* 골목 소개 */
.alley p { color: #E3EAF3; font-size: 1.06rem; margin-bottom: 12px; }
.alley .say, .sec > .lead, .hero .slogan, .quest .say, .got p, .pass .tell, .note { text-wrap: balance; }
.alley .say { color: #fff; font-weight: 700; font-size: 1.2rem; line-height: 1.45; text-align: center; margin-bottom: 14px; }
.alley .sum { color: var(--yellow); font-weight: 700; text-align: center; }

/* 가게: 고르는 단추는 잘리지 않게 여러 줄로 */
.shopbar { background: var(--navy); padding: 12px 0 4px; }
.shopbar .chips { flex-wrap: wrap; overflow: visible; gap: 8px 6px; padding: 4px 14px 8px; }
.card .nm { font-size: 1.12rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.totop { position: fixed; right: max(12px, calc(50% - var(--col) / 2 + 12px)); bottom: calc(var(--tabs) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 35; width: 56px; height: 56px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: .9rem; line-height: 1.1; box-shadow: 0 0 0 4px var(--ink); }

/* 지도 위 단추 4개: 한 줄에 다 보이게 */
.mapbar { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 10px 8px; background: var(--navy); border-bottom: 4px solid var(--navy-2); z-index: 5; }
.mapbar .chip { margin: 2px; padding: 0 2px; justify-content: center; min-height: 48px; font-size: .98rem; white-space: normal; line-height: 1.15; text-align: center; }
.mapbar .chip.find { background: var(--yellow); color: var(--ink); box-shadow: 0 -2px 0 0 var(--ink), 0 2px 0 0 var(--ink), -2px 0 0 0 var(--ink), 2px 0 0 0 var(--ink); }
.bld .names { display: block; width: 100%; margin-top: 4px; padding: 5px 3px 6px; background: var(--paper); color: var(--ink); line-height: 1.3; box-shadow: 0 0 0 2px var(--ink); }
.bld .names b { display: block; font-size: .92rem; overflow-wrap: anywhere; }
.bld .names em { display: block; font-style: normal; font-weight: 700; font-size: .86rem; color: #276FAD; margin-top: 2px; }

/* 한평이 찾기 */
.practice { margin: 12px 12px 0; padding: 10px 12px; background: #fff; color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.35; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 0 0 4px #7D5BB5; }
.practice button { flex: none; height: 40px; padding: 0 12px; background: #7D5BB5; color: #fff; font-weight: 700; font-size: .96rem; }
.coach { margin: 18px 0 -8px; text-align: center; line-height: 0; }
.coach span { display: inline-block; padding: 7px 14px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 1.06rem; line-height: 1.3; animation: bob .8s steps(2) infinite; }
.trybox { margin: 8px 12px 0; text-align: center; }
.trybox b { display: block; font-size: 1.16rem; }
.trybox p { font-size: 1rem; color: var(--ink-2); line-height: 1.45; margin: 4px 0 10px; }
.how { margin: 16px 12px 0; }
.how b.t { display: block; font-size: 1.12rem; margin-bottom: 4px; }
.how ol { padding-left: 1.3em; margin: 0; font-size: 1.04rem; color: var(--ink); }
.how li { margin: 5px 0; }
.result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; text-align: center; color: #fff; }
.result b { display: block; font-family: var(--pf); font-weight: 400; font-size: 1.9rem; color: var(--yellow); line-height: 1.2; }

/* 프로그램 자세히: 사진·시간·장소 */
.li .ph { flex: none; width: 104px; height: 78px; object-fit: cover; background: #E9E0CC; box-shadow: 0 0 0 2px var(--ink); }
.li .ex { flex: none; width: 80px; height: 80px; object-fit: contain; background: #fff; }
.li .tx .pl { color: #276FAD; font-weight: 700; }
.li .tx .tm { display: inline-block; margin-top: 5px; padding: 2px 8px; background: #081D38; color: var(--yellow); font-style: normal; font-weight: 700; font-size: .96rem; line-height: 1.3; }
.scene { position: relative; width: 256px; height: 184px; margin: 2px auto 14px; line-height: 0; }
.scene .th { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
.scene .hh { position: absolute; left: calc(50% + 44px); bottom: 0; }

/* 찾았다! 잔치 화면: 색동 띠 · 청사초롱 · 장구 · 색종이 · 덩실덩실 (방사형 햇살 무늬는 쓰지 않는다) */
.got .sd { position: absolute; left: 0; right: 0; height: 20px; background: repeating-linear-gradient(90deg, #C81F20 0 14px, #FFDD2E 14px 28px, #3BB273 28px 42px, #007AFF 42px 56px, #FF8FA3 56px 70px, #FFFFFF 70px 84px, #8B50A4 84px 98px); }
.got .sd.t { top: 0; }
.got .sd.b { bottom: 0; }
.got .lan { position: absolute; top: 20px; left: 0; right: 0; display: flex; justify-content: space-around; padding: 0 8px; line-height: 0; }
.got .lan::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: #05182E; }
.got .lan img:nth-child(odd) { animation: lsw 1.2s steps(1) infinite; }
.got .lan img:nth-child(even) { animation: lsw 1.2s steps(1) infinite .6s; }
@keyframes lsw { 0% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.got .cf { position: absolute; top: -14px; animation: cfall linear infinite; }
@keyframes cfall { to { transform: translateY(110vh); } }
.got .row { display: flex; align-items: flex-end; justify-content: center; gap: 10px; line-height: 0; }
.got .jg { animation: jgb .76s steps(1) infinite; }
.got .jg.r { animation-delay: .38s; }
@keyframes jgb { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.got .dance { display: inline-block; animation: dsway 1.52s steps(1) infinite; }
@keyframes dsway { 0% { transform: translate(-8px, 0); } 25% { transform: translate(0, -6px); } 50% { transform: translate(8px, 0); } 75% { transform: translate(0, -6px); } }
.got .uls { font-family: var(--pf); font-size: 1.5rem; line-height: 1.2; color: var(--yellow); text-shadow: 2px 2px 0 var(--red); animation: tw 1.52s steps(2) infinite; }

/* ===== 정리: 여백을 줄이고, 같은 말을 되풀이하지 않고, 한 화면에 더 담는다 ===== */
.bigbtn { min-height: 44px; font-size: .94rem; }
.hero { padding-top: 14px; }
.stagewrap { height: 150px; margin-top: 4px; }
.stagewrap .lanterns .gap { flex: 1 1 auto; }
.stagewrap .bubble { bottom: 80px; }
html.big .stagewrap .bubble { left: auto; right: 2px; }
.when { margin-top: 14px; }
.when .row { padding: 6px 4px; }
.menu { gap: 14px; padding-top: 16px; }
.mrow { min-height: 72px; padding: 8px 10px 8px 12px; gap: 12px; }
.mrow .mi { width: 48px; height: 48px; }
.mrow .mt b { font-size: 1.24rem; }
.sec { padding: 26px 16px 4px; }
.label span { background: #FFD23D; }
.tile { gap: 6px; padding: 10px 4px 10px; min-height: 0; }
.tile .ic { flex: none; width: 48px; height: 48px; }
.tile .tb { display: block; min-width: 0; }
.tile .tb b { display: block; font-size: 1.06rem; line-height: 1.25; white-space: nowrap; }
.tile .tb span { display: block; font-size: .9rem; color: var(--ink-2); line-height: 1.3; margin-top: 1px; white-space: nowrap; letter-spacing: -.02em; }
html.big .tile .tb b, html.big .tile .tb span { white-space: normal; }
.steps.frame { display: block; }
.steps .step { padding: 8px 2px; }
.steps .step + .step { border-top: 2px dashed var(--line); }
.step .n { width: 40px; height: 40px; font-size: 1.5rem; }
.gcard { border-width: 4px; }
.gcard h3 { min-height: 0; padding: 6px 1px; font-size: .98rem; }
.gcard .gi { height: 48px; margin-top: 6px; }
.gcard p { padding: 4px 2px 6px; font-size: .92rem; }
.gcard small { margin: auto 2px 0; padding: 5px 0 6px; font-size: .8rem; letter-spacing: -.02em; white-space: nowrap; }
html.big .trio:not(.mini) { grid-template-columns: 1fr; gap: 12px; }
.trio.mini { width: 100%; max-width: 320px; margin: 0 auto; gap: 6px; }
.trio.mini .gcard { border-width: 3px; }
.trio.mini .gcard h3 { font-size: .86rem; padding: 4px 1px; }
.trio.mini .gcard .gi { height: 40px; margin: 4px 0; }
.fine li { text-wrap: balance; }
.fine.ink, .note.ink { color: var(--ink-2); }
.lead.center { text-align: center; }
.alley .say { margin-bottom: 10px; }

.cards { gap: 16px 10px; padding: 10px 12px 16px; }
.card { min-height: 0; }
.card .art { height: 52px; }
.card .art .on { position: absolute; right: 4px; top: 4px; padding: 1px 6px; font-size: .78rem; font-weight: 700; line-height: 1.4; background: #1E57C8; color: #fff; }
.card .body { padding: 8px 8px 10px; gap: 1px; }
.card .mt { font-size: .94rem; }

.sheet .shd { padding: 12px 10px 10px 14px; }
.sheet .shd .ic { width: 48px; height: 48px; }
.kv { padding: 2px 2px 10px; }
.kv dt { color: #276FAD; }
.pic { text-align: center; line-height: 0; margin: 0 0 8px; }
.lt { margin: 6px 4px 8px; font-weight: 700; font-size: 1.02rem; }
.li { padding: 8px 10px; gap: 10px; min-height: 56px; }
.li .ph { width: 76px; height: 57px; }
.li .ex { width: 72px; height: 72px; }
.tt2 { flex: none; width: 66px; text-align: center; font-family: var(--pf); font-size: 1.3rem; line-height: 1.05; color: #081D38; white-space: nowrap; }
.tt2 i { display: block; font-family: var(--bf); font-style: normal; font-weight: 700; font-size: .78rem; color: #276FAD; margin-bottom: 2px; }

.poi.minor { transform: translate(-50%, -18px); }
.poi.minor .pin { width: 36px; height: 36px; }
.bld .names b { font-size: 15px; }
.bld .names em { font-size: 14px; }
.mapnote { position: absolute; left: 0; right: 0; margin: 0; text-align: center; font-size: .9rem; color: #9DB2CB; }
.mapbar.three { grid-template-columns: repeat(3, 1fr); }

.items { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; padding: 16px 12px 4px; }
.item { width: 72px; }
.hpbig { text-align: center; padding: 8px 0 0; line-height: 0; }
.more { text-align: center; margin: 18px 0 8px; }
.more button { min-height: 48px; padding: 0 16px; color: var(--yellow); font-weight: 700; font-size: 1.02rem; text-decoration: underline; }
.warn { margin: 12px 12px 0; padding: 10px 12px; background: #fff; color: var(--ink); font-weight: 700; font-size: .98rem; line-height: 1.4; box-shadow: 0 0 0 4px var(--red); }
.pass .cl { margin-top: 10px; font-size: .9rem; font-weight: 700; color: var(--ink-2); }
.pass .code { margin-top: 2px; }
.trybox { margin-top: 22px; }

.got { gap: 10px; }
.got p { white-space: pre-line; }
.got .big { box-shadow: 0 -8px 0 0 var(--ac, #FFDD2E), 0 8px 0 0 var(--ac, #FFDD2E), -8px 0 0 0 var(--ac, #FFDD2E), 8px 0 0 0 var(--ac, #FFDD2E); }
.got .dance.hop { animation: dhop .76s steps(1) infinite; }
@keyframes dhop { 0% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.got .dance.run { animation: drun 1.52s steps(1) infinite; }
@keyframes drun { 0% { transform: translateX(-14px); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(14px); } }
.got .dance.dance2 { animation: dsway 1.52s steps(1) infinite reverse; }
.got .gl { font-size: 1.06rem; color: var(--yellow); }

/* ===== 가볍게: 아이콘은 그림만 둔다. 남색 상자는 가장 중요한 한 곳(한평이를 찾아라)에만 ===== */
.mrow .mi, .tile .ic, .sheet .shd .ic { width: 52px; height: 52px; margin: 0; background: none; box-shadow: none; }
.mrow.main .mi { width: 48px; height: 48px; margin: 4px; background: var(--navy); box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink); }
.li .ic2 { background: none; }
.poi.minor .pin { background: none; box-shadow: none; }
.tile { padding-top: 12px; }

/* 강조는 느낌표 대신 굵은 색 글씨로. 어두운 바탕은 노랑, 밝은 바탕은 빨강 */
.hl { font-weight: 700; color: var(--yellow); }
.frame .hl, .pb .hl, .sheet .hl, .pass .hl, .who .hl, .warn .hl, .tip .hl, .fine.ink .hl, .note.ink .hl { color: var(--red); }
.fine li, .plain li { line-height: 1.5; }

/* 한평이 소개 말풍선 */
.who { display: flex; align-items: flex-end; gap: 16px; margin: 12px 16px 0; }
.who .wh { flex: none; line-height: 0; }
.who .wb { position: relative; flex: 1; min-width: 0; margin: 4px 4px 26px 0; padding: 10px 12px 11px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink); }
.who .wb::after { content: ''; position: absolute; left: -12px; bottom: 10px; width: 8px; height: 8px; background: #fff; box-shadow: -4px 4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink); }
.who .wb > b { display: block; margin-bottom: 4px; font-family: var(--pf); font-weight: 400; font-size: 1.3rem; line-height: 1.2; color: #276FAD; }
.who .wb p { font-size: 1.02rem; line-height: 1.45; }
.step p .hl, .li .tx span .hl, .tile .tb .hl, .mrow .mt .hl { display: inline; font-size: inherit; line-height: inherit; }
.nb { white-space: nowrap; }
.plain p, .tip, .sheet .shd p, .fine li, .who .wb p, .quest .say, .got p { text-wrap: pretty; }
.who .wb p + p { margin-top: 2px; }
/* 행사 날에는 길 위의 작은 한평이가 말한다: 꼬리가 아래를 본다 */
.who.solo { margin: 12px 16px 0; }
.who.solo + .track { margin-top: 88px; }
.who.solo .wb { margin: 4px 4px 12px; }
.who.solo .wb::after { left: 20px; bottom: -12px; box-shadow: -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), 0 4px 0 0 var(--ink); }
.alley p, .step p, .trybox p { text-wrap: pretty; }

/* 가게 카드: 업종 그림을 크게 */
.card .art { height: 64px; }
.card .art:has(.on) img { transform: translateX(-16px); }
/* 가운뎃점으로 이은 한 줄: 줄이 바뀌면 줄 앞의 점은 잘려서 안 보인다 */
.sheet .shd p { overflow: hidden; }
.dl { display: flex; flex-wrap: wrap; margin-left: -1em; }
.dl .nb { position: relative; padding-left: 1em; }
.dl .nb::before { content: '·'; position: absolute; left: .32em; }

/* ===== 등신대 6종: 모음판과 찾았다 화면 ===== */
.items { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; gap: 16px 8px; padding: 18px 12px 4px; }
.item { width: auto; gap: 8px; }
.item .slot { width: 96px; height: 96px; }
.item b { font-size: 1rem; white-space: nowrap; }
button.item.found { cursor: pointer; }
@media (max-width: 359px) { .item .slot { width: 88px; height: 88px; } }

.got { overflow-x: hidden; overflow-y: auto; justify-content: safe center; }
.got .saybox { position: relative; width: 100%; max-width: 320px; margin-top: 8px; padding: 10px 12px 11px; background: #fff; color: var(--ink); text-align: center;
  box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink); }
.got .saybox::before { content: ''; position: absolute; left: 50%; top: -12px; width: 8px; height: 8px; margin-left: -4px; background: #fff; box-shadow: -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), 0 -4px 0 0 var(--ink); }
.got .saybox > b { display: block; margin-bottom: 3px; font-family: var(--pf); font-weight: 400; font-size: 1.4rem; line-height: 1.25; color: #276FAD; }
.got .saybox p { font-size: 1.04rem; font-weight: 500; line-height: 1.45; color: var(--ink); }
.got .saybox .hl { color: var(--red); }
.got h2 { font-size: 2rem; }
.got .big { padding: 14px 18px; }

/* ===== 색 줄이기: 남색·노랑·크림·먹색만으로. 빨강은 완성 도장과 운영부스처럼 꼭 필요한 곳에만 ===== */
/* 강조: 밝은 바탕에서는 색 없이 굵게만, 어두운 바탕에서는 노랑 */
.frame .hl, .pb .hl, .sheet .hl, .pass .hl, .who .hl, .warn .hl, .tip .hl, .fine.ink .hl, .note.ink .hl, .got .saybox .hl { color: inherit; }
.who .wb > b, .got .saybox > b { color: var(--ink); }
.when .k, .kv dt, .li .tx .pl, .bld .names em, .tt2 i { color: var(--ink-2); }
.step .n { background: #081D38; }
/* 가게 카드: 종류별 여섯 색을 없애고 한 가지 바탕으로 */
.card, .card[data-cat] { --cc: var(--ink); --ct: #F3EAD2; }
.card .art { border-bottom: 0; }
.card .art .on, .badge.on { background: #0B2A4A; color: #fff; }
/* 마패 선물 세 장: 머리띠를 남색 하나로 */
.gcard, .gcard.b, .gcard.c { --gc: #081D38; }
.gcard h3 { color: var(--yellow); }
/* 버튼: 초록을 빼고 노랑 하나로 */
.btn.green { --bg: var(--yellow); --fg: var(--ink); --dp: var(--gold-dk); }
.practice button { background: #081D38; color: var(--yellow); }
/* 찾았다 화면: 테두리는 늘 노랑, 색동 띠는 위에만 가늘게 */
.got .sd { height: 12px; }
.got .lan { top: 12px; }
.got .gbtns { width: 100%; max-width: 328px; display: grid; gap: 10px; margin-top: 2px; }
.got .gbtns .btn { max-width: none; }
/* 가게 자랑거리 한 문장 */
.brag { margin: 0 4px 12px; padding: 10px 12px; background: #F3EAD2; font-size: 1.12rem; font-weight: 700; line-height: 1.4; color: var(--ink); text-wrap: balance; }

/* ===== 찾았다 화면 다듬기: 장식은 따로 가두고, 내용은 초롱 아래에서 시작 ===== */
.got { display: none; justify-content: flex-start; gap: 0; padding: 0; overflow-x: hidden; overflow-y: auto; }
.got.on { display: flex; }
.got .fx { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; pointer-events: none; }
.got .gin { position: relative; width: 100%; margin: auto; padding: 24px 24px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.got.party .gin { padding-top: 86px; }
.got .uls { animation: none; }
.got .gbtns { position: sticky; bottom: 0; padding: 8px 0 4px; background: var(--navy-deep); }
@media (max-height: 700px) {
  .got .lan { display: none; }
  .got.party .gin { padding-top: 30px; }
}
.bigbtn { white-space: nowrap; }
.poi:not(.minor) .lb { max-width: 30vw; white-space: normal; text-align: center; }

/* ===== 직원 확인: 선물 고르기 / 마패권 가게 / 가게 음식 사진 ===== */
.choose { display: grid; gap: 12px; padding: 4px 4px 8px; }
.choose .lead { margin: 0 0 2px; text-align: center; font-size: 1.16rem; font-weight: 700; color: var(--ink); }
.choose .btn { min-height: 64px; font-size: 1.2rem; }
.paynote { margin: 4px 16px 0; padding: 8px 12px; background: var(--yellow); color: var(--ink); font-size: 1rem; font-weight: 500; text-align: center; }
.paynote b { font-weight: 700; }
.shot { display: flex; align-items: center; gap: 12px; margin: 0 4px 12px; }
.shot img { flex: none; width: 132px; height: 99px; object-fit: cover; background: #E9E0CC; box-shadow: 0 0 0 2px var(--ink); }
.shot span { font-size: 1.06rem; font-weight: 700; line-height: 1.35; color: var(--ink); }

/* ===== 만족도 조사 / 카카오 확인 ===== */
.btn.kakao { --bg: #FEE500; --fg: #191919; --bd: #191919; --dp: #C9B400; margin-top: 12px; }
.btn.kakao .kks { flex: none; width: 22px; height: 20px; background: #191919; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M11 1C5.5 1 1 4.5 1 8.8c0 2.8 1.9 5.2 4.700 6.600L4.700 19l4-2.600c.700.100 1.500.200 2.300.200 5.500 0 10-3.500 10-7.800S16.500 1 11 1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M11 1C5.5 1 1 4.5 1 8.8c0 2.8 1.9 5.2 4.700 6.600L4.700 19l4-2.600c.700.100 1.500.200 2.300.200 5.500 0 10-3.500 10-7.800S16.500 1 11 1z'/%3E%3C/svg%3E") center / contain no-repeat; }
.kkok { margin-top: 12px; padding: 8px 12px; background: #F3EAD2; font-weight: 700; font-size: 1.04rem; }

/* ===== 앱 안 QR 찍기(js/scan.js): 찾기 화면의 단추와 카메라 덮개 ===== */
.toast { z-index: 100; }   /* 덮개(90) 위에서도 보이게 */
.scanbox { padding: 16px 16px 0; text-align: center; }
.scanbox .btn { max-width: 340px; margin-left: auto; margin-right: auto; }
.scanbox .btn img { flex: none; }
.scanbox .alt { margin: -2px 0 2px; font-size: .96rem; color: #C7D4E3; }
.scanbox .btn.cream.sm { margin-top: 10px; }
#scan { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 90; display: flex; flex-direction: column; background: var(--navy-deep); color: var(--cream); }
#scan .sc-top { flex: none; margin: 0; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 12px; text-align: center; font-weight: 700; font-size: 1.12rem; line-height: 1.4; color: #fff; text-wrap: balance; }
#scan .sc-cam { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #000; }
#scan video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
#scan .sc-box { position: absolute; left: 50%; top: 50%; width: min(72vw, 300px, 46vh); height: min(72vw, 300px, 46vh); transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgba(0, 16, 31, .5); pointer-events: none; }
#scan .sc-box i { position: absolute; width: 40px; height: 40px; border: 0 solid var(--yellow); }
#scan .sc-box i:nth-child(1) { top: -8px; left: -8px; border-top-width: 8px; border-left-width: 8px; }
#scan .sc-box i:nth-child(2) { top: -8px; right: -8px; border-top-width: 8px; border-right-width: 8px; }
#scan .sc-box i:nth-child(3) { bottom: -8px; left: -8px; border-bottom-width: 8px; border-left-width: 8px; }
#scan .sc-box i:nth-child(4) { bottom: -8px; right: -8px; border-bottom-width: 8px; border-right-width: 8px; }
#scan .sc-box::after { content: ''; position: absolute; left: 12px; right: 12px; top: 10%; height: 4px; background: var(--yellow); opacity: .75; animation: scline 1.8s steps(10) infinite alternate; }
@keyframes scline { to { top: calc(90% - 4px); } }
#scan.fail .sc-box { display: none; }
#scan .sc-msg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 20px; text-align: center; background: var(--navy); }
#scan .sc-msg .sc-art { line-height: 0; }
#scan .sc-msg p { margin: 0; max-width: 320px; font-size: 1.16rem; font-weight: 700; line-height: 1.5; color: #fff; text-wrap: balance; }
#scan .sc-msg small { display: block; max-width: 320px; font-size: 1rem; line-height: 1.45; color: #C7D4E3; }
#scan .sc-btns { flex: none; display: flex; gap: 12px; padding: 14px 16px 4px; }
#scan .sc-btns .btn { flex: 1 1 0; width: auto; min-width: 0; }
#scan .sc-foot { flex: none; margin: 0; padding: 0 16px calc(14px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: .96rem; line-height: 1.4; color: #C7D4E3; }

/* ---------- 한평이 찾기: 6칸이 맨 위, 누르면 카메라 ---------- */
.quest + .items, .coach + .items { padding-top: 10px; }
.items.cam .item[data-slot] .slot::before { content: ''; position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cpath fill='%23F9BE00' d='M0 0h4v1H1v3H0zM6 0h4v4H9V1H6zM0 6h1v3h3v1H0zM9 6h1v4H6V9h3z'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .9; }
.item[data-slot]:active .slot { transform: translateY(2px); }
.scanbox { padding-top: 14px; }
.scanbox + .track { margin-top: 76px; }
.coach + .items + .track { margin-top: 70px; }
.sharebox { padding: 14px 12px 0; text-align: center; }
.sharebox .btn { max-width: 340px; margin-left: auto; margin-right: auto; }
.sharebox .btn img { flex: none; }
.urlbox { margin: 4px 0 14px; padding: 14px 12px; background: #fff; color: var(--ink); font-weight: 700; font-size: 1.1rem; line-height: 1.4; word-break: break-all; text-align: center; -webkit-user-select: all; user-select: all; box-shadow: 0 0 0 4px var(--ink); }
.warn button { display: block; width: 100%; min-height: 48px; margin-top: 8px; background: var(--navy-deep); color: var(--yellow); font-weight: 700; font-size: 1rem; }
.scanbox .alt { text-wrap: balance; }
.tab .dot { white-space: nowrap; }
.tab .dot.word { left: auto; right: 2px; top: 4px; }
/* PC 처럼 넓은 화면에서는 카메라 화면도 가운데 한 줄 너비로 */
#scan { max-width: var(--col); margin: 0 auto; box-shadow: 0 0 0 100vmax #000B16; }
.choose .btn small { font-size: .98rem; font-weight: 700; color: var(--ink-2); }
/* ---------- 실제 손가락·자판을 생각한 다듬기 ----------
   단추를 빠르게 연달아 눌러도 화면이 확대되지 않게, 길게 눌러도 글자 선택 풍선이 뜨지 않게 */
button, .btn, .tab, .chip, .mrow, .tile, .gcard, .item { touch-action: manipulation; }
.keys .btn, .choose .btn, .tab, .item, #scan .btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.keys .btn:active { transform: translateY(3px); filter: brightness(.92); }
.pinerr { text-wrap: balance; line-height: 1.4; }
/* 직원 번호판·선물 고르기: 스크롤 없이 한 화면에. 주소창·아래 막대를 뺀 실제 높이(600px 안팎)와 작은 휴대폰, 가로로 눕힌 휴대폰을 기준으로 줄인다 */
.sheet.pin { max-height: 96vh; max-height: 96dvh; }
.sheet.pin .sbd { overscroll-behavior: contain; }
/* 안내 글은 늘 두 줄 자리를 잡아 둔다: 틀린 번호 안내가 떠도 숫자 단추가 밀리지 않게 */
.pinpad .pinerr { min-height: 2.8em; display: flex; align-items: center; justify-content: center; }
.pinpad .pinerr i { display: block; height: 0; overflow: hidden; font-style: normal; }   /* '가 · 나'를 두 줄로: 점은 감추고 줄만 바꾼다 */
.pinpad .keys .btn.navy { padding-left: 4px; padding-right: 4px; white-space: nowrap; }
.choose .btn small i { font-style: normal; }
#pinDots:focus, .choose .lead:focus { outline: 0; }
/* 새로 뜬 단추 묶음을 잠깐 눌리지 않게(빠르게 두 번 누른 손가락이 같은 자리의 새 단추에 닿지 않게 · js/app.js holdNew) */
.hold .btn { pointer-events: none; }
@media (max-height: 720px) {
  .sheet.pin .shd { padding-top: 10px; padding-bottom: 8px; }
  .sheet.pin .sbd { padding-top: 8px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .pinpad .pindots { margin: 4px 0 8px; }
  .pinpad .pindots i { width: 20px; height: 20px; }
  .pinpad .keys { gap: 12px 8px; }
  .pinpad .keys .btn { min-height: 52px; font-size: 1.5rem; }
  .pinpad .keys .btn.navy { font-size: 1.04rem; }
  .choose { gap: 10px; }
  .choose .btn { min-height: 56px; font-size: 1.12rem; }
}
@media (max-height: 600px) {
  .sheet.pin .shd p { display: none; }
  .pinpad .keys { gap: 10px 8px; }
  .pinpad .keys .btn { min-height: 46px; font-size: 1.36rem; }
  .choose .btn { min-height: 50px; }
}
/* 가로로 눕힌 휴대폰: 숫자는 여섯 칸씩 두 줄, 선물 셋은 한 줄 */
@media (max-height: 480px) and (orientation: landscape) {
  .sheet.pin { max-height: 100vh; max-height: 100dvh; }
  .sheet.pin .shd { padding-top: 6px; padding-bottom: 6px; }
  .sheet.pin .sbd { padding-top: 4px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .pinpad { padding-bottom: 0; }
  .pinpad .pindots { margin: 2px 0 4px; }
  .pinpad .keys { grid-template-columns: repeat(6, 1fr); gap: 2px 6px; }
  .pinpad .keys .btn { min-height: 44px; padding: 4px 6px; }
  .choose { grid-template-columns: repeat(3, 1fr); gap: 2px 6px; padding-bottom: 0; }
  .choose .lead, .choose [data-close] { grid-column: 1 / -1; }
  .choose .btn { min-height: 48px; flex-direction: column; gap: 0; padding: 4px 6px; }
  .choose .btn small i { display: none; }   /* 이름 아래 줄로 내려가므로 앞의 점은 뺀다 */
}

/* ---------- 덮개가 떠 있을 때 ---------- */
/* 카메라 덮개: 알림 글이 아래의 닫기 단추와 네모 틀을 덮지 않게 맨 위(안내 글 자리)에 띄운다 */
html.scanning .toast { bottom: auto; top: calc(8px + env(safe-area-inset-top, 0px)); }
.got, .sheet .sbd { overscroll-behavior: contain; }

/* ---------- 가게 찾기 ---------- */
/* 글자를 넣는 동안에는 종류 단추를 접어 결과가 입력칸 바로 아래(화면 자판 위)에 보이게 */
#v-shops.typing .chips { display: none; }
/* 지우기 X 는 우리 것 하나만(크롬이 넣는 작은 X 는 숨긴다). 입력칸에 초점이 가면 상자에 노란 테 */
.search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search:focus-within { outline: 3px solid var(--yellow); outline-offset: 6px; }

/* ---------- 지도 ---------- */
/* 지도 탭에서는 지도 칸만 움직인다: 문서가 8px 남아 따라 움직이던 것과, 지도를 당기다 새로 고침이 걸리는 것을 막는다 */
#v-map.on { margin-bottom: -8px; }
.mapscroll { overscroll-behavior: contain; }

/* ---------- 손가락 ---------- */
/* 빠르게 두 번 눌러도 확대되지 않게(단추 사이 틈·덮개 포함), 그림을 길게 눌러도 저장 메뉴가 뜨지 않게 */
html { touch-action: manipulation; }
img.px { pointer-events: none; -webkit-touch-callout: none; }
/* 누를 곳은 44px 이상 */
.foot [data-privacy] { min-height: 44px; padding: 0 12px; }
.top .brand { min-height: 44px; }
.poi.minor { min-width: 44px; }
/* 좁은 화면에서 글자 크게: 머리줄 글과 단추가 겹치지 않게, 6칸과 QR 단추가 한 화면에 걸치게 */
@media (max-width: 340px) {
  html.big .top .brand b { font-size: 1rem; }
  html.big .item .slot { width: 80px; height: 80px; }
}
html.big .sheet .shd .nb { white-space: normal; }

/* ---------- PC(자판·마우스) ---------- */
/* Tab 으로 옮긴 초점이 위 머리줄·아래 탭 줄에 깔리지 않게 */
html { scroll-padding: 64px 0 calc(var(--tabs) + 20px); }
/* 밝은 시트 안에서는 노란 초점 테가 안 보인다: 먹색으로, 단추 테두리와 떨어뜨려서 */
.sheet :focus-visible { outline-color: var(--ink); outline-offset: 6px; }
/* 마우스를 올리면 누를 수 있는 것이 살짝 밝아진다(손가락 화면에는 걸리지 않는다) */
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .tab:hover, .chip:hover, .card:hover, .mrow:hover, .tile:hover, .gcard:hover, button.li:hover, button.item:hover, .bld:hover, .poi:hover, .sheet .x:hover, .bigbtn:hover { filter: brightness(1.08); }
}
/* 시식 시간: 시작 시각 아래에 끝 시각 */
.tt2 em { display: block; margin-top: 3px; font-family: var(--bf); font-style: normal; font-weight: 700; font-size: .8rem; line-height: 1.1; color: var(--ink-2); }
.paynote small { display: block; margin-top: 2px; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
/* 가게 목록 「마패권」 안내 안의 영수증 마패권 링크: 손가락으로 누르기 좋게 위아래 여유를 둔다 */
.paynote .pnlink { display: block; margin: 4px auto -4px; padding: 10px 6px; min-height: 44px; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
/* 영수증 마패권: 핵심 한 줄만 크게, 조건은 작게 */
.rcpt { text-align: center; padding: 4px 2px 2px; }
.rcpt .big { margin: 0; font-size: 1.45rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.rcpt .big b { font-weight: 800; white-space: nowrap; }
.rcpt .cap { margin: 2px 0 12px; font-size: 1.05rem; font-weight: 700; color: var(--ink-2); }
.rcpt ul { list-style: none; margin: 0; padding: 10px 0 2px; border-top: 2px dashed var(--line); font-size: .98rem; line-height: 1.5; color: var(--ink-2); }
.rcpt li { margin: 2px 0; }
.rcpt li b { color: var(--ink); }
.sheet .rcpt { margin-bottom: 16px; }
/* 가운뎃점으로 나눈 한 덩어리가 한 줄보다 길면 잘라 내지 않고 낱말 사이에서 줄을 바꾼다 */
.dl .nb { white-space: normal; word-break: keep-all; max-width: 100%; }
.afternote p { margin: 0; padding: 6px 4px; text-align: center; font-weight: 700; font-size: 1.08rem; line-height: 1.5; }
/* 좁은 휴대폰(400px 이하): 가게 칸 단추를 촘촘하게 해 가게 이름이 첫 화면에 보이게 */
@media (max-width: 400px) {
  .shopbar .chips { gap: 6px 4px; padding: 2px 12px 6px; }
  .shopbar .chip { min-height: 44px; padding: 0 9px; gap: 4px; font-size: .95rem; }
}
/* 아주 좁은 휴대폰(359px 이하): 말풍선이 오른쪽에서 잘리지 않게 */
@media (max-width: 359px) {
  .stagewrap .bubble { padding: 6px 8px; font-size: .9rem; }
}
@media (max-width: 374px) {
  .card .nm { font-size: 1rem; letter-spacing: -.03em; }
  .sheet .shd h2 { font-size: 1.22rem; }
}
html.big .cards { grid-template-columns: 1fr; }
.rcpt li, .plain li, .kv dd small { text-wrap: balance; }
/* 첫 화면 언제 줄: 가운뎃점 단위로 줄이 바뀔 때 줄 앞의 점은 감춘다 */
.when .v small { overflow: hidden; }
