/* 이거 비싸? 시험판. 폰 한 손 화면 기준, 글자는 18px 아래로 안 내려감(작은 안내만 15px). */
:root {
  --ink: #1c1f24;
  --mute: #6a7280;
  --line: #e3e6ea;
  --bg: #f6f7f9;
  --card: #fff;
  --brand: #ff5a1f; /* 가격표 주황 */
  --go: #0f8a5f;
  --go-bg: #e7f6ef;
  --wait: #d9480f;
  --wait-bg: #fff0e6;
  --plain-bg: #eef0f3;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.5 -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
[hidden] { display: none !important; }

#top { position: sticky; top: 0; z-index: 5; display: flex; align-items: baseline; justify-content: space-between; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.logo { font-size: 22px; letter-spacing: -0.5px; }
.logo span { color: var(--brand); }
#top small { color: var(--mute); font-size: 13px; }

main { max-width: 520px; margin: 0 auto; padding: 20px 16px 48px; }
h1 { margin: 4px 0 8px; font-size: 26px; line-height: 1.3; letter-spacing: -0.5px; }
.lead { margin: 0 0 16px; color: var(--brand); font-weight: 700; }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shot { position: relative; display: block; aspect-ratio: 3 / 4; border: 2px dashed #c5cad2; border-radius: 16px; background: var(--card); overflow: hidden; cursor: pointer; }
.shot.has { border-style: solid; border-color: var(--brand); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; text-align: center; }
.shot.has .ph { inset: auto 0 0 0; padding: 6px; background: rgba(0, 0, 0, 0.55); color: #fff; }
.shot.has .ph i { display: none; }
.shot .ph b { font-size: 18px; }
.shot .ph i { font-style: normal; font-size: 15px; color: var(--mute); }

.field { display: block; margin: 18px 0 0; font-size: 16px; color: var(--mute); }
.won { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
input[type="text"] { flex: 1; min-width: 0; height: 52px; padding: 0 14px; border: 1px solid #c5cad2; border-radius: 12px; background: var(--card); font: inherit; font-size: 20px; color: var(--ink); }
.won em { font-style: normal; color: var(--ink); }

.btn { display: block; width: 100%; height: 58px; margin-top: 18px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font: inherit; font-size: 21px; font-weight: 800; cursor: pointer; }
.btn:disabled { background: #c9cdd4; cursor: default; }
.btn.small { width: auto; height: 52px; margin: 0; padding: 0 16px; font-size: 18px; white-space: nowrap; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid #c5cad2; }
.msg { min-height: 1.5em; margin: 12px 0 0; text-align: center; color: var(--wait); }
.fine { margin: 10px 0 0; text-align: center; font-size: 15px; color: var(--mute); }

/* 판정 카드: 차액 한 줄이 가장 크다 */
.card { padding: 20px 18px; border-radius: 18px; background: var(--plain-bg); }
.card.go { background: var(--go-bg); }
.card.wait { background: var(--wait-bg); }
.lv { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.08); font-size: 15px; font-weight: 700; }
.card h2 { margin: 0; font-size: 32px; line-height: 1.25; letter-spacing: -0.8px; word-break: keep-all; }
.card.go h2 { color: var(--go); }
.card.wait h2 { color: var(--wait); }
.sub { margin: 10px 0 0; font-size: 17px; color: #3d434c; word-break: keep-all; }

.prod { margin: 16px 2px 0; }
.prod b { display: block; font-size: 19px; }
.prod span { color: var(--mute); font-size: 16px; }
.unsure, .notes { margin: 8px 0 0; padding: 0; list-style: none; font-size: 16px; color: var(--mute); }
.unsure li::before, .notes li::before { content: "· "; }

#ask-price .won { flex-wrap: nowrap; }

h3 { margin: 24px 2px 8px; font-size: 18px; }
.offers { margin: 0; padding: 0; list-style: none; }
.offers li { margin-bottom: 8px; }
.offers a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: inherit; text-decoration: none; }
.offers .t { flex: 1; min-width: 0; }
.offers .t b { display: block; font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offers .t i { font-style: normal; font-size: 15px; color: var(--mute); }
.offers .p { font-size: 19px; font-weight: 800; white-space: nowrap; }
.offers li:first-child a { border-color: var(--brand); }

.shops { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shops a { display: flex; align-items: center; justify-content: center; height: 56px; border: 1px solid #c5cad2; border-radius: 14px; background: var(--card); color: var(--ink); font-weight: 700; text-decoration: none; }
.shops a:first-child { border-color: var(--brand); color: var(--brand); }
.fix.more { margin-top: 8px; }
.fix.more .shops { margin-top: 8px; }
.shops-more a:first-child, #shops-more a:first-child { border-color: #c5cad2; color: var(--ink); }
.fine.left { text-align: left; margin: 8px 2px 0; }
.fix { margin-top: 20px; font-size: 17px; }
.fix summary { color: var(--mute); cursor: pointer; padding: 6px 2px; }
.row { display: flex; gap: 8px; margin-top: 8px; }
