/* 안녕부산 Plus — 부산 생존 키트 공용 스타일.
 * 본 사이트(Next.js 빌드)와 같은 토큰을 쓴다. 원본 CSS 값을 그대로 옮겼다. */
:root {
  --paper: #fbf7f1; --card: #fff; --ink: #16202e; --ink-soft: #5c6979; --line: #e6ded2;
  --camellia: #c7452f; --camellia-soft: #fdeeea; --sea: #17557a; --sea-soft: #e8f1f7;
  --sun: #e5952b; --sun-soft: #fdf3e2;
  --ok: #2f7d4f; --ok-soft: #e7f4ec;
  --radius: 16px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Noto Sans KR", Roboto, sans-serif;
  --hangeul: "Apple SD Gothic Neo", "Noto Sans KR", var(--font);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101720; --card: #17202c; --ink: #e9eef4; --ink-soft: #94a3b4; --line: #26313f;
    --camellia: #ff7a5f; --camellia-soft: #2c1c1a; --sea: #6db4dd; --sea-soft: #14273a;
    --sun: #f2b45a; --sun-soft: #2b2317; --ok: #6fcf97; --ok-soft: #15291e;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.hangeul { font-family: var(--hangeul); letter-spacing: -.01em; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.soft { color: var(--ink-soft); }
.small { font-size: 13px; }
.xs { font-size: 12px; }

/* 상단바 — 본 사이트 헤더와 같은 모양 */
.p-top { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); }
.p-top .in { max-width: 64rem; margin: 0 auto; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.p-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.p-logo span, .p-btn-ghost { white-space: nowrap; }
@media (max-width: 420px) {
  .p-logo span { font-size: 14px; }
  .p-btn-ghost [data-ui="kit"], .p-btn-ghost [data-ui="login"], .p-btn-ghost [data-ui="myAccount"] { display: none; }
  .p-top .in { gap: 6px; }
  .p-top select { max-width: 92px; }
}
@media (max-width: 350px) {
  .p-logo span { display: none; }
}
.p-logo b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--camellia); color: #fff; font-family: var(--hangeul); }
.p-top .sp { flex: 1; }
.p-top select, .p-btn-ghost { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 6px 10px; font-size: 14px; color: var(--ink); }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px 96px; }
.crumb { display: inline-block; margin: 18px 0 6px; font-size: 13px; color: var(--ink-soft); text-decoration: none; }
h1.p-h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.25; margin: 6px 0 8px; font-weight: 700; }
.lead { color: var(--ink-soft); font-size: 15px; max-width: 40rem; margin: 0 0 20px; }
h2.p-h2 { font-size: 18px; margin: 28px 0 12px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tile { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--camellia); transform: translateY(-1px); }
.tile .ic { font-size: 28px; line-height: 1; }
.tile h3 { margin: 0; font-size: 16px; }
.tile p { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 600; background: var(--sea-soft); color: var(--sea); }
.badge.hot { background: var(--camellia-soft); color: var(--camellia); }
.badge.sun { background: var(--sun-soft); color: var(--sun); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 10px 14px; font-size: 14px; font-weight: 500; text-decoration: none; min-height: 44px; }
.btn:active { transform: scale(.98); }
.btn.pri { background: var(--camellia); border-color: var(--camellia); color: #fff; }
.btn.sea { background: var(--sea); border-color: var(--sea); color: #fff; }
.btn.block { width: 100%; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px; font-size: 13px; min-height: 36px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }

.speak { flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--sea); font-size: 18px; display: grid; place-items: center; }
.speak:hover { background: var(--sea-soft); border-color: var(--sea); }
.speak.on { background: var(--sea); color: #fff; }

input[type=text], input[type=search], textarea { width: 100%; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }

.note { border-radius: 12px; padding: 12px 14px; font-size: 13px; background: var(--sea-soft); color: var(--ink); }
.note.warn { background: var(--sun-soft); }

/* 보여주기 모드 — 점원·기사님에게 폰을 돌려 보여 주는 전체 화면 */
.show { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: flex; flex-direction: column; overflow-y: auto; }
.show .bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 8px; border-bottom: 1px solid var(--line); }
.show .body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 20px 20px 28px; max-width: 44rem; width: 100%; margin: 0 auto; }
.show .to { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.show .big { font-family: var(--hangeul); font-weight: 700; font-size: clamp(34px, 9vw, 64px); line-height: 1.25; word-break: keep-all; margin: 0; }
.show .mine { margin-top: 14px; font-size: 16px; color: var(--ink-soft); }
.show .answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.show .answers button { min-height: 64px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); padding: 8px; text-align: center; }
.show .answers button b { display: block; font-family: var(--hangeul); font-size: 20px; }
.show .answers button span { display: block; font-size: 12px; color: var(--ink-soft); }
.show .answers button.sel { border-color: var(--sea); background: var(--sea-soft); }
.show .reply { margin-top: 18px; border-radius: 14px; padding: 14px 16px; background: var(--ok-soft); font-size: 20px; font-weight: 600; }
.show .reply small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.rotate-hint { font-size: 12px; color: var(--ink-soft); }

/* 부산 생존 키트 진입 카드 (본 사이트 홈에 끼워 넣는 섹션) */
.abp-home { margin: 8px 0 4px; }
.abp-home .abp-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .abp-home .abp-grid { grid-template-columns: repeat(3, 1fr); } }

.bar-prog { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar-prog i { display: block; height: 100%; background: var(--camellia); transition: width .3s; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pop { animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0 } to { transform: none; opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .pop, .tile { animation: none; transition: none; } }
