[hidden] { display: none !important; }
:root {
  --bg: #0d1430;
  --bg-2: #141d40;
  --panel: #18224a;
  --line: #2c3a6e;
  --ink: #f6f1e4;
  --muted: #b9bfd8;
  --gold: #f3c969;
  --gold-2: #e2b04a;
  --red: #ff8f92;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: radial-gradient(1200px 600px at 70% -10%, #1d2a63 0%, rgba(13, 20, 48, 0) 60%), var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 4.4vw, 2.9rem); margin: 0.1em 0 0.3em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 0.7em; }
h3 { font-size: 1.12rem; margin: 1.2em 0 0.4em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fine { font-size: 0.85rem; color: var(--muted); margin: 0.6em 0 0; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem; font-weight: 600; color: var(--gold); margin: 0; }

.top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 14px; max-width: 1120px; margin: 0 auto; padding: 16px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.brand-mark { color: var(--gold); }
.top-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }

.hero { max-width: 1120px; margin: 0 auto; padding: 4px 16px 18px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 46em; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  font: inherit; font-weight: 600; border: 0; border-radius: 999px; cursor: pointer;
  padding: 12px 22px; text-decoration: none; transition: transform 0.08s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: #1a1405; }
.btn-primary:hover { background: var(--gold-2); }
.btn-dark { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); padding: 10px 16px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); margin-top: 10px; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--gold); font: inherit; font-weight: 600; cursor: pointer; padding: 8px 0; text-decoration: underline; }

.maker {
  max-width: 1120px; margin: 0 auto; padding: 0 16px 40px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start;
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.step { margin-bottom: 20px; }
.step-title { display: block; font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
.opt { color: var(--muted); font-weight: 400; }

.photo-pick { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.photo-drop {
  display: flex; align-items: center; justify-content: center; gap: 14px; cursor: pointer; min-height: 150px;
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 16px; color: var(--muted); background: var(--bg-2); text-align: center;
}
.photo-drop:hover { border-color: var(--gold); }
.photo-drop strong { color: var(--ink); font-size: 1.05rem; }
.photo-drop img { max-height: 260px; width: auto; border-radius: 10px; }
.photo-pick.has-photo .photo-drop { border-style: solid; border-color: var(--gold); }
.photo-pick .link-btn { align-self: flex-start; }

input[type="text"], input[type="search"] {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg-2); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 11px 12px;
}
input[type="text"]:focus, input[type="search"]:focus { outline: none; border-color: var(--gold); }
input::placeholder { color: #7d86ad; }
.is-invalid, .is-invalid .photo-drop { border-color: var(--red) !important; }

.human-check { margin: 6px 0 10px; }
.form-error { color: var(--red); font-weight: 600; margin: 10px 0 0; }

.result-panel { position: sticky; top: 12px; }
.empty-box { text-align: center; }
.empty-box img { width: 100%; max-width: 300px; margin: 14px auto 0; border-radius: 10px; aspect-ratio: 2 / 3; object-fit: cover; }
.example { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 10px; }
.ex-name { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); margin: 0; font-weight: 700; }
.ex-short { margin: 0; font-weight: 600; }
.progress-box { padding: 40px 6px; text-align: center; }
.progress-box.inline { padding: 18px 0; }
.progress-title { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 14px; }
.bar { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 3%; background: linear-gradient(90deg, var(--gold), #ffe7a6); transition: width 0.9s ease; }

.figures { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; counter-reset: f; }
.figure { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.figure:first-child { border-color: var(--gold); }
.fig-name { font-size: 1.55rem; color: var(--gold); margin: 0 0 2px; }
.fig-short { font-weight: 700; margin: 0 0 6px; }
.fig-meaning { margin: 0 0 6px; color: var(--ink); }
.fig-why { margin: 0 0 6px; color: var(--muted); font-style: italic; }
.line { margin: 14px 0 0; padding: 14px 16px; border-left: 4px solid var(--gold); background: rgba(243, 201, 105, 0.08); border-radius: 0 12px 12px 0; font-family: var(--serif); font-size: 1.15rem; }
.disclaimer { text-align: center; }
.share-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 14px 0 4px; }
.share-note { text-align: center; }
.card-cta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.card-cta h3 { margin-top: 0; }
.figure-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { font: inherit; font-weight: 600; color: var(--ink); background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.chip[aria-checked="true"] { border-color: var(--gold); background: rgba(243, 201, 105, 0.15); }
.card-box { text-align: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.card-box img { width: 100%; max-width: 420px; margin: 0 auto; border-radius: 10px; aspect-ratio: 2 / 3; object-fit: cover; }
.buy { margin-top: 12px; }
.fail-box { text-align: center; padding: 30px 6px; }

.how, .gallery, .faq, .finder, .guide, .list-intro, .cta-box, .letter { max-width: 1120px; margin: 0 auto; padding: 8px 16px 36px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; list-style: none; }
.guide .steps { grid-template-columns: repeat(2, 1fr); counter-reset: g; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--muted); }
.guide .steps li { counter-increment: g; }
.guide .steps li::before { content: counter(g) ". "; color: var(--gold); font-weight: 700; }
.steps strong { color: var(--ink); display: block; margin-bottom: 4px; }
.tips { color: var(--muted); padding-left: 1.2em; }
.tips li { margin-bottom: 6px; }

.finder input { max-width: 520px; margin: 6px 0 14px; }
.az { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 16px; }
.az a { display: block; text-decoration: none; color: var(--muted); padding: 7px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.az a:hover { border-color: var(--gold); }
.az b { color: var(--ink); }
.az span::before { content: "– "; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; max-width: 760px; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { border-radius: 10px; aspect-ratio: 2 / 3; object-fit: cover; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.list-page .hero p { margin-top: 0.6em; }
.letters { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding: 10px 16px; background: rgba(13, 20, 48, 0.94); border-bottom: 1px solid var(--line); }
.letters a { display: inline-block; min-width: 2em; text-align: center; padding: 4px 6px; border-radius: 6px; text-decoration: none; font-weight: 700; }
.letters a:hover { background: var(--panel); }
.letter h2 { color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 6px; scroll-margin-top: 64px; }
.letter { padding-bottom: 12px; scroll-margin-top: 64px; }
.fig { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; scroll-margin-top: 64px; }
.fig h3 { margin: 0; color: var(--gold); font-size: 1.3rem; }
.fig p { margin: 4px 0 0; }
.fig-short { font-weight: 700; }
.fig:target { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(243, 201, 105, 0.35); }
.cta-box { text-align: center; }

.share { max-width: 560px; margin: 0 auto; padding: 8px 16px 40px; text-align: center; }
.share-img { width: 100%; border-radius: 12px; margin: 12px 0; box-shadow: var(--shadow); }
.notfound { max-width: 560px; margin: 0 auto; padding: 40px 16px; text-align: center; }
.legal { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; }
.legal p, .legal li { color: var(--muted); }

.foot { max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); text-align: center; }
.foot nav { margin-bottom: 6px; }
.foot a { color: var(--muted); }

@media (max-width: 880px) {
  .maker { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .steps, .guide .steps { grid-template-columns: 1fr; }
  .az { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .az { grid-template-columns: 1fr; }
  .gallery-grid { gap: 8px; }
  .top-nav { gap: 12px; font-size: 0.92rem; }
}
@media (max-width: 420px) {
  .panel { padding: 16px; }
}
