/* 화면 틀: 직업도감식 세로 페이지 (docs/v1 화면 설계.md 2장) */
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { background: var(--night-2); }
body {
  min-height: 100dvh;
  background: radial-gradient(120% 60% at 50% -10%, #24304A 0%, var(--night) 45%, var(--night-2) 100%) fixed;
  color: var(--text);
  font: 15px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}
a { color: inherit; }
button { font: inherit; }
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── 위 바 ───────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  max-width: 560px; margin: 0 auto; padding: 10px var(--gutter);
  background: linear-gradient(var(--night-2) 70%, transparent);
}
.logo {
  display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none;
  font: 400 22px/1 var(--f-sign); color: var(--paper);
  padding: 6px 10px; border-radius: 6px; background: #0A0B0F;
  box-shadow: inset 0 0 0 2px var(--sign-red), 0 0 14px rgba(226, 65, 43, .35);
}
.logo span { color: var(--sign-yellow); text-shadow: 0 0 8px rgba(245, 184, 0, .6); }
.top-actions { display: flex; gap: 6px; }

/* ── 위 탭 ───────────────────────────────────────────────────────── */
.tabs {
  position: sticky; top: 56px; z-index: 29;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  max-width: 560px; margin: 0 auto; padding: 4px var(--gutter) 10px;
  background: var(--night-2);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--night-3);
  color: var(--text-2); font-weight: 700; font-size: 14px; text-decoration: none;
}
.tabs a[aria-current="page"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ticker { max-width: 560px; margin: 0 auto; }

/* ── 공통 섹션 ───────────────────────────────────────────────────── */
.section { margin-top: 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.section-head h2 { font: 400 20px/1.2 var(--f-sign); color: var(--paper); }
.section-head .more { font-size: 13px; color: var(--muted); text-decoration: none; }
.hint { font-size: 12px; color: var(--muted); }

/* ── 홈: 주인공 카드 ─────────────────────────────────────────────── */
.hero { margin-top: 12px; padding: 18px 16px 14px; overflow: hidden; position: relative; }
.hero-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 700; }
.hero h1 { margin-top: 10px; font: 400 clamp(22px, 7.6vw, 34px)/1.25 var(--f-sign); color: var(--paper); min-height: calc(2.5em + 8px); }
/* 질문 두 줄은 각각 한 줄로 고정, 글자 크기는 home.js fitHero가 가장 긴 후보에 맞춘다 */
.hero h1 .line { display: block; white-space: nowrap; }
.swap-slot { display: inline-block; white-space: nowrap; }
.swap-measure { position: absolute; left: 0; top: 0; visibility: hidden; white-space: nowrap; pointer-events: none; }
.swap {
  display: inline-block; padding: 0 8px; margin: 2px 0; border-radius: 6px;
  background: rgba(245, 184, 0, .14); color: var(--sign-yellow); box-shadow: inset 0 -3px 0 rgba(245, 184, 0, .5);
  transition: opacity .25s, transform .25s;
}
.swap.out { opacity: 0; transform: translateY(-30%); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.check { margin-top: 12px; position: relative; }
.check input {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--r-m);
  border: 2px solid var(--line-2); background: #fff; color: var(--ink); font: 600 16px var(--f-body);
}
.check input:focus { outline: none; border-color: var(--sign-yellow); box-shadow: 0 0 0 4px rgba(245, 184, 0, .25); }
.check-result { margin-top: 10px; font-size: 14px; color: var(--text-2); min-height: 22px; }
.check-result b { color: var(--paper); }
.check-result .ok { color: var(--led-green); }
.check-result .btn { margin-top: 10px; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.stat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }

/* 카드 벨트: 불 켜진 가게가 흐름 */
.belt { margin: 16px -16px 0; overflow: hidden; position: relative; padding: 4px 0 10px; }
.belt-track { display: flex; gap: 10px; width: max-content; animation: belt 40s linear infinite; padding-left: 16px; }
.belt:hover .belt-track, .belt:active .belt-track { animation-play-state: paused; }
@keyframes belt { to { transform: translateX(-50%); } }
.shop-card {
  flex: none; width: 132px; border-radius: 10px; overflow: hidden; text-decoration: none;
  background: #0A0B0F; border: 1px solid var(--line); position: relative;
}
.shop-card img, .shop-card .ph { display: block; width: 132px; height: 110px; object-fit: cover; background: linear-gradient(160deg, #2A3247, #141927); }
.shop-card .cap { display: block; padding: 6px 8px 8px; }
.shop-card .nm, .shop-card .sub { display: block; }
.shop-card .nm { font: 400 14px/1.2 var(--f-sign); color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-card .sub { font-size: 11px; color: var(--muted); }
.shop-card .stage { position: absolute; top: 6px; left: 6px; }
.shop-card .balloon { position: absolute; top: 4px; right: 6px; font-size: 18px; animation: balloon 2s ease-in-out infinite; }
@keyframes balloon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.belt-note { text-align: center; font-size: 12px; color: var(--muted); }

/* 실시간 소식 */
.feed { display: grid; gap: 8px; }
.feed-row { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 10px 12px; }
.feed-row .k { font-size: 12px; color: var(--muted); font-weight: 700; }
.feed-row .v { font-size: 14px; color: var(--paper); font-weight: 700; }
.feed-row .t { grid-column: 2; font-size: 12px; color: var(--muted); }

/* 순위판 (이벤트 상권) */
.countdown { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 10px; flex-wrap: wrap; }
.confirmed { border-color: #6B5A1E; background: linear-gradient(180deg, rgba(245, 184, 0, .08), transparent); }
.confirmed h3 { font: 400 16px/1.2 var(--f-sign); color: var(--sign-yellow); margin-bottom: 8px; }
.rank { display: grid; gap: 8px; list-style: none; padding: 0; }
.rank li {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 10px; align-items: center;
  padding: 12px; border-radius: var(--r-m); background: var(--night-3); border: 1px solid var(--line);
}
.rank li.top { border-color: #3D5A8F; box-shadow: 0 0 0 1px rgba(80, 130, 220, .25); }
.rank .no { font: 400 22px/1 var(--f-sign); color: #7FA7E8; text-align: center; }
.rank .medal { font-size: 24px; text-align: center; }
.rank .nm { font-weight: 800; color: var(--paper); }
.rank .by { font-size: 12px; color: var(--muted); }
.rank .gap { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 800; color: #9EC2FF; background: rgba(31, 95, 191, .25); border-radius: 4px; padding: 2px 6px; }
.rank .bar { grid-column: 2 / 4; }
.rank .hearts { font: 400 18px/1 var(--f-sign); color: #FF7A8A; text-align: right; }

/* 광장 미리보기 */
.preview { position: relative; height: 260px; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: #CFE3EE; }
.preview .plaza-canvas, .mapbox .plaza-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.preview .go { position: absolute; right: 10px; bottom: 10px; }
.preview .label { position: absolute; left: 10px; top: 10px; }

/* 명예의 전당 */
.hall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.plaque {
  padding: 12px; border-radius: 6px; color: #2A221C;
  background: linear-gradient(145deg, #E9C96B, #B98E2E); box-shadow: inset 0 0 0 2px #8A6A1E, 0 4px 0 #6B4F12;
}
.plaque .no { font: 400 12px/1 var(--f-sign); opacity: .75; }
.plaque .nm { font: 400 18px/1.25 var(--f-sign); margin-top: 4px; }
.plaque .by { font-size: 12px; font-weight: 700; margin-top: 4px; }
.plaque.new { animation: slam .45s var(--ease-back); }
@keyframes slam { from { transform: scale(1.6) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── 지도 탭 ─────────────────────────────────────────────────────── */
.mapbox { position: relative; height: calc(100dvh - 210px); min-height: 380px; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: #CFE3EE; }
.map-tools { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; z-index: 2; }
.map-crumb { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.map-crumb a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.map-crumb a.chip[aria-current="page"] { background: var(--paper); color: var(--ink); }
.mapbox.korea { background: #0B1424; }
.plaza-list { display: grid; gap: 8px; }
.plaza-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; text-decoration: none; }
.plaza-row .nm { font: 400 18px/1.2 var(--f-sign); color: var(--paper); }
.plaza-row .sub { font-size: 12px; color: var(--muted); }

/* ── 가게 도감 ───────────────────────────────────────────────────── */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.catalog .shop-card { width: auto; }
.catalog .shop-card img, .catalog .shop-card .ph { width: 100%; height: auto; aspect-ratio: 6 / 5; }

/* ── 시트 ────────────────────────────────────────────────────────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap[hidden] { display: none; }
.sheet-back { position: absolute; inset: 0; background: rgba(5, 8, 15, .55); }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 86dvh; overflow: auto;
  border-radius: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom));
  animation: sheet-up .32s var(--ease-out);
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .x { position: absolute; right: 8px; top: 12px; width: var(--tap); height: var(--tap); border: 0; background: transparent; font-size: 24px; cursor: pointer; color: #555; }
.sheet h3 { font: 400 24px/1.2 var(--f-sign); padding-right: 40px; }
.sheet .kind { display: inline-block; margin-left: 6px; vertical-align: middle; font: 700 11px/1 var(--f-body); padding: 4px 7px; border-radius: 4px; background: #1A1A1A; color: #fff; }
.sheet .muted { color: #777; font-size: 12px; }
.sheet .faces { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.sheet .face { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--paper-2); }
.sheet .face.owner { background: var(--sign-yellow); }
.sheet .face { animation: push .3s var(--ease-out) both; }
@keyframes push { from { transform: translateX(-10px); opacity: 0; } }
.sheet .cta { display: grid; gap: 8px; margin-top: 14px; }
.sheet .comment { font: 400 20px/1.2 var(--f-sign); color: var(--sign-red); text-align: center; padding: 10px; border: 2px dashed #C9C0AE; border-radius: 8px; }
.sheet ol, .sheet ul { padding-left: 18px; }

/* ── 전단지 · 안내문 내용 ────────────────────────────────────────── */
.flyer .kicker { font: 400 13px/1 var(--f-sign); color: var(--sign-red); }
.flyer h2 { font: 400 28px/1.2 var(--f-sign); margin: 8px 0; }
.flyer p { font-size: 14px; color: #444; }
.flyer .acts { display: grid; gap: 8px; margin-top: 16px; }
.flyer .skip { background: none; border: 0; color: #777; font-size: 13px; text-decoration: underline; cursor: pointer; justify-self: center; min-height: 36px; }
.flyer .dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.flyer .dots i { width: 6px; height: 6px; border-radius: 3px; background: #CFC6B6; }
.flyer .dots i.on { width: 18px; background: var(--sign-red); }
.flyer .comment { font: 400 22px/1.2 var(--f-sign); color: var(--sign-red); text-align: center; padding: 12px; margin-top: 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 2px #E2D9C6; }

/* ── 로딩 셔터 ───────────────────────────────────────────────────── */
.loading { position: fixed; inset: 0; z-index: 90; background: #2A3247; display: grid; place-items: center; }
.loading.done { pointer-events: none; animation: fade .35s .45s forwards; }
.shutter {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(#9AA0A6 0 14px, #7C828A 14px 18px);
  transform-origin: top; transition: transform .25s linear;
}
.loading.done .shutter { transform: scaleY(0) !important; transition: transform .45s var(--ease-out); }
.loading-sign { position: relative; text-align: center; padding: 14px 18px; background: #0A0B0F; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--sign-red), 0 0 24px rgba(226, 65, 43, .4); }
.loading-logo { font: 400 28px/1 var(--f-sign); color: var(--paper); }
.loading-pct { margin-top: 8px; font: 400 13px/1 var(--f-sign); color: var(--led); }
@keyframes fade { to { opacity: 0; visibility: hidden; } }

/* ── 떠 있는 댓글 버튼, 알림 ─────────────────────────────────────── */
.fab {
  position: fixed; right: max(16px, calc(50% - 264px)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: 999px;
  background: var(--sign-yellow); color: var(--ink); text-decoration: none;
  font: 400 15px/1 var(--f-sign); box-shadow: 0 4px 0 var(--sign-yellow-d), var(--shadow);
}
.toast {
  position: fixed; left: 50%; top: 72px; transform: translateX(-50%); z-index: 80;
  padding: 10px 16px; border-radius: 999px; background: var(--sign-yellow); color: var(--ink);
  font-weight: 800; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center;
}
.toast[hidden] { display: none; }

/* 꽃가루 (이벤트 가게 개업) */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; animation: fall var(--t, 1.6s) var(--d, 0s) cubic-bezier(.3, .6, .5, 1) forwards; }
@keyframes fall { to { transform: translate(var(--x, 0), 105vh) rotate(var(--r, 360deg)); } }

/* 이벤트 탭: 테이프 커팅 */
.ribbon { position: relative; height: 34px; margin: 6px 0 10px; }
.ribbon::before, .ribbon::after { content: ''; position: absolute; top: 14px; height: 6px; width: 50%; background: var(--sign-red); }
.ribbon::before { left: 0; transform-origin: left; }
.ribbon::after { right: 0; transform-origin: right; }
.ribbon.cut::before { animation: cutL .9s var(--ease-out) forwards; }
.ribbon.cut::after { animation: cutR .9s var(--ease-out) forwards; }
@keyframes cutL { to { transform: rotate(18deg) scaleX(.6); opacity: 0; } }
@keyframes cutR { to { transform: rotate(-18deg) scaleX(.6); opacity: 0; } }
.ribbon span { position: absolute; left: 50%; top: 0; transform: translateX(-50%); font-size: 26px; }

.empty { padding: 20px; text-align: center; color: var(--muted); }
.notice { font-size: 12px; color: var(--muted); margin-top: 10px; }
footer.foot { margin-top: 28px; padding: 18px 0 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: grid; gap: 6px; }
footer.foot a { color: var(--text-2); }
.geo-chips .chip { pointer-events: none; font-size: 12px; min-height: 0; padding: 5px 9px; }
.empty-cta b { font: 400 17px/1.2 var(--f-sign); color: var(--sign-yellow); }
.compass { position: absolute; left: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(14,19,32,.75); border: 1px solid #4A5B82; z-index: 3; pointer-events: none; }
.compass::before { content: ''; position: absolute; left: 50%; top: 4px; margin-left: -5px; border: 5px solid transparent; border-bottom: 11px solid #E2412B; }
.compass b { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font: 400 10px/1 var(--f-sign); color: #F3EEE6; }
.hot-list { display: grid; gap: 6px; }
.hot-row { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(255,122,61,.1); border: 1px solid rgba(255,122,61,.45); text-decoration: none; color: var(--paper); }
.hot-row b { font: 400 15px/1.2 var(--f-sign); color: #FFB48A; }
.hot-row .sub { font-size: 12px; color: #B8C2DC; }
/* 광장 고르기 시트 */
.pick-search { width: 100%; margin: 10px 0 4px; padding: 11px 12px; border-radius: 10px; border: 2px solid #1A1A1A; font: 500 15px/1.2 var(--f-body); }
.pick-h { margin: 12px 0 6px; font: 700 12px/1 var(--f-body); color: #6B6358; }
.pick-list { display: grid; gap: 4px; max-height: 42vh; overflow: auto; }
.pick-row { display: grid; text-align: left; gap: 2px; padding: 9px 10px; border-radius: 8px; border: 1px solid #D8CFC0; background: #FBF8F2; font: inherit; color: #1A1A1A; cursor: pointer; }
.pick-row b { font: 400 15px/1.2 var(--f-sign); }
.pick-row .sub { font-size: 12px; color: #6B6358; }
/* 홈: 광장 바꾸기 · ①가게 유형 → ②지역 */
.chip.more { border-style: dashed; }
.ask { display: grid; gap: 8px; }
.ask-step { font: 700 14px/1.2 var(--f-body); color: var(--paper); margin-top: 4px; }
/* 가게 칩은 한 줄, 넘치면 옆으로 밀어서 */
.need-chips { flex-wrap: nowrap; overflow-x: auto; margin-top: 0; padding-bottom: 2px; scrollbar-width: none; }
.need-chips::-webkit-scrollbar { display: none; }
.need-chips .chip { flex: none; font-size: 13px; min-height: 34px; padding: 0 12px; }
.btn.where { display: flex; align-items: baseline; gap: 6px; justify-content: flex-start; text-align: left; }
.btn.where .sub { font-size: 12px; opacity: .75; font-weight: 500; }
.btn.where .chg { margin-left: auto; font-size: 12px; opacity: .8; }
.belt-empty { padding: 18px 12px; color: #B8C2DC; font-size: 14px; }
.how { margin: 10px 0 12px 18px; display: grid; gap: 6px; font-size: 14px; color: var(--paper); }

/* ── 홈 무대: 밤 상점가 — 전구 줄 + 간판 불빛 + 차양 단 아크릴 간판 카드 + 전단지 벨트 + 보도블록 ── */
/* section.stage 로 좁힌다: 카드 안 단계 현수막(.banner)과 이름이 겹치지 않게 */
section.stage { position: relative; margin: 12px calc(var(--gutter) * -1) 0; padding: 58px var(--gutter) 0; overflow: hidden; border-radius: 0 0 24px 24px;
  background: radial-gradient(90% 34% at 50% 100%, rgba(255,138,43,.20), transparent 70%), radial-gradient(70% 30% at 85% 8%, rgba(31,95,191,.22), transparent 70%),
    linear-gradient(180deg, #0B0F1A 0%, #121A2B 35%, #1B2233 70%, #262233 100%); }
.stage-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.stage-bg .lights { position: absolute; left: 0; top: 0; width: 100%; height: 60px; }
.stage-bg .lights .bulb { animation: bulb 3.4s var(--d, 0s) ease-in-out infinite; }
@keyframes bulb { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.stage-bg .street { position: absolute; left: 0; right: 0; bottom: 64px; width: 100%; height: 320px; opacity: .92; }
.stage-bg .street text { font-family: var(--f-sign); }
.stage-bg .street .flick { animation: neon 5s steps(1) infinite; }
.stage-bg .street .flick2 { animation: neon 7s 1.3s steps(1) infinite; }
@keyframes neon { 0%, 86%, 90%, 94%, 100% { opacity: 1; } 88%, 92% { opacity: .25; } }
.bokeh { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0 35%, transparent 70%); filter: blur(5px); opacity: .45; animation: bokeh var(--d, 7s) ease-in-out infinite alternate; }
@keyframes bokeh { to { opacity: .15; transform: translateY(-10px) scale(1.15); } }
.floater { position: absolute; left: 0; top: 0; height: auto; border-radius: 14px; opacity: .72; filter: drop-shadow(0 10px 16px rgba(0,0,0,.4)) drop-shadow(0 0 12px rgba(255,184,0,.14)); will-change: transform; }
.glass.hero .hero-meta { color: rgba(244,239,230,.8); }
/* 돌아가는 상권 이름·가게 이름: 노란 글씨만 (상자·밑줄 없이. 여러 곳·여러 가게가 있다는 걸 보여 주는 장식, 누르지 않음) */
.glass.hero .swap { color: var(--sign-yellow); background: none; border-radius: 0; padding: 0; margin: 0; box-shadow: none; }
/* 칩은 뒤로 밝은 상가가 지나가도 읽히게 어두운 바탕 + 또렷한 테두리 */
.glass.hero .chip { background: rgba(14,19,32,.78); border-color: rgba(255,255,255,.45); color: #fff; font-weight: 700; }
.glass.hero .chip[aria-pressed="true"] { background: var(--sign-yellow); border-color: var(--sign-yellow); color: var(--ink); box-shadow: 0 0 12px rgba(245,184,0,.4); }
.glass.hero .check input { background: var(--paper); border-color: transparent; }
.glass.hero .btn.where { align-items: center; background: rgba(14,19,32,.45); border-color: rgba(255,224,138,.3); color: var(--paper); }
/* 유리 카드 = 차양 단 아크릴 간판: 빨강·크림 줄무늬 차양(물결 끝단) + 노랑 LED 테두리 + 아래 모서리 볼트 */
.glass.hero { position: relative; z-index: 1; margin: 0; padding: 38px 16px 18px; border-radius: 12px 12px 16px 16px;
  background: linear-gradient(180deg, rgba(5,8,15,.30) 24px, rgba(5,8,15,0) 60px), linear-gradient(160deg, rgba(255,236,200,.15), rgba(255,255,255,.04)), rgba(14,19,32,.32);
  border: 1px solid rgba(255,224,138,.32);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), inset 0 -2px 0 rgba(245,184,0,.45), 0 0 0 3px rgba(10,11,15,.35), 0 0 28px rgba(245,184,0,.14), 0 14px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); }
.glass.hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 24px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 5px, rgba(0,0,0,.10) 12px, rgba(0,0,0,.28)), linear-gradient(#5A2017, #5A2017) 0 0 / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, var(--sign-red) 0 18px, var(--paper) 18px 36px);
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% 14px no-repeat, radial-gradient(circle 9px at 50% 14px, #000 96%, transparent 100%) 0 0 / 18px 24px repeat-x;
          mask: linear-gradient(#000 0 0) 0 0 / 100% 14px no-repeat, radial-gradient(circle 9px at 50% 14px, #000 96%, transparent 100%) 0 0 / 18px 24px repeat-x; }
.glass.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle 3px at 10px calc(100% - 10px), #D9DDE2 0 45%, #6E747C 55%, transparent 75%),
    radial-gradient(circle 3px at calc(100% - 10px) calc(100% - 10px), #D9DDE2 0 45%, #6E747C 55%, transparent 75%); }

/* 전단지 벨트: 테이프로 붙인 크림 종이, 아래는 찢은 자국. 톡 → 가게 영수증 */
.belt.tilt { position: relative; z-index: 1; margin: 14px calc(var(--gutter) * -1) 0; padding: 12px 0 16px; }
.belt.tilt .belt-track { gap: 14px; }
.flyer-card { --tilt: 0deg; flex: none; position: relative; display: block; width: 132px; margin-top: 8px; padding: 6px 6px 8px; text-decoration: none; color: var(--ink);
  background: var(--paper); border-radius: 2px 2px 0 0; transform: rotate(var(--tilt)); transform-origin: 50% 0;
  box-shadow: 0 10px 18px rgba(0,0,0,.4); transition: transform .2s; }
.flyer-card::before { content: ''; position: absolute; z-index: 2; top: -8px; left: 50%; width: 48px; height: 16px; margin-left: -24px; background: rgba(245,184,0,.6); transform: rotate(-3deg); }
.flyer-card:nth-child(3n+2)::before { background: rgba(233,226,212,.7); transform: rotate(4deg); }
.flyer-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px;
  background: conic-gradient(from -45deg at 50% 100%, var(--paper) 90deg, transparent 0) 0 0 / 10px 5px; background-repeat: round no-repeat; }
.flyer-card:active { transform: rotate(0deg) scale(1.05); }
.flyer-card .pic { position: relative; display: block; height: 88px; overflow: hidden; background: #1B2233; }
.flyer-card .pic img, .flyer-card .pic .ph { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; background: linear-gradient(160deg, #2A3247, #141927); }
.flyer-card .lvl { position: absolute; z-index: 1; left: 6px; top: 9px; }
.flyer-card .balloon { position: absolute; z-index: 1; top: 4px; right: 4px; font-size: 18px; animation: balloon 2s ease-in-out infinite; }
.flyer-card .kick { display: block; margin-top: 7px; font: 800 10px/1.1 var(--f-body); color: var(--sign-red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flyer-card .nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; margin-top: 3px;
  font: 400 16px/1.15 var(--f-sign); color: var(--ink); word-break: keep-all; }
.flyer-card .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 6px; padding-top: 6px; border-top: 1.5px dashed #C9C0AE;
  font: 700 11px/1 var(--f-body); color: var(--ink-2); }
.flyer-card .row b { font: 400 14px/1 var(--f-sign); color: var(--sign-red); }
.flyer-card .bc { flex: none; width: 46px; height: 13px; opacity: .7;
  background: repeating-linear-gradient(90deg, #1A1A1A 0 2px, transparent 2px 3px, #1A1A1A 3px 4px, transparent 4px 6px, #1A1A1A 6px 9px, transparent 9px 10px); }

/* 보도블록: 엇갈린 블록 + 노란 점자블록 한 칸 + 가로등 불빛 웅덩이, 앞면은 연석 */
.ground { position: relative; z-index: 2; height: 46px; margin: -4px calc(var(--gutter) * -1) 0;
  background:
    radial-gradient(70px 22px at 18% 0, rgba(255,214,140,.30), transparent 70%), radial-gradient(70px 22px at 76% 0, rgba(255,214,140,.24), transparent 70%),
    linear-gradient(90deg, rgba(10,11,15,.45) 0 1px, transparent 1px) 0 34px / 56px 12px repeat-x,
    linear-gradient(#C3C8CF 0 2px, #959BA3 2px 8px, #737981 8px) 0 34px / 100% 12px no-repeat,
    linear-gradient(90deg, rgba(14,19,32,.6) 0 1px, transparent 1px) 0 0 / 24px 11px repeat-x,
    linear-gradient(90deg, rgba(14,19,32,.6) 0 1px, transparent 1px) 12px 11px / 24px 11px repeat-x,
    linear-gradient(90deg, rgba(14,19,32,.6) 0 1px, transparent 1px) 0 22px / 24px 12px repeat-x,
    linear-gradient(transparent 10px, rgba(14,19,32,.6) 10px 11px) 0 0 / 100% 11px repeat-y,
    linear-gradient(#5E6370, #484D59 34px); }
.ground::before { content: ''; position: absolute; left: calc(50% - 36px); top: 11px; width: 48px; height: 11px;
  background: radial-gradient(circle, rgba(90,64,6,.75) 0 1.1px, transparent 1.7px) 0 0 / 6px 5.5px, linear-gradient(90deg, rgba(14,19,32,.5) 0 1px, transparent 1px) 0 0 / 24px 100%, #C8961B; }
.boss { position: absolute; left: 0; bottom: 30px; width: 48px; height: 66px; image-rendering: pixelated; cursor: grab; touch-action: none; z-index: 3; }
.boss.held { cursor: grabbing; filter: drop-shadow(0 6px 4px rgba(0,0,0,.4)); }
.boss-shadow { position: absolute; left: 0; bottom: 33px; width: 36px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.5); transform-origin: 50% 50%; pointer-events: none; z-index: 2; }
.boss-say { position: absolute; left: 0; bottom: 98px; z-index: 4; padding: 6px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none;
  background: var(--paper); color: var(--ink); font: 400 13px/1 var(--f-sign); box-shadow: 0 3px 0 rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.boss-say::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--paper); }
.boss-say.on { opacity: 1; visibility: visible; }
/* 아래 띠 = 찻길: 아스팔트 + 흰 점선 */
.stage .belt-note { position: relative; z-index: 2; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 16px; text-align: right; font-weight: 700; color: rgba(244,239,230,.85);
  background: linear-gradient(90deg, rgba(244,239,230,.45) 0 20px, transparent 20px 44px) 0 calc(100% - 6px) / 44px 2px repeat-x, linear-gradient(#262A33, #1A1D24); }
@media (prefers-reduced-motion: reduce) { .bokeh, .stage-bg .lights .bulb, .stage-bg .street .flick, .stage-bg .street .flick2 { animation: none; } }
/* 상가 열기 · 로그인 */
.open-form, .login-form { display: grid; gap: 8px; }
.open-form input, .login-form input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-m); border: 2px solid var(--line-2); background: #fff; color: var(--ink); font: 600 16px var(--f-body); }
.open-form input:focus, .login-form input:focus { outline: none; border-color: var(--sign-yellow); }
.pin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pin-row input, #lPin { letter-spacing: .4em; text-align: center; font-size: 20px; }
.field-label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field-msg { font-size: 13px; color: var(--text-2); min-height: 18px; }
.field-msg.bad { color: #FF8A7A; }
.field-msg a { color: var(--sign-yellow); }
.sign-preview { display: grid; justify-items: center; gap: 4px; }
.sign-preview img { width: 200px; border-radius: 10px; background: #1B2233; }
.sign-preview span { font-size: 11px; color: var(--muted); }
.demo-note { margin-bottom: 10px; padding: 10px 12px; font-size: 13px; color: #FFE7A8; background: rgba(245,184,0,.08); border: 1px dashed rgba(245,184,0,.5); border-radius: 10px; }
.open-done { text-align: center; display: grid; gap: 6px; }
.open-done .big { font: 400 34px/1 var(--f-sign); color: var(--sign-yellow); }
.open-done h3 { font: 400 24px/1.2 var(--f-sign); color: var(--paper); }
.open-done .kind { margin-left: 6px; font-size: 13px; padding: 2px 6px; border-radius: 4px; background: var(--night-3); color: var(--text-2); vertical-align: middle; }
/* 홈 ② 어디에: 적거나 내 위치 → 가장 가까운 상권 후보 */
.where-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.where-row input { width: 100%; min-height: 46px; padding: 0 12px; border-radius: var(--r-m); border: 0; background: rgba(255,255,255,.92); color: var(--ink); font: 600 15px var(--f-body); }
.where-row input:focus { outline: none; box-shadow: 0 0 0 3px rgba(245, 184, 0, .45); }
.where-row .btn { white-space: nowrap; }
.where-hits { display: grid; gap: 4px; margin-top: 2px; }
.where-hits .hint { color: rgba(244,239,230,.75); }
.where-hit { display: flex; align-items: baseline; gap: 6px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: var(--paper); font: inherit; cursor: pointer; }
.where-hit b { font: 400 15px/1.2 var(--f-sign); }
.where-hit .sub { font-size: 12px; opacity: .75; }
.where-hit[aria-pressed="true"] { border-color: var(--sign-yellow); background: rgba(245,184,0,.14); }

/* 유리 카드 위 글씨: 밝은 배경이 지나가도 읽히게 그림자 */
.glass.hero .ask-step, .glass.hero .hero-meta, .glass.hero .check-result, .glass.hero .where-hits .hint { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.kind-note { margin-bottom: 6px; font-size: 13px; }
.group-chips { margin-top: 6px; } .group-chips .chip { font-size: 13px; min-height: 32px; padding: 0 10px; }
