/* ============================================================
   MintMark — design system
   Warm, trustworthy, numismatic. Navy ink + gold leaf + cream.
   ============================================================ */

:root {
  --ink: #14213d;
  --ink-soft: #3a4562;
  --ink-mute: #6b7490;
  --gold: #c9a24b;
  --gold-deep: #a5822f;
  --gold-soft: #f0e3c4;
  --copper: #b87333;
  --cream: #faf7f0;
  --cream-deep: #f2ecdf;
  --paper: #ffffff;
  --line: #e5ddc9;
  --green: #2e7d4f;
  --green-soft: #e3f2e9;
  --red: #b3402e;
  --red-soft: #fbe9e5;
  --silver: #8e9aab;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(20, 33, 61, 0.08);
  --shadow-md: 0 4px 16px rgba(20, 33, 61, 0.10);
  --shadow-lg: 0 12px 40px rgba(20, 33, 61, 0.16);

  --wrap: 1080px;
  --wrap-narrow: 720px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3.5vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 16px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 10px; text-decoration: none;
}
.nav a:hover { background: var(--cream-deep); color: var(--ink); }
.nav a.is-active { color: var(--ink); background: var(--cream-deep); }
.nav .nav-cta {
  background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 600;
}
.nav .nav-cta:hover { background: #1d2c4f; color: #fff; }

/* mobile nav */
.nav-toggle { display: none; margin-left: auto; padding: 10px; border-radius: 10px; }
.nav-toggle svg { width: 26px; height: 26px; display: block; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 16px 16px; gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 14px; font-size: 1.05rem; }
  .nav .nav-cta { text-align: center; margin-top: 8px; }
}

/* ---------- footer ---------- */
.site-footer { margin-top: auto; background: var(--ink); color: #cdd4e4; }
.site-footer a { color: #e8ddbe; }
.site-footer__in { max-width: var(--wrap); margin: 0 auto; padding: 44px 20px 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 6px 0; font-size: .92rem; }
.footer-brand p { font-size: .92rem; max-width: 300px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; color: #8d97ad; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; width: 100%; }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }
main { flex: 1; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: 999px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; user-select: none; -webkit-user-select: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #1d2c4f; box-shadow: var(--shadow-md); }
.btn--gold { background: linear-gradient(135deg, #d9b45e, var(--gold-deep)); color: #fff; box-shadow: var(--shadow-sm); }
.btn--gold:hover { box-shadow: var(--shadow-md); filter: brightness(1.04); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink-mute); background: var(--paper); }
.btn--lg { padding: 17px 34px; font-size: 1.08rem; }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--danger { background: var(--red-soft); color: var(--red); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn--block { width: 100%; }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.card--pad { padding: 24px; }
.card--hover { transition: transform .15s ease, box-shadow .15s ease; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.chip--gold { background: var(--gold-soft); color: var(--gold-deep); }
.chip--green { background: var(--green-soft); color: var(--green); }
.chip--red { background: var(--red-soft); color: var(--red); }
.chip--ink { background: var(--cream-deep); color: var(--ink-soft); }
.chip--silver { background: #eef1f5; color: #55647c; }

.rarity-common { background: var(--cream-deep); color: var(--ink-soft); }
.rarity-scarce { background: var(--gold-soft); color: var(--gold-deep); }
.rarity-rare { background: #fdeacc; color: #a15c0f; }
.rarity-extreme { background: var(--red-soft); color: var(--red); }

/* ---------- hero (landing) ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #f5f1e6; }
.hero__in {
  max-width: var(--wrap); margin: 0 auto; padding: 72px 20px 80px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
@media (max-width: 860px) { .hero__in { grid-template-columns: 1fr; padding: 48px 20px 56px; } }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lede { font-size: 1.15rem; color: #c3cbdd; max-width: 480px; margin-bottom: 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__art { position: relative; }
.hero__art img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__badge {
  position: absolute; bottom: -14px; left: 24px;
  background: var(--paper); color: var(--ink); border-radius: 14px;
  padding: 10px 18px; font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-md); display: flex; gap: 8px; align-items: center;
}
@media (max-width: 860px) { .hero__badge { display: none; } }

/* ---------- feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 26px; }
.feature .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-deep); margin-bottom: 14px;
}
.feature .icon svg { width: 26px; height: 26px; }

/* ---------- coin denomination picker ---------- */
.denom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 560px) { .denom-grid { grid-template-columns: repeat(2, 1fr); } }
.denom-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 12px 16px; transition: border-color .12s, transform .12s, box-shadow .12s;
}
.denom-btn:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.denom-btn.is-selected { border-color: var(--gold-deep); background: var(--gold-soft); }
.denom-btn .denom-name { font-weight: 700; font-size: .98rem; }
.denom-btn .denom-sub { font-size: .8rem; color: var(--ink-mute); margin-top: -6px; }
.coin-svg { border-radius: 50%; box-shadow: inset 0 2px 6px rgba(255,255,255,.5), 0 3px 8px rgba(20,33,61,.18); }

/* ---------- wizard ---------- */
.wizard { max-width: 640px; margin: 0 auto; padding: 24px 20px 80px; width: 100%; }
.wizard-progress { display: flex; gap: 6px; margin: 18px 0 30px; }
.wizard-progress span { height: 5px; flex: 1; border-radius: 99px; background: var(--line); transition: background .3s; }
.wizard-progress span.is-done { background: var(--gold); }
.wizard-step { animation: stepIn .28s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wizard h1 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
.wizard .step-sub { color: var(--ink-mute); margin-bottom: 26px; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 12px; }

/* year input */
.year-input-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0 6px; }
.year-step-btn {
  width: 54px; height: 54px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--line); font-size: 1.5rem; font-weight: 700; color: var(--ink-soft);
  display: grid; place-items: center; transition: border-color .12s;
}
.year-step-btn:hover { border-color: var(--gold); }
.year-field {
  width: 170px; text-align: center; font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 700; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 10px 8px; -moz-appearance: textfield; appearance: textfield;
}
.year-field::-webkit-outer-spin-button, .year-field::-webkit-inner-spin-button { -webkit-appearance: none; }
.year-field:focus { border-color: var(--gold); outline: none; }
.year-hint { text-align: center; color: var(--ink-mute); font-size: .9rem; min-height: 24px; }
.year-hint.is-error { color: var(--red); font-weight: 600; }

/* option cards (series disambiguation, mint marks) */
.option-list { display: flex; flex-direction: column; gap: 12px; }
.option-card {
  text-align: left; background: var(--paper); border: 2px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px 20px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: border-color .12s, transform .12s;
}
.option-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.option-card.is-selected { border-color: var(--gold-deep); background: var(--gold-soft); }
.option-card .opt-title { font-weight: 700; margin-bottom: 2px; }
.option-card .opt-desc { font-size: .9rem; color: var(--ink-mute); line-height: 1.45; }
.option-card .mint-mark-letter {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: var(--cream-deep); border: 1.5px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink);
}
.mintmark-helper {
  background: var(--gold-soft); border: 1px solid #e2cf9a; border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 20px; font-size: .95rem; display: flex; gap: 10px;
}
.mintmark-helper svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--gold-deep); }

/* photo capture */
.photo-drop {
  border: 2.5px dashed var(--line); border-radius: var(--radius-lg);
  background: var(--paper); padding: 34px 20px; text-align: center;
  transition: border-color .15s, background .15s; cursor: pointer;
}
.photo-drop:hover, .photo-drop.is-drag { border-color: var(--gold); background: var(--gold-soft); }
.photo-drop svg { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--gold-deep); }
.photo-preview { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.photo-preview img { width: 100%; max-height: 340px; object-fit: cover; }
.photo-preview .photo-remove {
  position: absolute; top: 10px; right: 10px; background: rgba(20,33,61,.75); color: #fff;
  border-radius: 999px; padding: 8px 14px; font-size: .85rem; font-weight: 600;
}

/* ---------- result page ---------- */
.result-hero {
  background: linear-gradient(160deg, var(--ink) 0%, #1e2f55 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 30px 26px;
  box-shadow: var(--shadow-lg); margin-bottom: 26px;
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
}
.result-hero .result-photo {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold); box-shadow: var(--shadow-md); flex-shrink: 0;
}
.result-hero h1 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 4px; }
.result-hero .result-mint { color: var(--gold); font-weight: 600; }
.result-hero .result-series { color: #b9c3d8; font-size: .95rem; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.spec { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.spec .spec-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.spec .spec-value { font-weight: 600; margin-top: 2px; }

.alert-banner {
  border-radius: var(--radius); padding: 16px 18px; margin: 18px 0;
  display: flex; gap: 12px; align-items: flex-start; font-size: .97rem;
}
.alert-banner svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; }
.alert-banner--silver { background: #eef1f5; border: 1px solid #d4dbe5; color: #38455c; }
.alert-banner--jackpot { background: var(--gold-soft); border: 1px solid #e2cf9a; color: #6d5314; }
.alert-banner--key { background: var(--green-soft); border: 1px solid #bfdecb; color: #1e5637; }

/* variety cards */
.variety-card { padding: 20px 22px; margin-bottom: 14px; }
.variety-card .vc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.variety-card h3 { margin: 0; font-size: 1.1rem; }
.variety-card .vc-value { font-weight: 700; color: var(--green); white-space: nowrap; }
.variety-card .vc-spot { background: var(--cream); border-radius: 10px; padding: 12px 14px; font-size: .93rem; margin-top: 10px; }
.variety-card .vc-spot strong { color: var(--gold-deep); }

/* error type cards */
.error-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.error-card { overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.error-card:hover { text-decoration: none; }
.error-card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; background: var(--cream-deep); }
.error-card .ec-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.error-card h3 { margin: 0; font-size: 1.05rem; }
.error-card .ec-desc { font-size: .9rem; color: var(--ink-mute); flex: 1; }
.img-note { font-size: .72rem; color: var(--ink-mute); text-align: right; padding: 4px 8px 0; font-style: italic; }

/* ---------- browse / library ---------- */
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.series-card { padding: 22px; color: inherit; display: block; }
.series-card .sc-years { font-size: .85rem; color: var(--ink-mute); font-weight: 600; }
.series-card h3 { margin: 4px 0 8px; }
.series-card .sc-desc { font-size: .92rem; color: var(--ink-soft); }
.series-card .sc-meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.denom-section-head { display: flex; align-items: center; gap: 14px; margin: 40px 0 18px; }
.denom-section-head:first-child { margin-top: 0; }
.denom-section-head h2 { margin: 0; }
.denom-section-head .rule { flex: 1; height: 1px; background: var(--line); }

/* ---------- learn ---------- */
.lesson-list { counter-reset: lesson; display: flex; flex-direction: column; gap: 14px; }
.lesson-card { display: flex; gap: 18px; padding: 20px 22px; align-items: flex-start; color: inherit; }
.lesson-card .lesson-num {
  counter-increment: lesson; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--gold);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.lesson-card .lesson-num::before { content: counter(lesson); }
.prose { font-size: 1.02rem; }
.prose p { margin-bottom: 1.2em; }
.prose h2 { margin-top: 1.6em; }
.prose .tip {
  background: var(--gold-soft); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin: 20px 0;
}
.prose .warn {
  background: var(--red-soft); border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin: 20px 0;
}

/* glossary + faq */
.glossary-list dt { font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; margin-top: 18px; }
.glossary-list dd { margin: 4px 0 0; color: var(--ink-soft); }
details.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
details.faq-item summary {
  cursor: pointer; font-weight: 600; padding: 16px 20px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--gold-deep); transition: transform .2s; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-body { padding: 0 20px 16px; color: var(--ink-soft); }

/* ---------- collection ---------- */
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.coll-card { overflow: hidden; }
.coll-card .cc-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--cream-deep); }
.coll-card .cc-placeholder { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: var(--cream-deep); }
.coll-card .cc-body { padding: 14px 16px 16px; }
.coll-card h3 { font-size: 1rem; margin-bottom: 2px; }
.coll-card .cc-date { font-size: .82rem; color: var(--ink-mute); }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--gold); }
.empty-state p { color: var(--ink-mute); max-width: 380px; margin: 0 auto 22px; }

/* ---------- onboarding ---------- */
.onboard-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,33,61,.55);
  display: grid; place-items: center; padding: 20px;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.onboard-modal {
  background: var(--paper); border-radius: var(--radius-lg); max-width: 460px; width: 100%;
  overflow: hidden; box-shadow: var(--shadow-lg); animation: stepIn .3s ease;
}
.onboard-modal img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.onboard-modal .ob-body { padding: 24px 26px 26px; text-align: center; }
.onboard-modal h2 { font-size: 1.4rem; }
.onboard-modal p { color: var(--ink-soft); font-size: .97rem; }
.onboard-dots { display: flex; gap: 7px; justify-content: center; margin: 18px 0; }
.onboard-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.onboard-dots span.is-active { background: var(--gold-deep); transform: scale(1.25); }
.ob-actions { display: flex; gap: 10px; }
.ob-actions .btn { flex: 1; }
.ob-skip { display: block; margin: 12px auto 0; color: var(--ink-mute); font-size: .88rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 200;
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(20,33,61,.55);
  display: grid; place-items: center; padding: 20px; animation: fadeIn .2s ease;
}
.modal {
  background: var(--paper); border-radius: var(--radius-lg); max-width: 520px; width: 100%;
  max-height: 86dvh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: stepIn .25s ease;
}
.modal .modal-body { padding: 26px; }
.modal .modal-close { position: sticky; top: 0; float: right; margin: 12px 12px 0 0; background: var(--cream-deep); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .88rem; }

/* ---------- breadcrumbs, misc ---------- */
.crumbs { font-size: .88rem; color: var(--ink-mute); margin: 22px 0 6px; }
.crumbs a { color: var(--ink-mute); }
.page-head { margin: 8px 0 30px; }
.page-head p { color: var(--ink-mute); max-width: 620px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 34px 0; }
.center { text-align: center; }
.muted { color: var(--ink-mute); }
.small { font-size: .88rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* guide article */
.article-hero img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 26px; }
.article-meta { color: var(--ink-mute); font-size: .88rem; margin-bottom: 18px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.guide-card { overflow: hidden; color: inherit; display: flex; flex-direction: column; }
.guide-card img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: var(--cream-deep); }
.guide-card .gc-body { padding: 18px 20px 20px; }

/* skeleton shimmer for images */
img.lazyload { background: linear-gradient(100deg, var(--cream-deep) 40%, #fff 50%, var(--cream-deep) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }

@media print { .site-header, .site-footer, .nav { display: none; } }

/* ---------- scan animation ---------- */
.scan-coin { position: relative; width: 220px; height: 220px; margin: 0 auto; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg); }
.scan-coin img { width: 100%; height: 100%; object-fit: cover; }
.scan-beam {
  position: absolute; left: 0; right: 0; height: 34%; top: -34%;
  background: linear-gradient(to bottom, rgba(201,162,75,0), rgba(201,162,75,.45), rgba(201,162,75,0));
  border-bottom: 2px solid var(--gold);
  animation: scanline 1.6s ease-in-out infinite;
}
@keyframes scanline { 0% { top: -34%; } 50% { top: 100%; } 100% { top: -34%; } }
