html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070806;
  --card: #12160f;
  --ink: #f3efe4;
  --muted: #9a9384;
  --line: #2c281c;
  --gold: #e8b84a;
  --gold-ink: #1a1406;
  --link: #e8b84a;
  --glow: rgba(232, 184, 74, 0.16);
  --field: #0c0e09;
  --street-top: #14120c;
  --street-bot: #070806;
  --street-glow: rgba(232, 184, 74, 0.22);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f3ea;
  --card: #fffdf8;
  --ink: #1a1612;
  --muted: #5c5348;
  --line: #ddd4c4;
  --gold: #c9a227;
  --gold-ink: #1a1406;
  --link: #8a6a12;
  --glow: rgba(201, 162, 39, 0.12);
  --field: #fffdf8;
  --street-top: #d8e0e6;
  --street-bot: #b8b3a6;
  --street-glow: rgba(255, 255, 255, 0.35);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, "SF Pro Text", Roboto, sans-serif;
  background:
    radial-gradient(920px 460px at 88% -8%, var(--glow), transparent 56%),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--link); }
.wrap { max-width: 720px; margin: 0 auto; padding: 28px 20px 64px; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 36px; font-size: 14px;
}
.top-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.brand {
  color: var(--ink); text-decoration: none; font-weight: 750;
  letter-spacing: 0.04em; position: relative;
}
.brand::after {
  content: ""; display: block; width: 18px; height: 2px;
  background: var(--gold); margin-top: 4px;
}
.nav a { color: var(--muted); text-decoration: none; margin-left: 12px; }
.nav a:hover { color: var(--ink); }
.theme-btn {
  font: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 10px; cursor: pointer;
}
.theme-btn:hover { border-color: var(--gold); }
h1 { font-size: clamp(1.85rem, 5.4vw, 2.55rem); line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 1.08rem; margin: 0 0 22px; }
.hero { text-align: left; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 10px; }
.btn {
  display: inline-block; padding: 13px 20px; border-radius: 14px;
  background: var(--gold); color: var(--gold-ink); text-decoration: none;
  font-weight: 700; border: 0; cursor: pointer; font-size: 15px;
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
}
.note { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.grid { display: grid; gap: 12px; margin: 28px 0; }
@media (min-width: 560px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 16px 14px;
}
.card h3 { margin: 0 0 6px; font-size: 1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step-n { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.section { margin: 40px 0; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { color: var(--muted); margin: 8px 0 0; }
footer { margin-top: 48px; color: var(--muted); font-size: 14px; }
footer p { margin: 12px 0 0; font-size: 12px; }
.field { margin: 0 0 12px; }
.field label, .pick-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
textarea, .result {
  width: 100%; padding: 12px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--field); color: var(--ink);
  font: inherit;
}
.result { white-space: pre-wrap; border-radius: 14px; padding: 14px; font-size: 0.98rem; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.legal p, .legal li { color: var(--ink); }
.legal .meta { color: var(--muted); }
code { background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 2px 6px; border-radius: 6px; }

.pick { position: relative; margin: 0 0 12px; }
.pick-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; text-align: left; font: inherit; color: var(--ink);
  background: var(--field); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; cursor: pointer;
}
.pick-btn::after {
  content: ""; width: 10px; height: 6px; flex: 0 0 10px;
  background: var(--muted);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.pick.is-open .pick-btn::after { transform: rotate(180deg); }
.pick-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 8;
  margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
}
.pick-list[hidden] { display: none; }
.pick-list button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; text-align: left; font: inherit; color: var(--ink);
  background: transparent; border: 0; border-radius: 10px;
  padding: 10px 12px; cursor: pointer;
}
.pick-list button:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.pick-list button.is-on { color: var(--gold-ink); background: var(--gold); font-weight: 700; }

.viewfinder {
  position: relative;
  margin: 22px 0 8px;
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  background:
    radial-gradient(120% 80% at 50% 110%, var(--street-glow), transparent 46%),
    linear-gradient(180deg, var(--street-top) 0%, var(--street-bot) 100%);
}
.vf-corners {
  position: absolute; inset: 16px;
  pointer-events: none;
}
.vf-corners::before, .vf-corners::after,
.vf-corners span::before, .vf-corners span::after {
  content: ""; position: absolute; width: 22px; height: 22px;
  border: 2px solid var(--gold);
}
.vf-corners::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.vf-corners::after { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.vf-corners span::before { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.vf-corners span::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.vf-pin {
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.vf-tag {
  display: inline-block;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px; font-weight: 700;
  margin-bottom: 8px;
}
.vf-pin svg { display: block; margin: 0 auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,.35)); }
.vf-ground {
  position: absolute; left: 18%; right: 18%; bottom: 18%;
  height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 18%, transparent);
}
.viewfinder figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 12px;
  font-size: 12px; color: var(--muted); margin: 0;
}

.stamp {
  display: inline-block;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 3px 8px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.price-strip {
  display: flex; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; font-weight: 750;
  margin: 16px 0 0;
}
.warn {
  font-size: 13px; color: var(--muted);
  border-left: 3px solid var(--gold);
  padding: 0 0 0 12px; margin: 18px 0 0;
}

body.share { min-height: 100vh; }
body.share .hud { max-width: 440px; margin: 0 auto; padding: 0 20px 36px; text-align: center; }
body.share .viewfinder { min-height: 320px; }
body.share .sheet {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 18px 16px 16px; margin-top: 8px;
}
body.share .sheet p { color: var(--muted); margin: 0 0 14px; font-size: 0.95rem; }
body.share .actions { justify-content: center; }
