/* Beast Card — shared styles. Matches beastroph.com (black, gold, paper). */
:root {
  color-scheme: dark;
  --ink: #0A0A0A;
  --panel: #15120F;
  --panel-2: #100E0C;
  --line: rgba(218, 167, 57, 0.18);
  --line-strong: rgba(218, 167, 57, 0.5);
  --text: #E4DFD7;
  --muted: #C6C0B7;
  --dim: #8F8A80;
  --paper: #FBFAF6;
  --gold: #DAA739;
  --gold-deep: #B98117;
  --gold-grad: linear-gradient(150deg, #E8C86E 0%, #DAA739 42%, #B98117 100%);
  --danger: #E0826B;
  --ok: #9FC98B;
  --radius: 2px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- header / footer (same as the live site) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 10, 0.93);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(218, 167, 57, 0.22);
}
.site-header .bar {
  max-width: 1160px; margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 30px; height: auto; }
.brand span { font-family: Anton, sans-serif; font-size: 17px; letter-spacing: 0.1em; color: var(--paper); }
.site-nav { display: flex; align-items: center; gap: clamp(2px, 1.6vw, 22px); flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  min-height: 44px; display: flex; align-items: center; padding: 0 10px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.site-nav a[aria-current="page"] { color: var(--gold); }
@media (max-width: 560px) { .site-nav a.hide-sm { display: none; } }

.site-footer { margin-top: clamp(56px, 7vw, 104px); border-top: 1px solid rgba(218, 167, 57, 0.22); background: var(--panel-2); }
.site-footer .bar {
  max-width: 1160px; margin: 0 auto; padding: clamp(30px, 4vw, 48px) var(--gutter);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
}
.site-footer p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--dim); }
.site-footer .tag { font-family: Anton, sans-serif; font-size: 13px; letter-spacing: 0.2em; color: var(--dim); }
.site-footer nav { display: flex; gap: 18px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

/* ---------- layout ---------- */
.wrap { max-width: 560px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gutter) 0; }
.eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3 { font-family: Anton, sans-serif; font-weight: 400; color: var(--paper); margin: 0; }
h1 { font-size: clamp(38px, 9vw, 54px); line-height: 1.03; }
h2 { font-size: 26px; line-height: 1.1; letter-spacing: 0.01em; }
h3 { font-size: 20px; line-height: 1.15; letter-spacing: 0.02em; }
.lede { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 14px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 24px; }
.stack > * + * { margin-top: 16px; }
.section { margin-top: 28px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-bottom: 2px solid var(--paper); padding-bottom: 8px; margin-bottom: 14px;
}
.section-head .meta { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: var(--radius);
  font-family: Anton, sans-serif; font-size: 17px; letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; transition: transform 80ms ease, opacity 120ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--gold-grad); color: var(--ink); }
.btn-line { background: transparent; color: var(--paper); border: 1px solid var(--line-strong); }
.btn-block { width: 100%; }
.btn-text { background: none; border: 0; padding: 8px 0; color: var(--dim); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.btn-text:hover { color: var(--muted); }
.g-mark { width: 20px; height: 20px; background: #fff; border-radius: 50%; display: inline-grid; place-items: center; }
.g-mark svg { width: 13px; height: 13px; }

/* ---------- member card ---------- */
.member-card {
  position: relative; background: #0D0C0B; border: 1.5px solid var(--gold); border-radius: 6px;
  padding: 20px 20px 22px; overflow: hidden;
}
.member-card::before {
  content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; height: 90%;
  background: radial-gradient(closest-side, rgba(218, 167, 57, 0.14), transparent); pointer-events: none;
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-top .label { font-size: 12px; letter-spacing: 0.24em; color: var(--gold); text-transform: uppercase; }
.card-top .name { font-family: Anton, sans-serif; font-size: 24px; color: var(--paper); letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.1; margin-top: 4px; word-break: break-word; }
.card-top img { width: 34px; flex: 0 0 auto; }
.qr-box {
  margin: 18px auto 0; width: min(260px, 100%); aspect-ratio: 1; background: var(--paper);
  border-radius: 4px; padding: 12px; display: grid; place-items: center; position: relative;
}
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-box.stale svg { filter: blur(5px); opacity: 0.35; }
.qr-note {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 18px;
  color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: 0.04em;
}
.qr-timer { height: 2px; background: rgba(218, 167, 57, 0.2); margin: 12px auto 0; width: min(260px, 100%); overflow: hidden; border-radius: 1px; }
.qr-timer i { display: block; height: 100%; background: var(--gold); width: 100%; transition: width 1s linear; }
.member-code { text-align: center; margin-top: 14px; }
.member-code .k { font-size: 12px; letter-spacing: 0.24em; color: var(--dim); text-transform: uppercase; }
.member-code .v { font-family: Anton, sans-serif; font-size: 26px; letter-spacing: 0.16em; color: var(--paper); margin-top: 2px; }

/* ---------- stamps ---------- */
.stamp-count { display: flex; align-items: baseline; gap: 12px; }
.stamp-count .big { font-family: Anton, sans-serif; font-size: 44px; color: var(--paper); line-height: 1; }
.stamp-count .of { font-size: 16px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.stamp-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin-top: 14px; }
@media (max-width: 380px) { .stamp-grid { grid-template-columns: repeat(9, 1fr); gap: 4px; } }
.stamp {
  aspect-ratio: 1; border: 1.5px solid rgba(218, 167, 57, 0.35); border-radius: 2px;
  display: grid; place-items: center; font-family: Anton, sans-serif; font-size: 13px; color: var(--dim);
}
.stamp.on { background: var(--gold-grad); border-color: transparent; }
.stamp.on img { width: 56%; filter: brightness(0); opacity: 0.85; }
.stamp-foot { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- rewards ---------- */
.reward {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  padding: 16px; border: 1.5px solid var(--gold); border-radius: 4px; background: rgba(218, 167, 57, 0.06);
}
.reward + .reward { margin-top: 10px; }
.reward .badge {
  font-family: Anton, sans-serif; font-size: 20px; color: var(--ink); background: var(--gold-grad);
  padding: 8px 10px; border-radius: 2px; letter-spacing: 0.02em;
}
.reward .t { font-family: Anton, sans-serif; font-size: 17px; color: var(--paper); letter-spacing: 0.03em; text-transform: uppercase; }
.reward .s { font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); font-size: 15px; }

/* ---------- birthday ---------- */
.notice {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  border: 1px solid var(--line-strong); background: rgba(218, 167, 57, 0.08); border-radius: var(--radius);
  padding: 14px 16px;
}
.notice .t { font-size: 15px; color: var(--paper); }
.notice .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
label.f { display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
select, input[type="text"], input[inputmode] {
  width: 100%; min-height: 54px; padding: 0 14px; background: var(--ink); color: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--radius); font-family: Oswald, sans-serif; font-size: 18px;
  -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 24px, calc(100% - 14px) 24px; background-size: 6px 6px; background-repeat: no-repeat; }
select:focus, input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* ---------- history ---------- */
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.history .what { color: var(--paper); font-size: 16px; }
.history .when { color: var(--dim); font-size: 13px; text-align: right; white-space: nowrap; }
.history .sub { color: var(--dim); font-size: 13px; grid-column: 1 / -1; }
.x2 { display: inline-block; margin-left: 6px; font-size: 11px; letter-spacing: 0.12em; color: var(--ink); background: var(--gold-grad); padding: 1px 6px; border-radius: 2px; vertical-align: 2px; }

/* ---------- steps (signed-out) ---------- */
.steps { display: grid; gap: 10px; margin-top: 28px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 18px 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.step .n { font-family: Anton, sans-serif; font-size: 22px; color: var(--gold); }
.step p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.rules { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

/* ---------- misc ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60;
  background: var(--panel); border: 1px solid var(--line-strong); color: var(--paper);
  padding: 12px 18px; border-radius: var(--radius); font-size: 15px; max-width: calc(100% - 32px);
}
.toast.err { border-color: var(--danger); }
.spinner { width: 28px; height: 28px; border: 2px solid rgba(218, 167, 57, 0.25); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .qr-timer i { transition: none; } }
.staff-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-family: Anton, sans-serif; letter-spacing: 0.05em; color: var(--gold); }

/* ---------- badges (Beast of the Month, house records) ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bdg { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 2px; background: var(--gold-grad); color: var(--ink);
  font-family: Anton, sans-serif; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.bdg.rec { background: #0D0C0B; color: var(--gold); border: 1.5px solid var(--gold); }
.bdg .claw { height: 16px; width: auto; }
.reward.crown { border-width: 2px; background: linear-gradient(135deg, rgba(218,167,57,.18), rgba(218,167,57,.04)); }

/* ---------- public "open today" strip ---------- */
.open-status { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 14px; margin: 0 0 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(218,167,57,.05); color: var(--muted); font-size: 15px; }
.open-status b { color: var(--paper); font-weight: 500; }
.open-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #57524A; flex: none; }
.open-status .dot.on { background: var(--gold); box-shadow: 0 0 0 4px rgba(218,167,57,.18); }
.open-status .x2-chip { margin-left: auto; background: var(--gold-grad); color: var(--ink); font-family: Anton, sans-serif; letter-spacing: .08em; padding: 4px 10px; border-radius: 2px; font-size: 13px; }

/* email opt-ins on the card */
.opts { display: grid; gap: 8px; margin-top: 12px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; color: var(--paper); font-size: 15px; line-height: 1.4; }
.opt input { width: 24px; height: 24px; accent-color: var(--gold); flex: 0 0 auto; margin: 0; }
.opt strong { color: var(--gold); font-weight: 500; }
.opt small { color: var(--muted); font-size: 13px; }

/* "Add to home screen" */
.install { position: relative; display: block; margin: 0 0 16px; padding: 14px 44px 14px 16px; border: 1px solid var(--gold); border-radius: var(--radius); background: rgba(218, 167, 57, 0.08); }
.install-t { display: grid; gap: 4px; color: var(--paper); font-size: 15px; line-height: 1.4; }
.install-t strong { font-family: Anton, sans-serif; font-weight: 400; font-size: 18px; letter-spacing: .03em; color: var(--gold); text-transform: uppercase; }
.install-t span { color: var(--muted); font-size: 14px; }
.install-t b { color: var(--paper); font-weight: 500; }
.install-t .btn { margin-top: 8px; justify-self: start; min-height: 46px; }
.install-x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; }

/* "Download the app" sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.72); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.sheet-wrap[hidden] { display: none; }
.sheet { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); border: 1px solid var(--gold); border-radius: 12px; padding: 22px 18px 18px; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } }
.sheet h2 { font-size: 24px; line-height: 1.1; margin: 0 36px 10px 0; }
.sheet-why { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 16px; }
.sheet-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; }
.sheet-tabs { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.sheet-tabs button { flex: 1; background: none; border: 0; padding: 10px 8px; min-height: 44px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.sheet-tabs button[aria-pressed="true"] { background: var(--gold-grad); color: var(--ink); }
.sheet-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sheet-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; color: var(--paper); font-size: 15px; line-height: 1.4; }
.sheet-steps b { color: var(--gold); font-weight: 500; }
.sheet-ico { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); font-size: 20px; }

/* "Stamp added!" celebration */
.cel-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.78); animation: cel-fade .2s ease-out; }
.cel-wrap[hidden] { display: none; }
.cel { position: relative; width: 100%; max-width: 380px; text-align: center; background: var(--panel); border: 1.5px solid var(--gold); border-radius: 14px; padding: 30px 22px 18px; overflow: hidden; animation: cel-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.cel-burst { position: absolute; inset: -40%; background: radial-gradient(circle, rgba(218, 167, 57, .35) 0%, rgba(218, 167, 57, 0) 55%); animation: cel-glow 1.6s ease-out; pointer-events: none; }
.cel-claw { position: relative; width: 120px; opacity: .9; margin-bottom: 6px; }
.cel-big { position: relative; font-family: Anton, sans-serif; font-size: 52px; line-height: 1; letter-spacing: .02em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cel-line { position: relative; color: var(--paper); font-size: 17px; margin: 12px 0 16px; }
.cel-ask { position: relative; color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.cel .btn { position: relative; }
.cel-close { position: relative; color: var(--muted); }
.share-btn { color: var(--gold); font-size: 13px; letter-spacing: .08em; margin-left: 6px; padding: 0; }
@keyframes cel-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes cel-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cel-glow { from { transform: scale(.3); opacity: 1; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cel, .cel-wrap, .cel-burst { animation: none; } }
