/* Card Gremlin — palette sampled from the Gremlin artwork */
:root {
  --ink: #1e1122;
  --cave: #2a1430;
  --plum: #3b1c3a;
  --plum-2: #49213e;
  --wine: #732745;
  --crimson: #c73755;
  --orange: #f39a4a;
  --orange-2: #e07d2e;
  --cream: #f6d6aa;
  --lav: #b48cf0;
  --lime: #a6d34a;
  --text: #fbefe3;
  --muted: #d4bccb;
  --line: rgba(246, 214, 170, 0.14);
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--text);
  background: var(--ink);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(199, 55, 85, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(180, 140, 240, 0.10), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: 0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; color: var(--cream); }
p { margin: 0 0 1em; }
sup { font-size: 0.6em; }
code { background: rgba(0,0,0,.3); padding: .1em .35em; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center-block { text-align: center; }
.center-block img { margin: 0 auto 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 800 1rem/1 var(--body); letter-spacing: .01em;
  padding: .9em 1.4em; border-radius: 999px;
  border: 2px solid var(--line); background: rgba(255,255,255,.04); color: var(--text);
  text-decoration: none; cursor: pointer; transition: transform .12s, background .2s, border-color .2s;
}
.btn:hover { color: var(--text); border-color: var(--cream); transform: translateY(-1px); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--ink); box-shadow: 0 6px 0 var(--orange-2); }
.btn-primary:hover { background: #ffad63; border-color: #ffad63; color: var(--ink); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--orange-2); }
.btn-ghost { border-color: rgba(246, 214, 170, 0.4); }
.btn-block { display: flex; width: 100%; }
.btn-danger { background: transparent; border-color: #e0526b; color: #ff9aac; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6rem 0 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 17, 34, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); font: 400 1.6rem/1 var(--display); }
.brand img { width: 48px; height: auto; }
.brand em { font-style: normal; color: var(--orange); }
.brand:hover { color: var(--cream); }

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.site-nav a, .menu-btn {
  display: flex; align-items: center; gap: 6px;
  font: 700 1rem/1 var(--body); color: var(--text); text-decoration: none;
  padding: 12px 16px; border-radius: 999px; background: none; border: 0; cursor: pointer;
}
.site-nav > ul > li > a:hover, .menu-btn:hover, .has-menu.open .menu-btn { background: rgba(246, 214, 170, 0.08); color: var(--cream); }
.site-nav li.active > a, .site-nav li.active > .menu-btn { color: var(--orange); }
.menu-btn svg { transition: transform .2s; }
.has-menu { position: relative; }
.has-menu.open .menu-btn svg { transform: rotate(180deg); }
.menu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 280px; background: var(--plum); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); display: none;
}
.has-menu.open .menu { display: block; }
@media (hover: hover) and (min-width: 861px) {
  .has-menu:hover .menu, .has-menu:focus-within .menu { display: block; }
  .has-menu::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
}
.menu a { flex-direction: column; align-items: flex-start; gap: 4px; border-radius: 10px; padding: 12px 14px; }
.menu a:hover, .menu a[aria-current] { background: rgba(243, 154, 74, 0.12); }
.menu strong { color: var(--cream); }
.menu small { color: var(--muted); font-weight: 600; font-size: .85rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; color: var(--cream); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 3px; border-radius: 2px; background: currentColor; position: relative; transition: transform .2s, opacity .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -8px; }
.nav-toggle-bars::after { top: 8px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cave); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: var(--shadow); }
  .nav-open .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .site-nav a, .menu-btn { width: 100%; padding: 14px 12px; border-radius: 12px; font-size: 1.1rem; }
  .menu { position: static; transform: none; box-shadow: none; background: rgba(0,0,0,.2); min-width: 0; margin: 4px 0 8px; }
  .brand { font-size: 1.4rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 24px; }
.hero::before {
  content: ''; position: absolute; right: -10%; top: 5%; width: 70vw; max-width: 900px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(180, 140, 240, 0.35) 0%, rgba(199, 55, 85, 0.18) 40%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 48px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 40px; }
}
.eyebrow { font: 800 .85rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--lav); margin-bottom: 1rem; }
.hl { color: var(--orange); display: inline-block; transform: rotate(-2deg); text-shadow: 0 4px 0 var(--wine); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero .fine { color: var(--muted); font-size: .85rem; opacity: .8; }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); animation: lurk 6s ease-in-out infinite; }
@keyframes lurk { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } html { scroll-behavior: auto; } }

.page-hero { padding: 48px 0 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(115, 39, 69, .25), transparent); }
.page-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.page-hero-mark { width: 200px; opacity: .9; transform: rotate(6deg); flex-shrink: 0; }
@media (max-width: 700px) { .page-hero-mark { display: none; } .page-hero { padding-top: 32px; } }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 80px 0; } }
.section-alt { background: rgba(59, 28, 58, .45); border-block: 1px solid var(--line); }
.section-title { color: var(--cream); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 1rem; }
.more { font-weight: 800; text-decoration: none; }

.steps { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 20px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--plum); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--orange); color: var(--ink); font: 400 1.6rem/1 var(--display); margin-bottom: 16px;
  box-shadow: 0 5px 0 var(--orange-2);
}
.steps p { color: var(--muted); margin: 0; }

.section-scene {
  background:
    linear-gradient(90deg, rgba(30, 17, 34, .96) 0%, rgba(30, 17, 34, .88) 45%, rgba(30, 17, 34, .25) 100%),
    url('/assets/img/gremlin-scene-1600.webp') right center / cover no-repeat;
  border-block: 1px solid var(--line);
}
@media (max-width: 899px) {
  .section-scene { background: linear-gradient(180deg, rgba(30,17,34,.85), rgba(30,17,34,.97)), url('/assets/img/gremlin-scene-900.webp') center top / cover no-repeat; }
}
.scene-inner { display: grid; }
.scene-copy { max-width: 620px; }
.scale { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 10px; }
.scale li { display: flex; align-items: center; gap: 14px; }
.scale strong { color: var(--cream); }
.scale small { color: var(--muted); font-size: .92rem; display: block; line-height: 1.35; }
@media (min-width: 700px) { .scale small { display: inline; } }

.section-registry { text-align: left; }

/* ---------- Grade badges ---------- */
.grade-badge {
  --size: 64px;
  flex-shrink: 0; display: inline-grid; place-items: center; width: var(--size); height: var(--size); border-radius: 50%;
  background: var(--orange); color: var(--ink); font: 400 calc(var(--size) * .5)/1 var(--display);
  border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--orange), 0 6px 14px rgba(0,0,0,.4);
}
.grade-badge.xs { --size: 36px; border-width: 2px; box-shadow: 0 0 0 2px var(--orange); }
.grade-badge.sm { --size: 46px; }
.grade-badge.lg { --size: 108px; border-width: 5px; box-shadow: 0 0 0 5px var(--orange), 0 12px 30px rgba(0,0,0,.5); }
.grade-badge.g10, .grade-badge.g9 { background: var(--lav); box-shadow: 0 0 0 3px var(--lav), 0 0 24px rgba(180,140,240,.6); }
.grade-badge.lg.g10, .grade-badge.lg.g9 { box-shadow: 0 0 0 5px var(--lav), 0 0 40px rgba(180,140,240,.6); }
.grade-badge.xs.g10, .grade-badge.xs.g9 { box-shadow: 0 0 0 2px var(--lav); }
.grade-badge.g1, .grade-badge.g2, .grade-badge.g3 { background: var(--lime); box-shadow: 0 0 0 3px var(--lime), 0 6px 14px rgba(0,0,0,.4); }
.grade-badge.xs.g1, .grade-badge.xs.g2, .grade-badge.xs.g3 { box-shadow: 0 0 0 2px var(--lime); }
.grade-badge.lg.g1, .grade-badge.lg.g2, .grade-badge.lg.g3 { box-shadow: 0 0 0 5px var(--lime), 0 12px 30px rgba(0,0,0,.5); }

/* ---------- Card tiles ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.card-tile {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--plum); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .15s, border-color .2s, box-shadow .2s; height: 100%;
}
.card-tile:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(243,154,74,.5); box-shadow: var(--shadow); }
.card-tile-img { position: relative; aspect-ratio: 5 / 7; background: var(--cave); display: grid; place-items: center; padding: 14px; }
.card-tile-img img { width: 100%; height: 100%; object-fit: contain; }
.card-tile-img .grade-badge { position: absolute; right: 10px; bottom: 10px; }
.no-img { color: var(--muted); font-size: .9rem; }
.card-tile-body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; flex: 1; }
.card-tile-body strong { font-size: 1.05rem; line-height: 1.25; }
.card-tile-body small { color: var(--muted); font-size: .85rem; line-height: 1.3; }
.card-tile-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.grade-name { color: var(--orange); font-weight: 800; font-size: .9rem; }
.price { font: 400 1.25rem/1 var(--display); color: var(--cream); }
.store-item { display: flex; flex-direction: column; gap: 12px; }
.store-item .card-tile { flex: 1; }

/* ---------- Grading page ---------- */
.feature-grid { display: grid; gap: 20px; margin-top: 2rem; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--plum); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature p { color: var(--muted); margin: 0; }
.feature em { color: var(--orange); font-style: normal; font-weight: 700; }
.feature-price { background: linear-gradient(135deg, var(--wine), var(--plum)); border-color: rgba(243,154,74,.4); }
.feature-price .big { font: 400 2.2rem/1.1 var(--display); color: var(--orange); margin-bottom: .4em; }

.howto { list-style: none; counter-reset: how; padding: 0; margin: 2rem 0 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .howto { grid-template-columns: repeat(2, 1fr); gap: 20px 28px; } }
.howto li { counter-increment: how; position: relative; padding: 20px 20px 20px 76px; background: var(--plum); border: 1px solid var(--line); border-radius: var(--radius); }
.howto li::before {
  content: counter(how); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lav); color: var(--ink); font: 400 1.3rem/1 var(--display);
}
.howto h3 { margin-bottom: .3em; }
.howto p { margin: 0; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; padding: 16px 32px 16px 0; list-style: none; position: relative; color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--display); color: var(--orange); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); padding-bottom: 8px; }

.notice { background: rgba(180, 140, 240, .12); border: 1px solid rgba(180, 140, 240, .35); border-radius: 14px; padding: 14px 18px; margin-bottom: 28px; }
.empty { text-align: center; padding: 40px 0; }
.empty img { margin: 0 auto 20px; opacity: .8; }
.empty p { color: var(--muted); }

/* ---------- Registry form ---------- */
.registry-form { background: var(--plum); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 1.5rem; }
.registry-form label { display: block; font-weight: 800; margin-bottom: 10px; color: var(--cream); }
.registry-row { display: flex; gap: 12px; flex-wrap: wrap; }
.registry-row input {
  flex: 1 1 220px; min-width: 0; font: 400 1.6rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 18px; border-radius: 14px; border: 2px solid var(--line); background: var(--ink); color: var(--text);
}
.registry-row input::placeholder { color: rgba(212, 188, 203, .35); }
.registry-row input:focus { border-color: var(--orange); outline: none; }
.registry-row .btn { flex: 0 0 auto; }
@media (max-width: 500px) { .registry-row .btn { flex: 1 1 100%; } }
.hint { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
.form-error { color: #ffb3c0; background: rgba(224, 82, 107, .15); border: 1px solid rgba(224, 82, 107, .4); border-radius: 12px; padding: 10px 14px; margin: 12px 0 0; }
.form-error p { margin: 0; }

/* ---------- Card page ---------- */
.card-page { padding-top: 32px; }
.card-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .card-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; } }
.card-photos { position: relative; }
@media (min-width: 900px) { .card-photos { position: sticky; top: 100px; } }
.photo-stage {
  position: relative; aspect-ratio: 5 / 7; max-height: 78vh; margin: 0 auto;
  background: radial-gradient(circle at 50% 40%, rgba(180,140,240,.25), transparent 70%), var(--cave);
  border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: grid; place-items: center;
}
@media (max-width: 899px) { .photo-stage { width: min(100%, calc(56svh * 5 / 7)); padding: 12px; } } /* keeps the grade near the first screen after a QR scan */
.photo { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; border-radius: 10px; opacity: 0; transition: opacity .3s; }
.photo.is-shown { opacity: 1; }
.photo-empty { color: var(--muted); text-align: center; }
.photo-empty img { margin: 0 auto 12px; opacity: .7; }
.photo-switch { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.photo-switch button {
  font: 700 .95rem/1 var(--body); padding: 10px 20px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--line); background: transparent; color: var(--text);
}
.photo-switch button[aria-pressed='true'] { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.label-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--cream); color: var(--ink); border-radius: 12px; padding: 10px 16px; margin-bottom: 22px;
  font: 400 1.05rem/1 var(--display); letter-spacing: .03em;
}
.label-brand { display: flex; align-items: center; gap: 8px; }
.label-brand img { width: 28px; }
.label-serial { font-family: var(--body); font-weight: 800; font-size: .95rem; letter-spacing: .06em; }
.card-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .2em; }
.card-sub { color: var(--muted); font-weight: 600; }
.grade-hero { display: flex; align-items: center; gap: 22px; margin: 28px 0; padding: 22px; background: var(--plum); border: 1px solid var(--line); border-radius: var(--radius); }
.grade-hero p { margin: 0; }
.grade-label { font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lav); }
.grade-title { font: 400 1.9rem/1.1 var(--display); color: var(--orange); margin: 4px 0 6px !important; }
.grade-blurb { color: var(--muted); }
@media (max-width: 480px) {
  .grade-hero { flex-direction: column; text-align: center; }
  .grade-badge.lg { --size: 96px; }
}

.subgrades { display: grid; gap: 14px 28px; margin: 0 0 28px; }
@media (min-width: 560px) { .subgrades { grid-template-columns: 1fr 1fr; } }
.subgrade dt { font-weight: 800; font-size: .95rem; margin-bottom: 6px; color: var(--cream); }
.subgrade dd { margin: 0; display: flex; align-items: center; gap: 12px; }
.subgrade b { font: 400 1.3rem/1 var(--display); color: var(--orange); width: 2ch; text-align: right; }
.meter { flex: 1; height: 12px; border-radius: 999px; background: rgba(0,0,0,.35); overflow: hidden; border: 1px solid var(--line); }
.meter span { display: block; height: 100%; width: calc(var(--v) * 10%); background: linear-gradient(90deg, var(--crimson), var(--orange)); border-radius: inherit; }

.gremlin-says { margin: 0 0 28px; display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; align-items: start; }
.gremlin-says img { border-radius: 50%; grid-row: span 2; border: 2px solid var(--orange); }
.gremlin-says blockquote {
  margin: 0; position: relative; background: var(--cream); color: var(--ink); padding: 16px 20px;
  border-radius: 6px 18px 18px 18px; font-weight: 600; font-size: 1.05rem;
}
.gremlin-says figcaption { font-size: .85rem; color: var(--muted); font-weight: 700; }

.verified { display: flex; align-items: center; gap: 12px; color: var(--lime); font-weight: 800; padding: 16px 0; border-top: 1px solid var(--line); }
.verified small { color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.for-sale { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--wine), var(--plum)); border: 1px solid rgba(243,154,74,.4); }
.for-sale p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(0,0,0,.25); padding: 40px 0 28px; margin-top: 40px; }
.footer-inner { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand p { margin: 0; color: var(--muted); }
.footer-brand strong { color: var(--cream); font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--orange); }
.fine { font-size: .82rem; color: var(--muted); opacity: .75; margin: 0; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }

.preview-bar { background: var(--lav); color: var(--ink); text-align: center; font-weight: 800; font-size: .9rem; padding: 8px 16px; }

/* ---------- Order forms (/submit, /buy) ---------- */
.order-form { display: grid; gap: 22px; }
.form-step { border: 1px solid var(--line); border-radius: var(--radius); background: var(--plum); padding: 22px 22px 26px; margin: 0; min-width: 0; }
.form-step legend { display: flex; align-items: center; gap: 12px; font: 400 1.5rem/1 var(--display); color: var(--cream); padding: 0 8px; }
.form-step legend .step-num { width: 40px; height: 40px; font-size: 1.3rem; margin: 0; box-shadow: 0 4px 0 var(--orange-2); }
.form-step > .hint:first-of-type { margin: 0 0 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choice-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice-body { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 2px solid var(--line); border-radius: 14px; background: var(--ink); transition: border-color .15s, background .15s; }
.choice-body strong { color: var(--cream); font-size: 1.05rem; }
.choice-body small { color: var(--muted); line-height: 1.4; }
.choice-price { font: 400 1.4rem/1.1 var(--display); color: var(--orange); margin-top: 4px; }
.choice-price small { font: 600 .85rem var(--body); color: var(--muted); }
.choice input:checked + .choice-body { border-color: var(--orange); background: rgba(243, 154, 74, .1); box-shadow: 0 0 0 1px var(--orange); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--lav); outline-offset: 2px; }

.field-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; } .field.wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; font-weight: 800; color: var(--cream); font-size: .95rem; margin-top: 2px; }
.field small { color: var(--muted); font-weight: 600; }
.field input, .field textarea {
  width: 100%; font: 600 1rem/1.3 var(--body); color: var(--text); background: var(--ink);
  border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.field input:focus, .field textarea:focus { border-color: var(--orange); outline: none; }
.field input[aria-invalid="true"] { border-color: #e0526b; }
.field-error { display: block; color: #ffb3c0; font-weight: 700; font-size: .9rem; margin-top: 6px; }
.form-step > .field.wide { margin-top: 14px; }
.form-summary { margin-bottom: 4px; }

.card-rows { display: grid; gap: 12px; }
.card-row { position: relative; display: grid; gap: 10px; padding: 14px 14px 14px 52px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, .18); }
@media (min-width: 760px) { .card-row { grid-template-columns: 2fr 1.3fr 1.3fr 1fr; padding-right: 48px; } }
.card-row .field span { font-size: .8rem; }
.card-row .field input { padding: 10px 12px; }
.card-row-num { position: absolute; left: 14px; top: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--lav); color: var(--ink); font: 400 .95rem/1 var(--display); }
.row-remove { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.row-remove:hover { color: #ff9aac; border-color: #e0526b; }
.add-row { margin-top: 14px; }

.summary { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.summary td, .summary th { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.summary td:last-child, .summary th:last-child { text-align: right; white-space: nowrap; }
.summary tfoot th { font: 400 1.5rem/1 var(--display); color: var(--orange); border-bottom: 0; padding-top: 14px; }
.check-line { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; margin-bottom: 18px; }
.check-line input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--orange); flex-shrink: 0; }
.btn-big { font-size: 1.15rem; padding: 1.05em 1.8em; width: 100%; }
@media (min-width: 640px) { .btn-big { width: auto; } }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.secure-note { margin-top: 14px; }

.buy-card { display: flex; align-items: center; gap: 18px; padding: 16px; margin: 20px 0; background: var(--plum); border: 1px solid var(--line); border-radius: var(--radius); }
.buy-card img { width: 90px; border-radius: 8px; }
.buy-card > div { flex: 1; min-width: 0; }
.buy-card p { margin: 0 0 4px; }
.buy-title { font: 400 1.4rem/1.1 var(--display); color: var(--cream); }
.buy-card .price { font-size: 1.8rem; color: var(--orange); }
.buy-card .grade-badge { vertical-align: middle; margin-right: 6px; }

/* ---------- Customer order page ---------- */
.order-page h1 { margin-bottom: .1em; }
.order-status { display: inline-block; font-weight: 800; padding: 6px 14px; border-radius: 999px; background: rgba(243, 154, 74, .15); color: var(--orange); border: 1px solid rgba(243, 154, 74, .45); margin-bottom: 22px; }
.order-status.status-cancelled { background: rgba(224, 82, 107, .12); color: #ff9aac; border-color: rgba(224, 82, 107, .45); }
.order-status.status-complete, .order-status.status-shipped { background: rgba(166, 211, 74, .12); color: var(--lime); border-color: rgba(166, 211, 74, .45); }
.notice p, .form-error p { margin: 0; }
.notice-good { background: rgba(166, 211, 74, .12); border-color: rgba(166, 211, 74, .45); }
.order-page .notice, .order-page .form-error { margin: 0 0 22px; }
.pay-box, .send-box { background: var(--plum); border: 1px solid rgba(243, 154, 74, .45); border-radius: var(--radius); padding: 22px; margin-bottom: 28px; }
.pay-box form { margin: 0; }
.send-box h2 { color: var(--orange); }
.send-box ol { padding-left: 1.3em; display: grid; gap: 14px; }
.send-box li > .btn { margin: 0 12px 6px 0; }
.send-box address { font-style: normal; font-weight: 800; color: var(--cream); background: var(--ink); border-radius: 12px; padding: 14px 18px; margin-top: 10px; line-height: 1.5; }

.timeline { list-style: none; padding: 0; margin: 0 0 30px; display: flex; }
.timeline li { flex: 1; position: relative; text-align: center; font-weight: 700; font-size: .9rem; color: var(--muted); padding-top: 34px; }
.timeline li::before { content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--plum); border: 3px solid var(--line); z-index: 1; }
.timeline li::after { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.timeline li:first-child::after { display: none; }
.timeline li.done { color: var(--cream); }
.timeline li.done::before { background: var(--orange); border-color: var(--orange); }
.timeline li.done::after { background: var(--orange); }
.timeline li.current::before { box-shadow: 0 0 0 5px rgba(243, 154, 74, .3); }

.order-h2 { font-size: 1.6rem; margin-top: 10px; }
.order-items { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.order-items li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; background: var(--plum); border: 1px solid var(--line); border-radius: 14px; }
.order-items strong { display: block; }
.order-items small { color: var(--muted); }
.order-item-grade { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.order-meta { display: grid; gap: 20px; margin-top: 10px; }
@media (min-width: 640px) { .order-meta { grid-template-columns: 1fr 1fr; } }
.order-meta h3 { font-size: 1.1rem; }
.order-meta address { font-style: normal; color: var(--muted); }

/* ---------- Terms / privacy ---------- */
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }
.prose strong { color: var(--text); }
