/* TCG Stands storefront. Tokens first; change them here. */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2-variations'), url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
/* Fallback sized to Archivo so the swap moves as little as possible. */
@font-face {
  font-family: 'Archivo Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans');
  size-adjust: 97%;
  ascent-override: 88%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --putty: #E5E7E2;
  --paper: #FBFBF9;
  --ink: #22262A;
  --plate: #23272B;
  --plate-top: #3B4046;
  --hot: #E03A1E;        /* large type and marks only: 3.52:1 on putty */
  --hot-text: #B3260F;   /* red for small text: 5.27:1 on putty, 6.33:1 on paper */
  --mute: #5F6569;       /* 4.75:1 on putty */
  --line: #BEC2BC;       /* decorative hairlines only */
  --line-strong: #787D7C; /* control borders: 3.36:1 on putty, 4.04:1 on paper */
  --holo: linear-gradient(120deg, #8BE9FF, #FFD1F5, #FFF6A8, #B7FFD1, #A4C8FF);

  --font: 'Archivo', 'Archivo Fallback', Arial, sans-serif;
  --wide: 118%;
  --narrow: 68%;

  --max: 1200px;
  --gutter: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --section: clamp(56px, 8vw, 104px);
  --radius: 6px;

  /* the plate each figure stands on */
  --plate-h: 22px;       /* total bar height */
  --plate-lip: 15px;     /* the lit top surface */

  /* photos: a print standing on the ledge. Light backdrops are lifted toward the page,
     the top edges fade out, the bottom edge sits on the plate. */
  --photo-filter: url(#photo-lift);
  --photo-mask: radial-gradient(ellipse 88% 82% at 50% 74%, #000 58%, transparent 96%);
  --photo-radius: 8px 8px 2px 2px;
  --stage-drop: 6px;     /* how far the print overlaps the plate's top surface */

  color-scheme: light;
}
/* Switch: a hard-edged paper mat instead of the soft print (for dark or busy photo backgrounds). */
html[data-photo="mat"] { --photo-filter: none; --photo-mask: none; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--putty);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 720px) { body { font-size: 17px; } }

[hidden] { display: none !important; }
h1, h2, h3, p, ul, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
legend { padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
summary { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible { outline-offset: 3px; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); z-index: 50; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */

h1 {
  font-stretch: var(--wide);
  font-weight: 780;
  font-size: clamp(2rem, 1.1rem + 2.7vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.0;
  max-width: 40ch;
  text-wrap: balance;
}
h2 {
  font-stretch: var(--wide);
  font-weight: 760;
  font-size: clamp(1.55rem, 1.05rem + 1.8vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
h3 {
  font-weight: 620;
  font-size: 1.0625rem;
  line-height: 1.3;
}
.lede, .section-lede {
  max-width: 62ch;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.2rem);
  line-height: 1.45;
  color: var(--ink);
}
.lede { max-width: 84ch; }
@media (min-width: 1100px) { .lede { max-width: none; } }
.num {
  font-stretch: var(--narrow);
  font-weight: 680;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0;
}

/* ---------- layout ---------- */

.masthead, .hero, .live, .shop, .custom, .foot {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; white-space: nowrap;
}
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name {
  font-stretch: var(--wide);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.masthead-actions { display: flex; align-items: center; gap: 24px; }
#masthead-store { display: none; } /* the hero has the same button right below on a phone */
.sections { display: none; gap: 4px 20px; }
@media (min-width: 720px) { .sections { display: flex; } #masthead-store:not([hidden]) { display: inline-flex; } }
.sections a {
  font-weight: 600; text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.sections a:hover { border-bottom-color: var(--ink); }

/* The first screen says what this is and sends people to eBay. On a phone the first figures start right below it. */
.hero { padding: clamp(20px, 4vw, 48px) 0 clamp(32px, 5vw, 56px); }
.hero h1 { max-width: 16ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 519px) { .hero-actions .btn { flex: 1 1 0; padding-inline: 12px; } }
/* With no eBay link to show yet, the figures button is the main one. */
#hero-store[hidden] + .btn-quiet { background: var(--ink); color: var(--paper); }
#hero-store[hidden] + .btn-quiet:hover { background: var(--plate-top); border-color: var(--plate-top); }

/* ---------- the stage: where a figure stands ---------- */

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  --turn-h: calc(var(--plate-h) - var(--stage-drop));
}
.stage-frame {
  position: absolute; inset: 0;
  border-radius: 6px;
}
.stage.is-turnable .stage-frame {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.stage[data-grab] .stage-frame { cursor: grabbing; }
.stage-frame:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
/* Each view is a print: a blurred copy of the photo fills the letterbox of odd aspect ratios, the photo sits on top. */
.stage-print {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: var(--photo-radius);
  opacity: 0;
  filter: var(--photo-filter);
  -webkit-mask-image: var(--photo-mask);
  mask-image: var(--photo-mask);
  pointer-events: none;
}
.stage-print.is-on { opacity: 1; }
.stage-fill, .stage-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  -webkit-user-drag: none;
}
.stage-fill { object-fit: cover; filter: blur(28px) saturate(0.5); opacity: 0.55; transform: scale(1.25); }
.stage-img { object-fit: contain; object-position: 50% 100%; }
/* While the first photo is still on its way, and when there is none: a plain quiet tile. */
.stage.is-empty .stage-frame, .stage[data-art] .stage-frame { background: rgba(34,38,42,0.05); border-radius: var(--photo-radius); }
.stage-none { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; color: var(--mute); font-size: 0.8125rem; font-weight: 500; }
html[data-photo="mat"] .stage-print { background: var(--paper); border-radius: 4px; box-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 8px 18px -8px rgba(0,0,0,0.35); padding: 4px; }
html[data-photo="mat"] .stage-fill { display: none; }
html[data-photo="mat"] .stage-img { position: static; }

.stage-btn {
  position: absolute; top: 46%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  cursor: pointer;
  z-index: 2;
}
.stage-prev { left: 0; }
.stage-next { right: 0; }
.stage.is-turnable:hover .stage-btn, .stage.is-turnable:focus-within .stage-btn { opacity: 1; pointer-events: auto; }
.stage-btn:hover { background: var(--ink); color: var(--paper); }
@media (hover: none) { .stage-btn { display: none; } }

/* The front edge of the turntable, drawn on the plate strip under the print: one dash per view, the current one lit. */
.turn {
  position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%);
  width: 108px; height: var(--turn-h);
  z-index: 2;
}
.turn-arc { width: 100%; height: 100%; overflow: visible; }
.turn-base, .turn-active { fill: none; stroke: var(--paper); stroke-width: 3.5; stroke-linecap: round; }
.turn-base { stroke-opacity: 0.45; }
.turn-active { stroke-opacity: 1; }
.turn.is-loading .turn-active { stroke-opacity: 0.55; }
.turn-hits { position: absolute; inset: 0; display: flex; }
.turn-hit { flex: 1; background: transparent; border: 0; padding: 0; cursor: pointer; }
.turn-hit:hover ~ .turn-hit { cursor: pointer; }

/* ---------- cards: live listings and figures ---------- */

.live { padding-bottom: var(--section); }
.live-dot {
  display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%;
  background: var(--hot); margin-right: 0.35em; vertical-align: 0.12em;
}
.live-summary { color: var(--mute); max-width: 72ch; }
.live-summary:empty { display: none; }
.live-summary time { color: var(--mute); }
.live-foot { margin-top: 24px; }

/* Two cards across on a phone, more as there is room. The sideways shelf is gone: nothing hides off-screen. */
.shelf, .products {
  --card-pad: clamp(6px, 1.6vw, 14px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 32px;
  margin-inline: calc(var(--card-pad) * -1);
}
@media (min-width: 720px) { .shelf, .products { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; } }
@media (min-width: 1000px) { .shelf, .products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Live listings: two rows at most, then the button to everything on eBay. */
@media (max-width: 719px) { .shelf .lot:nth-child(n+5) { display: none; } }
@media (min-width: 720px) and (max-width: 999px) { .shelf .lot:nth-child(n+7) { display: none; } }

.lot, .product { position: relative; min-width: 0; padding: 0 var(--card-pad); }
.lot-link {
  display: grid; grid-template-rows: auto 1fr; height: 100%;
  text-decoration: none; color: inherit; border-radius: 4px;
}
/* Each figure stands on its own small plate, which hangs below the square photo. */
.lot-figure, .product-figure {
  position: relative; display: block;
  aspect-ratio: 1;
  margin-bottom: calc(var(--plate-h) - var(--stage-drop));
}
.lot-figure::after, .product-figure::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: calc(var(--stage-drop) - var(--plate-h)); height: var(--plate-h);
  background: linear-gradient(var(--plate-top) 0 var(--plate-lip), var(--plate) var(--plate-lip));
  z-index: 0;
}
.lot-figure .stage, .product-figure .stage { position: absolute; inset: 0; z-index: 1; height: auto; }

.lot-info { display: grid; gap: 4px; align-content: start; padding-top: 14px; }
.lot-time { display: grid; line-height: 1.05; min-height: 2.6rem; align-content: end; }
.lot-time .num { font-size: 1.7rem; }
.lot-time .lot-when { font-size: 0.8125rem; color: var(--mute); font-weight: 500; margin-top: 2px; }
.lot[data-state="soon"] .lot-time .num { color: var(--hot); font-size: 1.9rem; }
.lot[data-state="soon"] .lot-time .lot-when { color: var(--hot-text); font-weight: 600; }
.lot[data-state="ended"] .lot-time .num { color: var(--mute); font-size: 1.4rem; }
.lot[data-state="ended"] .lot-figure { opacity: 0.55; }
.lot-time.lot-time-bin { font-size: 0.875rem; color: var(--mute); font-weight: 500; }
.lot-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 2px; }
.lot-price .num { font-size: 1.4rem; }
.lot-bids { font-size: 0.8125rem; color: var(--mute); font-weight: 500; }
.lot-title {
  font-size: 0.875rem; font-weight: 500; line-height: 1.3; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.lot-cta { margin-top: 8px; width: 100%; }
.lot-link:hover .lot-cta.btn { background: var(--plate-top); }
.lot-link:focus-visible { outline-offset: 6px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--ink); color: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 620; font-size: 0.9375rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn:hover { background: var(--plate-top); border-color: var(--plate-top); }
.btn.btn-quiet { background: transparent; color: var(--ink); }
.btn.btn-quiet:hover { background: var(--paper); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 0.9rem; white-space: nowrap; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.btn-still { background: transparent; color: var(--mute); border-color: var(--line); cursor: default; }

/* ---------- shop ---------- */

.shop { padding: 0 0 var(--section); }
.section-head { display: grid; gap: 8px; margin-bottom: 20px; }
.section-lede { color: var(--ink); font-size: 1.0625rem; }

.finder { display: grid; gap: 12px; margin-bottom: 8px; }
.finder-search { position: relative; max-width: 440px; }
.finder-search input[type="search"] {
  width: 100%;
  padding: 11px 44px 11px 42px;
  min-height: 46px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
}
.finder-search input[type="search"]:focus-visible { border-color: var(--ink); outline-offset: 2px; }
.finder-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.finder-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.finder-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.finder-clear:hover { background: var(--ink); color: var(--paper); }

.filters { display: grid; gap: 10px; }
.filter-group { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.filter-group::-webkit-scrollbar { display: none; }
.filter-label { flex: none; width: 5.2rem; font-size: 0.875rem; color: var(--mute); font-weight: 500; }
.chip {
  flex: none;
  min-height: 40px;
  padding: 8px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--ink);
  font-size: 0.9rem; font-weight: 520; line-height: 1.2;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.roster:empty { display: none; }
.roster-inline { flex-wrap: wrap; overflow: visible; }
.roster-panel { max-width: 100%; }
.roster-summary {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; padding: 6px 0; list-style: none;
}
.roster-summary::-webkit-details-marker { display: none; }
.roster-summary::before {
  content: ''; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); margin-right: 2px;
}
.roster-panel[open] .roster-summary::before { transform: rotate(45deg); margin-bottom: 3px; }
.roster-groups { columns: 11rem; column-gap: 28px; padding: 10px 0 4px; }
.roster-group { margin-bottom: 12px; }
.roster-letter { display: block; font-stretch: var(--wide); font-weight: 760; font-size: 0.9rem; margin-bottom: 4px; break-after: avoid; }
.roster-names { display: block; }
.roster-names li { break-inside: avoid; }
.roster-name {
  background: none; border: 0; padding: 4px 8px; margin-left: -8px;
  border-radius: 4px; text-align: left; cursor: pointer;
  font-size: 0.9375rem; line-height: 1.3;
}
.roster-name:hover { background: var(--paper); }
.roster-name[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.roster-count { color: var(--mute); font-size: 0.8em; }
.roster-name[aria-pressed="true"] .roster-count { color: var(--paper); opacity: 0.7; }

.shop-status { color: var(--mute); font-size: 0.9375rem; margin: 10px 0 8px; min-height: 1.5em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
/* The result count is a heading (focus lands here when the control that was used is gone), dressed as the status line. */
.results-title { font: inherit; color: inherit; letter-spacing: inherit; }
.status-clear {
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 3px 10px; font-size: 0.85rem; font-weight: 560; cursor: pointer;
}
.status-x { opacity: 0.8; }
.no-match { display: grid; gap: 14px; padding: 8px 0 24px; max-width: 60ch; }
.no-match p:first-child { font-size: 1.125rem; font-weight: 600; }
.no-match-ask { font-weight: 600; margin-left: 10px; }

.product { display: grid; grid-template-rows: auto 1fr; }
.product[data-status="sold-out"] .stage-frame { opacity: 0.55; filter: saturate(0.2); }
.product-body { display: grid; gap: 4px; padding-top: 14px; align-content: start; grid-template-rows: auto; }
.product-title { font-stretch: 108%; font-weight: 720; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.2; }
.product-name { font-size: 0.875rem; color: var(--ink); }
.product-kind { font-size: 0.8125rem; color: var(--mute); }
.product-desc { font-size: 0.875rem; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { display: grid; gap: 8px; justify-items: stretch; margin-top: 8px; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 1.5rem; }
.product-price:empty { display: none; }
.product-price .num { font-size: 1.4rem; }
.product-note { font-size: 0.8125rem; color: var(--mute); font-weight: 500; }
.product-foot .btn { width: 100%; }
.shop-empty { margin-top: 12px; }

/* ---------- custom figures ---------- */
/* A banner at the end of the page. The form opens when someone asks for it. */

.custom {
  display: grid; gap: 28px;
  margin-bottom: var(--section);
  padding: clamp(20px, 5vw, 44px);
  background: var(--paper);
  border-radius: 12px;
}
.custom-intro { display: grid; gap: 14px; max-width: 52ch; justify-items: start; }
.custom-intro p { font-size: 1.0625rem; }
.custom-panel { max-width: 640px; }

.quote { display: grid; gap: 32px; }
.quote[aria-busy="true"] { opacity: 0.75; }
.group { display: grid; gap: 20px; }
.group > legend {
  font-stretch: var(--wide); font-weight: 720; font-size: 1.2rem; letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field-narrow { max-width: 200px; }
}
.label { font-weight: 620; font-size: 0.9875rem; }
.opt { color: var(--mute); font-weight: 450; font-size: 0.875rem; margin-left: 4px; }
.help { color: var(--mute); font-size: 0.875rem; line-height: 1.4; }
input[type="text"], input[type="email"], input[type="url"], input[type="date"], input[type="search"], textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: 1rem; /* under 16px, iPhones zoom the page when a field is focused */
  background: var(--putty);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  min-height: 46px;
}
textarea { resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--mute); }
input:focus-visible, textarea:focus-visible { outline-offset: 2px; border-color: var(--ink); }
.finder-search input[type="search"] { background: var(--paper); }

.more { border-top: 1.5px solid var(--line); padding-top: 4px; }
.more summary {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; font-weight: 620; list-style: none;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before {
  content: ''; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); margin-right: 2px;
}
.more[open] summary::before { transform: rotate(45deg); margin-bottom: 3px; }
.more-body { display: grid; gap: 20px; padding-top: 10px; }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--hot); }
.field[data-invalid] .tile-body { border-color: var(--hot); }
.error { color: var(--hot-text); font-size: 0.875rem; font-weight: 560; line-height: 1.35; }
.error:empty { display: none; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; align-items: stretch; }
.tile { position: relative; display: grid; cursor: pointer; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tile-body {
  display: grid; gap: 6px; justify-items: start;
  padding: 10px 10px 9px;
  background: var(--putty);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 560; line-height: 1.2;
  color: var(--ink);
  min-height: 74px;
}
.tile-body svg { width: 40px; height: 30px; color: var(--ink); }
/* On a phone the three kinds are compact rows instead of tall tiles. */
@media (max-width: 559px) {
  .tiles { grid-template-columns: 1fr; }
  .tile-body { grid-auto-flow: column; justify-content: start; align-items: center; gap: 14px; min-height: 52px; padding: 8px 14px; font-size: 1rem; }
}
.tile:hover .tile-body { border-color: var(--ink); }
.tile input:checked ~ .tile-body { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tile input:checked ~ .tile-body svg { color: var(--paper); }
.tile input:checked ~ .tile-body svg rect[fill="#E5E7E2"] { fill: var(--ink); }
.tile input:focus-visible ~ .tile-body { outline: 3px solid var(--ink); outline-offset: 3px; }

.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.turnstile:empty::before {
  content: ''; display: block; width: 300px; max-width: 100%; height: 65px;
  border: 1.5px dashed var(--line); border-radius: var(--radius);
}

.form-status { font-weight: 560; line-height: 1.4; color: var(--hot-text); }
.form-status:empty { display: none; }
.form-status a { color: inherit; }
.form-actions { display: grid; gap: 10px; justify-items: start; }
.form-note { color: var(--mute); font-size: 0.875rem; }

.quote-done { display: grid; gap: 10px; }
.quote-done:focus { outline: none; }
.quote-done h3 {
  font-stretch: var(--wide); font-weight: 760; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.05;
}
.quote-done-ref { color: var(--mute); font-size: 0.9375rem; }

/* ---------- footer ---------- */

.foot {
  display: grid; gap: 18px;
  padding: 28px 0 calc(44px + env(safe-area-inset-bottom, 0px));
  border-top: 3px solid var(--plate);
  color: var(--ink);
}
.foot-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.foot-name { font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.02em; font-size: 1.1rem; }
.foot-tag { color: var(--mute); font-size: 0.9375rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
.foot-legal { color: var(--mute); font-size: 0.875rem; max-width: 70ch; line-height: 1.45; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
