:root {
  --bg: #0a0806;
  --bg-soft: #141009;
  --ink: #f3ece0;
  --ink-dim: #9a8f7d;
  --amber: #e6a23c;
  --amber-deep: #b9761d;
  --line: #2a2117;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(230,162,60,.16), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }

/* Brand */
.brand { text-align: center; margin: 24px 0 8px; }
.brand .mark {
  width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #1a130a 0 30%, var(--amber) 34% 58%, var(--amber-deep) 60% 100%);
  box-shadow: 0 0 44px rgba(230,162,60,.45);
}
.brand h1 { font-family: var(--serif); font-weight: 600; letter-spacing:.14em; font-size: 30px; margin: 0; }
.brand .cycle { color: var(--ink-dim); letter-spacing:.28em; text-transform: uppercase; font-size: 11px; margin-top: 6px; }

h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 10px; }
p.lead { color: var(--ink-dim); line-height: 1.6; margin: 0 0 20px; }

.card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin-top: 20px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--amber); color: #1a1206; border: none; cursor: pointer;
  font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 999px;
  width: 100%; transition: transform .06s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.fld { width: 100%; background: #0d0a06; border: 1px solid var(--line); color: var(--ink); padding: 13px 14px; border-radius: 10px; font-size: 15px; margin-bottom: 12px; }
.fld::placeholder { color: #6f6552; }
.fld:focus { outline: none; border-color: var(--amber); }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; color: var(--ink-dim); font-size: 13px; line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--amber); }
.consent a { color: var(--amber); }

.hint { color: var(--ink-dim); font-size: 12.5px; text-align: center; margin-top: 14px; }

/* States */
.state { display: none; }
.state.active { display: block; }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--amber); animation: spin 1s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Gallery grid */
.count { color: var(--ink-dim); font-size: 13px; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #000; }
.grid img { width: 100%; height: 100%; object-fit: cover; }

/* Hero portrait (strongest match) */
.hero { margin: 0 0 16px; position: relative; }
.hero img { width: 100%; border-radius: 12px; display: block; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.hero figcaption { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.55); color: var(--amber); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.hero .heroShare { position: absolute; bottom: 12px; right: 12px; width: auto; padding: 9px 16px; font-size: 13px; }

/* Per-photo share button in the grid */
.grid .cell { position: relative; }
.grid .cell .sh { position: absolute; bottom: 6px; right: 6px; width: 30px; height: 30px; border: none; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; cursor: pointer; line-height: 1; }
.grid .cell .sh:hover { background: var(--amber); color: #1a1206; }

.follow { display: block; margin-top: 14px; background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af); color: #fff; }
.review-btns { display: flex; flex-direction: column; gap: 10px; }

.bar { position: sticky; bottom: 0; padding: 16px 0 0; background: linear-gradient(transparent, var(--bg) 40%); margin-top: 20px; }

/* Review block — appears only after gallery is shown */
.review { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.review p { color: var(--ink-dim); line-height: 1.65; font-size: 14px; }
.review .q { color: var(--ink); font-weight: 600; font-size: 14px; margin: 18px 0 10px; }
.reviewroute { margin-top: 12px; }
#platformBtns .btn { display: block; margin-bottom: 8px; }

.foot { text-align: center; color: var(--ink-dim); font-size: 11px; letter-spacing:.2em; text-transform: uppercase; margin-top: 40px; }
.err { color: #e88; font-size: 14px; margin-top: 14px; }
