/* BoothProof — single-theme dark luxe (deliberate: product sells design) */
:root {
  --bg: #12100c;
  --panel: #1c1913;
  --panel2: #24201a;
  --line: #383226;
  --ink: #f0e9da;
  --muted: #a89e88;
  --gold: #d6b14f;
  --gold-deep: #a8842c;
  --ok: #7fb68d;
  --err: #e0705c;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: #12100c; color: #f0e9da;
  font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px; line-height: 1.55;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 28px 20px 80px; }
header.top { display: flex; align-items: baseline; gap: 14px; margin-bottom: 40px; }
.logo { font-family: "Fraunces", Georgia, serif; font-size: 24px; font-weight: 600; color: #f0e9da; letter-spacing: .01em; }
.logo b { color: #d6b14f; font-weight: 600; }
.tagline { color: #a89e88; font-size: 14px; }

h1 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.12; margin: 0 0 12px; text-wrap: balance; }
h1 em { font-style: normal; color: #d6b14f; }
.sub { color: #a89e88; max-width: 62ch; margin: 0 0 30px; font-size: 17px; }

/* dropzone — the front door */
.drop {
  border: 2px dashed #5a4f36; border-radius: 12px; background: #1c1913;
  padding: 42px 24px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.hot { border-color: #d6b14f; background: #24201a; }
.drop .big { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.drop .hint { color: #a89e88; font-size: 14px; }
.drop img.preview { max-height: 220px; max-width: 100%; border-radius: 8px; margin-bottom: 12px; }

.or { display: flex; align-items: center; gap: 14px; color: #a89e88; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 26px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #383226; }

/* form */
.card { background: #1c1913; border: 1px solid #383226; border-radius: 12px; padding: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
label { display: block; font-size: 13px; color: #a89e88; margin: 0 0 4px; letter-spacing: .04em; }
input[type=text], textarea, select {
  width: 100%; background: #12100c; color: #f0e9da; border: 1px solid #383226;
  border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 15px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid #d6b14f; outline-offset: 1px; border-color: #d6b14f; }
.field { margin-bottom: 14px; }

/* choices */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  border: 1px solid #383226; background: #12100c; color: #f0e9da; border-radius: 999px;
  padding: 8px 16px; cursor: pointer; font: inherit; font-size: 14px;
}
.choice.sel { border-color: #d6b14f; background: #2b2416; color: #d6b14f; font-weight: 600; }

.btn {
  display: inline-block; background: #d6b14f; color: #12100c; font-weight: 700; font-size: 16px;
  border: none; border-radius: 10px; padding: 13px 26px; cursor: pointer; font-family: inherit;
}
.btn:hover { background: #e2c264; }
.btn:disabled { background: #5a4f36; color: #241f15; cursor: default; }
.btn.ghost { background: transparent; color: #d6b14f; border: 1px solid #d6b14f; font-weight: 600; }
.btn.ghost:hover { background: #2b2416; }

/* progress */
.progress { text-align: center; padding: 40px 20px; }
.spinner {
  width: 46px; height: 46px; border: 3px solid #383226; border-top-color: #d6b14f;
  border-radius: 50%; margin: 0 auto 18px; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.progress .stage { font-size: 17px; font-weight: 600; }
.progress .detail { color: #a89e88; font-size: 14px; margin-top: 6px; }

/* result */
.result img.tpl { width: 100%; border-radius: 8px; display: block; }
.result .tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 10px; border-radius: 999px; background: #1f2e23; color: #7fb68d; }
.badge.wait { background: #2b2416; color: #d6b14f; }
.err-box { background: #39221d; color: #e0705c; border-radius: 8px; padding: 12px 16px; margin-top: 14px; }

/* gallery */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.gal a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid #383226; }
.gal img { width: 100%; display: block; }
.gal .cap { font-size: 13px; color: #a89e88; padding: 8px 10px; background: #1c1913; }

section.block { margin-top: 56px; }
h2 { font-family: "Fraunces", Georgia, serif; font-size: 24px; font-weight: 600; margin: 0 0 8px; }
footer { margin-top: 70px; color: #a89e88; font-size: 13px; border-top: 1px solid #383226; padding-top: 18px; }
a { color: #d6b14f; }

/* auth modal + account chip */
.account { margin-left: auto; font-size: 13px; color: #8a8a92; }
.account a { color: inherit; }
.modal-back { position: fixed; inset: 0; background: rgba(10,9,18,.66);
  display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal-back[hidden] { display: none; }
.modal { max-width: 380px; width: calc(100% - 40px); }
