:root { --bg: #f6efe2; --ink: #1c2733; --muted: #4f5a69; --line: #e2d9c6; --edge: #8a94a3; --navy: #0b4b8f; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.6 Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, "Hiragino Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-wrap: anywhere;
}
:lang(ko) { word-break: keep-all; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; }

h1 { font-size: 30px; line-height: 1.3; font-weight: 600; margin: 16px 0 8px; }
h2 { font-size: 26px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; }
h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
p { margin: 0 0 16px; }
.privacy, .help, .note, figcaption { color: var(--muted); }
.note { font-size: 17px; margin: 8px 0 12px; }

.langrow { display: flex; justify-content: flex-end; align-items: center; gap: 10px; font-size: 17px; }
select, input[type=text], input[type=tel], textarea {
  font: inherit; color: inherit; background: #fff; border: 2px solid var(--edge); border-radius: 12px;
  min-height: 52px; padding: 10px 14px; width: 100%;
}
select { width: auto; min-height: 44px; padding: 6px 12px; font-size: 17px; }
textarea { resize: vertical; }
::placeholder { color: #6b7684; opacity: 1; }
:focus-visible, .vh:focus-visible + .btn { outline: 3px solid var(--navy); outline-offset: 3px; }
h2:focus { outline: none; }

.progress ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 20px 0 8px; }
.progress li {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--edge); background: #fff; color: var(--muted);
  display: grid; place-items: center; font-weight: 600; font-size: 17px;
}
.progress li.done { border-color: var(--navy); color: var(--navy); }
.progress li[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
#stepText { font-weight: 600; color: var(--navy); margin-bottom: 12px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 8px 22px; border-radius: 12px; border: 2px solid var(--navy);
  background: #fff; color: var(--navy); font: inherit; font-weight: 600; cursor: pointer;
}
.btn.primary { background: var(--navy); color: #fff; }
.btn:disabled { background: #fff; color: var(--muted); border-color: var(--edge); cursor: default; }
.navrow { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.navrow .btn { min-width: 120px; }

.slots, .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.slot h3 { margin-top: 8px; }
.slot .btn { width: 100%; }
.preview {
  aspect-ratio: 1; border: 2px dashed var(--edge); border-radius: 12px; background: var(--bg);
  display: grid; place-items: center; overflow: hidden; margin-bottom: 12px; text-align: center;
}
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview p { margin: 0; padding: 8px; color: var(--muted); font-size: 17px; }

.field { display: block; margin: 20px 0 0; font-weight: 600; }
.field > span { display: block; margin-bottom: 6px; }
.field input, .field textarea { font-weight: 400; }
.notice { border: 2px solid var(--navy); border-radius: 12px; padding: 12px 14px; margin: 12px 0 0; }

#map { height: 340px; border: 1px solid var(--line); border-radius: 12px; isolation: isolate; font: inherit; }
.leaflet-touch .leaflet-bar a, .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 24px; color: var(--navy); }
.leaflet-container .leaflet-control-attribution { font-size: 13px; }
.pin { background: none; border: 0; }

.scene { margin: 16px 0 0; }
.frame { position: relative; border-radius: 12px; overflow: hidden; }
.frame img { display: block; width: 100%; height: auto; }
.plate {
  position: absolute; left: 12px; top: 12px; max-width: 62%;
  background: #fff; border-radius: 10px; padding: 10px 14px; display: grid; line-height: 1.35;
}
.plate strong { font-size: 22px; font-weight: 600; color: var(--navy); }
.plate span { font-size: 17px; }
figcaption { font-size: 17px; margin-top: 8px; }
.play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.tag { border: 2px solid var(--navy); border-radius: 10px; padding: 8px 12px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 48px; padding: 6px 18px; border-radius: 999px; border: 2px solid var(--edge);
  background: #fff; color: var(--ink); font: inherit; font-size: 17px; font-weight: 500; cursor: pointer;
}
.chip[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #fff; }

.thumbs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs button {
  position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: #fff; color: var(--navy);
  border-radius: 0 0 0 10px; display: grid; place-items: center; cursor: pointer;
}

.summary { background: var(--bg); border-radius: 12px; padding: 14px 16px; margin: 24px 0 16px; }
.summary h3 { margin: 0 0 4px; }
.summary p { margin: 0; }
#genBox { margin-top: 20px; }
#genList { margin: 0 0 12px; padding-left: 26px; color: var(--muted); }
#genList li.now { color: var(--navy); font-weight: 600; }
#genList li.ok { color: var(--ink); }
.bar { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
#barFill { height: 100%; width: 0; background: var(--navy); transition: width 1.6s linear; }
#result { margin-top: 24px; }

.check { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 16px 0 0; cursor: pointer; }
.check input { width: 26px; height: 26px; flex: none; accent-color: var(--navy); }
#send { margin-top: 24px; }
.confirm { border: 2px solid var(--navy); border-radius: 12px; padding: 18px; margin-top: 24px; }
.confirm h3 { margin-top: 0; color: var(--navy); font-size: 20px; }
.confirm .lead { font-weight: 600; margin-bottom: 6px; }
.confirm p { margin-bottom: 6px; }
.confirm .btn { margin-top: 12px; }

dl { margin: 0 0 8px; }
dt { font-weight: 600; color: var(--navy); margin-top: 18px; }
dd { margin: 2px 0 0; }
dd p { margin: 0; white-space: pre-wrap; }

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  h2 { font-size: 23px; }
  .card { padding: 18px; }
  .slots { gap: 12px; }
  .btn { padding: 8px 14px; }
  .navrow .btn { min-width: 0; flex: 1; }
  #map { height: 300px; }
  .plate { left: 8px; top: 8px; padding: 8px 10px; }
  .plate strong { font-size: 19px; }
}
