[hidden] { display: none !important; }
:root {
  --bg: #14121f;
  --bg-2: #1d1a2c;
  --panel: #221f33;
  --line: #36314d;
  --ink: #f4f1ea;
  --muted: #b9b3c9;
  --gold: #f5c451;
  --gold-2: #e0ab2f;
  --red: #e5484d;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); 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.1rem; margin: 1.4em 0 0.5em; }
.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; max-width: 1120px; margin: 0 auto; padding: 16px; }
.brand { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand-mark { color: var(--gold); }
.top-nav a { margin-left: 18px; 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: #1b1608; }
.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 48px;
  display: grid; grid-template-columns: 1.15fr 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: Inter, system-ui, sans-serif; font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
.opt { color: var(--muted); font-weight: 400; }

.photo-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.photo-drop {
  display: flex; align-items: center; gap: 14px; cursor: pointer; flex: 1 1 260px;
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px; color: var(--muted); background: var(--bg-2);
}
.photo-drop:hover { border-color: var(--gold); }
.photo-drop img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.photo-pick.has-photo .photo-drop { border-style: solid; border-color: var(--gold); }

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

.genres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.genre {
  position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer;
  background: var(--bg-2); color: var(--ink); font: inherit; text-align: left;
}
.genre img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; height: auto; }
/* The label sits under the sample, not over it: the samples' own titles are at the bottom of the poster. */
.genre img { display: block; }
.genre span { display: block; padding: 6px 7px 7px; font-size: 0.8rem; font-weight: 600; line-height: 1.2; background: var(--bg-2); }
.genre[aria-checked="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(245, 196, 81, 0.35); }

.human-check { margin: 6px 0 10px; }
.form-error { color: #ff9a9d; font-weight: 600; margin: 10px 0 0; }

.result-panel { position: sticky; top: 12px; }
.empty-box img, .preview-box img { width: 100%; max-width: 420px; margin: 0 auto; border-radius: 10px; aspect-ratio: 2 / 3; object-fit: cover; height: auto; }
.progress-box { padding: 40px 6px; text-align: center; }
.progress-title { font-family: Fraunces, Georgia, serif; font-size: 1.4rem; 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), #ffdf8a); transition: width 0.9s ease; }
.share-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 14px 0 4px; }
.share-note { text-align: center; }
.preview-box > .link-btn, .preview-box > #retitleLeft { display: inline-block; }
.preview-box { text-align: center; }
.buy { margin-top: 12px; }
.fail-box { text-align: center; padding: 30px 6px; }

.how, .gallery, .faq, .genre-text { max-width: 1120px; margin: 0 auto; padding: 8px 16px 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--muted); }
.steps strong { color: var(--ink); display: block; margin-bottom: 4px; }
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 12px; }
.gallery-grid a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.gallery-grid img { border-radius: 10px; margin-bottom: 6px; aspect-ratio: 2 / 3; object-fit: cover; height: auto; }
.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; }

.genre-text { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.genre-copy p { color: var(--muted); }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.ideas li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; }
.genre-sample img { border-radius: 12px; width: 100%; max-width: 360px; }
.genre-sample figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.genre-text .faq { padding: 0; }

.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 a { color: var(--muted); }

@media (max-width: 880px) {
  .maker { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .genre-text { grid-template-columns: 1fr; }
  .top-nav a { margin-left: 12px; }
}
@media (max-width: 420px) {
  .panel { padding: 16px; }
  .genres { gap: 6px; }
  .genre span { font-size: 0.72rem; padding: 5px 5px 6px; }
}
