:root {
  --red: #d91f2a;
  --red-dark: #aa101a;
  --yellow: #ffcf13;
  --ink: #17150f;
  --muted: #6e6a61;
  --paper: #fffdf7;
  --white: #fff;
  --line: #ddd8ca;
  --green: #147a55;
  --shadow: 0 12px 34px rgba(61, 38, 16, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-rounded, "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(217,31,42,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  pointer-events: none;
}
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, .button { touch-action: manipulation; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 10px max(18px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(23,21,15,.1);
  background: rgba(255,253,247,.94);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 900; text-decoration: none; letter-spacing: -.4px; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--red); color: var(--yellow); font-family: Georgia, serif; font-size: 27px; font-weight: 900; line-height: 1; box-shadow: 0 4px 0 var(--red-dark); }
.nav-toggle { padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-weight: 800; }
.site-nav { position: absolute; top: 66px; right: 14px; left: 14px; display: none; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.site-nav.open { display: grid; }
.site-nav a, .site-nav .nav-cta { padding: 11px 12px; border-radius: 10px; background: var(--white); color: var(--ink); font-weight: 750; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav .nav-cta:hover, .site-nav .nav-cta:focus-visible { background: var(--red); color: #fff; outline: none; }
.badge { display: inline-grid; min-width: 22px; height: 22px; margin-left: 4px; padding: 0 6px; place-items: center; border-radius: 30px; background: var(--red); color: #fff; font-size: 12px; }

.page-shell { width: min(1160px, calc(100% - 28px)); min-height: calc(100vh - 180px); margin: 0 auto; padding: 28px 0 70px; }
.site-footer { display: flex; flex-direction: column; gap: 14px; padding: 28px max(18px, calc((100vw - 1160px) / 2)); border-top: 1px solid var(--line); background: #201e18; color: #dad5c8; font-size: 13px; }
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 5px; }
.site-footer a { color: #fff; font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(2.25rem, 9vw, 5.6rem); line-height: .94; letter-spacing: -.06em; }
h2 { margin-bottom: 12px; font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: 1.05; letter-spacing: -.04em; }
h3 { margin-bottom: 8px; line-height: 1.15; }
.eyebrow { margin-bottom: 9px; color: var(--red); font-size: 13px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.9); box-shadow: 0 5px 0 rgba(23,21,15,.05); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 17px; border: 2px solid transparent; border-radius: 14px; font-weight: 900; line-height: 1.1; text-align: center; text-decoration: none; cursor: pointer; }
.button-primary { border-color: var(--red); background: var(--red); box-shadow: 0 5px 0 var(--red-dark); color: #fff; }
.button-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--red-dark); }
.button-secondary { border-color: var(--ink); background: var(--white); box-shadow: 0 4px 0 var(--ink); color: var(--ink); }
.button-quiet { border-color: var(--line); background: transparent; }
.button-wide { width: 100%; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--muted); font-weight: 800; }
.status-pill, .mutual-pill, .private-label { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 30px; background: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: .02em; }
.private-label { margin-left: 4px; background: #ece8de; color: var(--muted); }
.mutual-pill { background: #d8f4e7; color: #096342; white-space: nowrap; }

.notice { margin-bottom: 18px; padding: 13px 16px; border-radius: 14px; background: #e8f2ff; font-weight: 750; }
.notice-success { background: #dff5e9; color: #075c3d; }
.notice-error { background: #fee5e5; color: #8d1119; }

.home-intro { display: grid; gap: 32px; align-items: center; min-height: 62vh; padding: 40px 4px 55px; }
.home-intro > div:first-child { max-width: 760px; }
.home-intro > div > p:not(.eyebrow) { max-width: 640px; color: var(--muted); font-size: clamp(1.05rem, 3vw, 1.3rem); }
.blind-box { position: relative; width: min(72vw, 290px); aspect-ratio: 1; margin: auto; border: 8px solid var(--ink); border-radius: 26% 20% 24% 18%; background: var(--yellow); box-shadow: 18px 18px 0 var(--red), 22px 22px 0 var(--ink); transform: rotate(4deg); }
.blind-box::before { position: absolute; top: 18%; right: -8%; left: -8%; height: 16%; border: 7px solid var(--ink); background: #fff; content: ""; transform: rotate(-7deg); }
.blind-box span { position: absolute; top: 31%; left: 35%; color: var(--red); font-size: 8rem; font-weight: 1000; transform: rotate(-4deg); }

.section-block { margin-top: 35px; }
.section-heading { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.section-heading p:last-child { max-width: 520px; color: var(--muted); }
.collection-grid { display: grid; gap: 18px; }
.collection-card { display: grid; gap: 20px; padding: 22px; overflow: hidden; border: 2px solid var(--ink); border-radius: 26px; background: var(--yellow); box-shadow: 0 8px 0 var(--ink); text-decoration: none; }
.collection-card h3 { margin-top: 9px; font-size: 1.7rem; letter-spacing: -.04em; }
.collection-card p { color: #514a37; }
.collection-stack { display: flex; height: 175px; align-items: end; justify-content: center; }
.collection-stack img { width: 38%; max-height: 165px; margin: 0 -7%; object-fit: contain; filter: drop-shadow(0 9px 8px rgba(0,0,0,.2)); }
.collection-stack img:nth-child(2) { z-index: 2; width: 44%; }

.auth-layout { display: grid; gap: 32px; align-items: center; min-height: 68vh; max-width: 980px; margin: auto; }
.auth-layout.compact { max-width: 850px; }
.auth-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.form-card { padding: 22px; }
label { display: block; margin: 0 0 7px; font-size: 14px; font-weight: 850; }
label small { display: block; color: var(--muted); font-weight: 500; }
.field-note { margin: -10px 0 18px; color: var(--muted); font-size: 13px; }
input, select, textarea { width: 100%; min-height: 48px; margin-bottom: 18px; padding: 11px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--red); outline: 3px solid rgba(217,31,42,.15); }
textarea { resize: vertical; }
.form-foot { margin: 18px 0 0; color: var(--muted); text-align: center; }
.field-row { display: grid; gap: 0 12px; }
.signup-heading { max-width: 760px; margin: 4px auto 22px; text-align: center; }
.signup-heading h1 { margin-bottom: 8px; font-size: clamp(2rem, 6vw, 4rem); }
.signup-heading p:last-child { color: var(--muted); }
.signup-wizard { max-width: 1040px; margin: 0 auto; padding: 18px; scroll-margin-top: 78px; }
.signup-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.signup-progress li { display: flex; min-width: 0; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 850; }
.signup-progress li::after { height: 2px; flex: 1; background: var(--line); content: ''; }
.signup-progress li:last-child::after { display: none; }
.signup-progress span { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: #fff; }
.signup-progress li.active { color: var(--ink); }
.signup-progress li.active span { border-color: var(--red); background: var(--red); color: #fff; }
.signup-progress li.complete span { border-color: var(--green); background: var(--green); color: #fff; }
.signup-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.signup-wizard.is-ready .signup-step[hidden] { display: none; }
.signup-step legend { width: 100%; margin-bottom: 4px; font-size: clamp(1.45rem, 4vw, 2.25rem); font-weight: 950; letter-spacing: -.035em; }
.signup-step-note { margin-bottom: 22px; color: var(--muted); }
.signup-step > label, .signup-step > input { max-width: 620px; }
.signup-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.signup-actions-final { position: sticky; bottom: 8px; z-index: 10; margin-top: 18px; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,253,247,.96); box-shadow: var(--shadow); }
.signup-collection-list { display: grid; gap: 12px; }
.signup-collection-option { display: flex; gap: 12px; align-items: center; margin: 0; padding: 15px; border: 2px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; }
.signup-collection-option:has(input:checked) { border-color: var(--red); background: #fff7d6; box-shadow: 0 4px 0 var(--red); }
.signup-collection-option input { flex: 0 0 21px; width: 21px; min-height: 21px; height: 21px; margin: 0; accent-color: var(--red); }
.signup-collection-option strong, .signup-collection-option small { display: block; }
.signup-collection-option small { margin-top: 3px; color: var(--muted); font-weight: 600; }
.signup-contact-grid { display: grid; gap: 0 12px; }
.signup-toy-collection h2 { font-size: 1.35rem; }
.dialog-contact-list { display: grid; gap: 9px; }
.dialog-contact-list p { margin: 0; }
.word-input { height: 68px; font-size: 2rem; font-weight: 950; letter-spacing: .35em; text-align: center; text-transform: uppercase; }
.typeahead { position: relative; }
.suggestions { position: absolute; top: calc(100% - 16px); right: 0; left: 0; z-index: 20; display: none; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.suggestions.open { display: block; }
.suggestions button { display: block; width: 100%; padding: 11px 13px; border: 0; border-bottom: 1px solid #eee; background: #fff; text-align: left; cursor: pointer; }
.suggestions button:hover, .suggestions button:focus { background: #fff5c6; outline: 0; }

.collection-hero { display: grid; gap: 24px; align-items: center; padding: 25px 4px 35px; }
.collection-hero > div:first-child { max-width: 760px; }
.collection-hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: .98; letter-spacing: -.045em; }
.collection-hero > div > p:not(.eyebrow) { max-width: 700px; color: var(--muted); font-size: 1.1rem; }
.hero-toys { display: flex; min-height: 220px; align-items: end; justify-content: center; padding: 10px; border-radius: 50%; background: var(--yellow); }
.hero-toys img { width: 31%; max-height: 210px; margin: 0 -7%; object-fit: contain; filter: drop-shadow(0 8px 5px rgba(0,0,0,.25)); }
.catalog-strip { display: flex; gap: 10px; margin: 0 calc((100vw - 100%) / -2) 30px; padding: 10px max(14px, calc((100vw - 1160px) / 2)); overflow-x: auto; scrollbar-width: thin; }
.catalog-toy { position: relative; flex: 0 0 92px; height: 104px; padding: 6px; border: 2px solid var(--line); border-radius: 17px; background: #fff; text-decoration: none; }
.catalog-toy.selected { border-color: var(--red); box-shadow: 0 4px 0 var(--red); }
.catalog-toy img { width: 100%; height: 82px; object-fit: contain; }
.catalog-toy span { position: absolute; top: 5px; left: 5px; padding: 2px 6px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 900; }
.trade-browser { display: grid; gap: 22px; align-items: start; }
.filter-panel { padding: 20px; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 0 3px 14px; }
.results-heading h2 { margin: 0; }
.results-heading span { color: var(--muted); font-size: 13px; }
.trader-list { display: grid; gap: 15px; }
.trader-card { padding: 15px; border: 2px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 5px 0 #e4dfd3; }
.trader-card.is-mutual { border-color: var(--green); box-shadow: 0 5px 0 var(--green); }
.trader-top { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; margin-bottom: 16px; }
.trader-top h3 { margin: 0; }
.trader-top p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.avatar { display: grid; flex: 0 0 auto; width: 45px; height: 45px; place-items: center; border: 2px solid var(--ink); border-radius: 14px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font-size: 21px; font-weight: 950; }
.avatar-large { width: 78px; height: 78px; border-radius: 24px; font-size: 36px; }
.inventory-line { margin: 10px 0; }
.inventory-line > strong { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.toy-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toy-chip { position: relative; display: inline-flex; width: 48px; height: 48px; padding: 3px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.toy-face { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: #fff; }
.toy-chip img { width: 100%; height: 100%; background: #fff; object-fit: cover;}
.toy-chip b { position: absolute; top: -6px; right: -6px; display: grid; min-width: 21px; height: 21px; padding: 0 4px; place-items: center; border: 2px solid #fff; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; line-height: 1; }
.empty-inline { color: var(--muted); font-style: italic; }
.empty-state { padding: 30px 22px; text-align: center; }
.catalog-note { margin-top: 22px; color: var(--muted); font-size: 12px; text-align: center; }
.contact-action { margin-top: 14px; }
.contact-note { margin: 9px 4px 0; color: var(--muted); font-size: 12px; text-align: center; }
.revealed-contact { margin: 11px 0 0; padding: 11px 13px; border: 1px solid #a8ddc5; border-radius: 12px; background: #e8f8f0; color: #075c3d; overflow-wrap: anywhere; }
.revealed-contact a { font-weight: 900; }
.profile-contact { margin-left: auto; }
.profile-contact .revealed-contact { max-width: 360px; }
.contact-consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.contact-consent input { flex: 0 0 20px; width: 20px; min-height: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }
.contact-consent span { color: var(--muted); font-weight: 650; }
.seo-copy { margin-top: 36px; padding: 24px; }
.seo-copy > p { max-width: 850px; color: var(--muted); }
.seo-faq { display: grid; gap: 14px; margin-top: 22px; }
.seo-faq > div { padding-top: 14px; border-top: 1px solid var(--line); }
.seo-faq h3 { margin-bottom: 5px; }
.seo-faq p { margin: 0; color: var(--muted); }

.profile-heading { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 12px 0 28px; }
.profile-heading h1 { margin: 0; font-size: clamp(2.2rem, 7vw, 4.6rem); }
.profile-heading p:last-child { margin: 4px 0 0; color: var(--muted); }
.public-profile-heading .button { margin-left: auto; }
.profile-settings { width: 100%; margin-bottom: 35px; padding: 18px; }
.profile-settings summary { font-weight: 900; cursor: pointer; }
.profile-settings form { margin-top: 18px; }
.profile-quick-grid { display: grid; gap: 0 12px; }
.auth-help-actions { margin-top: 12px; }
.auth-help-actions .button { flex: 1 1 180px; }
.inventory-editor { margin: 22px 0 40px; padding: 16px; scroll-margin-top: 85px; }
.inventory-title { display: flex; flex-direction: column; gap: 10px; margin-bottom: 17px; }
.inventory-title h2 { margin: 7px 0 0; }
.inventory-title a { font-weight: 850; }
.ownership-picker { margin: 0 0 24px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #f7f3e9; }
.ownership-picker > div:first-child { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: baseline; margin-bottom: 12px; }
.ownership-picker h3 { margin: 0; font-size: 1rem; }
.ownership-picker h3::after { content: ':'; }
.ownership-picker p { margin: 0; color: var(--muted); font-size: 12px; }
.ownership-toys { display: flex; flex-wrap: wrap; gap: 8px; }
.owned-toy-toggle { position: relative; display: block; width: 58px; margin: 0; cursor: pointer; }
.owned-toy-toggle input { position: absolute; width: 1px; min-height: 1px; height: 1px; margin: 0; opacity: 0; }
.owned-toy-toggle > span { position: relative; display: block; width: 58px; height: 58px; overflow: hidden; border: 3px solid #cfc9bb; border-radius: 50%; background: #fff; opacity: .48; transition: opacity .15s ease, border-color .15s ease, transform .15s ease; }
.owned-toy-toggle img { width: 100%; height: 100%; object-fit: cover; }
.owned-toy-toggle small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.owned-toy-toggle:has(input:checked) > span { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217,31,42,.16); opacity: 1; transform: translateY(-2px); }
.owned-toy-toggle:has(input:focus-visible) > span { outline: 3px solid rgba(217,31,42,.25); outline-offset: 2px; }
.trade-picker-heading { margin: 0 0 10px; font-size: 1rem; }
.toy-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.toy-editor-card { display: flex; min-width: 0; flex-direction: column; padding: 8px; border: 2px solid var(--line); border-radius: 16px; background: #faf8f2; }
.toy-editor-card.active { border-color: var(--red); background: #fff7d6; }
.toy-editor-card > img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.toy-editor-name { min-height: 61px; }
.toy-editor-name span { display: block; color: var(--red); font-size: 11px; font-weight: 950; }
.toy-editor-name strong { display: block; font-size: 13px; line-height: 1.2; }
.toy-controls { margin-top: auto; }
.quantity-control { display: grid; grid-template-columns: 1fr 32px 37px 32px; align-items: center; margin-bottom: 7px; }
.quantity-control span { font-size: 12px; }
.quantity-control button { width: 32px; height: 34px; border: 0; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 900; cursor: pointer; }
.quantity-control input { min-height: 34px; height: 34px; margin: 0; padding: 3px; border-width: 1px; border-radius: 0; text-align: center; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button { appearance: none; }
.want-toggle { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; margin: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.want-toggle input { width: 19px; min-height: 19px; height: 19px; margin: 0; accent-color: var(--red); }
.want-toggle span { font-size: 13px; }
.sticky-save { position: sticky; bottom: 10px; z-index: 10; margin-top: 15px; text-align: right; }
.public-collection { margin-bottom: 18px; padding: 20px; }
.legal-page { max-width: 900px; margin: 0 auto; padding: clamp(22px, 4vw, 42px); }
.legal-page h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); }
.legal-page h2 { margin-top: 30px; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.legal-page li + li { margin-top: 8px; }
.legal-contact { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 800; }

.narrow-page, .thread-page { max-width: 760px; margin: auto; }
.message-recipient, .thread-header > div { display: flex; gap: 13px; align-items: center; margin: 15px 0 24px; }
.message-recipient h1, .thread-header h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.8rem); }
.message-recipient p, .thread-header p { margin: 2px 0 0; color: var(--muted); }
.field-help { margin-top: -10px; color: var(--muted); font-size: 13px; }
.conversation-list { display: grid; gap: 10px; }
.conversation-card { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: #fff; text-decoration: none; }
.conversation-card.unread { border: 2px solid var(--red); background: #fff7d6; }
.conversation-copy { min-width: 0; }
.conversation-copy > div { display: flex; align-items: center; }
.conversation-copy h2 { margin: 0; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy p { margin: 3px 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy small { color: var(--muted); }
.thread-header { position: sticky; top: 67px; z-index: 8; padding: 12px 0; background: var(--paper); }
.thread-header .back-link { margin: 0; }
.thread-header > div { margin: 10px 0 0; }
.message-thread { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; }
.message-bubble { width: min(86%, 570px); padding: 12px 14px; border: 1px solid var(--line); border-radius: 17px 17px 17px 4px; background: #fff; }
.message-bubble.mine { align-self: flex-end; border-color: #f0b8bc; border-radius: 17px 17px 4px 17px; background: #fff0f1; }
.message-bubble strong, .message-bubble time { font-size: 12px; }
.message-bubble p { margin: 4px 0 7px; overflow-wrap: anywhere; }
.message-bubble time { color: var(--muted); }
.reply-box { position: sticky; bottom: 8px; padding: 13px; }
.reply-box textarea { margin-bottom: 8px; }

@media (min-width: 620px) {
  .field-row { grid-template-columns: 1fr 1.5fr; }
  .profile-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toy-editor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inventory-title { flex-direction: row; align-items: center; justify-content: space-between; }
  .site-footer { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; align-items: center; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .site-nav a { padding: 8px 11px; }
  .page-shell { padding-top: 38px; }
  .home-intro { grid-template-columns: 1.65fr .75fr; }
  .auth-layout { grid-template-columns: 1.15fr .85fr; }
  .collection-hero { grid-template-columns: 1.5fr .7fr; }
  .trade-browser { grid-template-columns: 330px 1fr; }
  .filter-panel { position: sticky; top: 86px; }
  .toy-editor-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .trader-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { flex-direction: row; align-items: end; justify-content: space-between; }
  .seo-faq { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

/* Compact collection browser */
.collection-hero-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 0;
  padding: 8px 4px 18px;
  border-bottom: 1px solid var(--line);
}
.collection-hero-compact .back-link { margin-bottom: 8px; }
.collection-hero-compact .eyebrow { margin-bottom: 5px; }
.collection-hero-compact h1 { margin-bottom: 7px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1; }
.collection-hero-compact p:last-child { margin: 0; color: var(--muted); }
.collection-toy-toggle { align-self: center; white-space: nowrap; }
.selected-toy-image { width: 112px; height: 112px; border: 1px solid var(--line); border-radius: 18px; background: #fff; object-fit: contain; }

.toy-drawer { display: grid; grid-template-rows: 0fr; margin: 0; transition: grid-template-rows .28s ease, margin .28s ease; }
.toy-drawer.open { grid-template-rows: 1fr; margin: 18px 0 22px; }
.toy-drawer-clip { min-height: 0; overflow: hidden; }
.toy-drawer-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 3px 3px 11px; }
.toy-gallery-item { position: relative; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); text-align: left; cursor: zoom-in; }
.toy-gallery-item:hover, .toy-gallery-item:focus-visible { border-color: var(--red); outline: 3px solid rgba(217,31,42,.12); }
.toy-gallery-item > span { position: absolute; top: 7px; left: 7px; z-index: 1; padding: 2px 6px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 900; }
.toy-gallery-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.toy-gallery-item strong { display: block; overflow: hidden; font-size: 12px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

.search-panel { position: sticky; top: 76px; z-index: 40; margin: 18px 0 26px; padding: 12px; }
.search-bar { display: grid; gap: 10px; align-items: end; }
.search-bar label { margin: 0; }
.search-bar label > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.search-bar input, .search-bar select { min-height: 43px; height: 43px; margin: 0; padding: 8px 10px; border-width: 1px; }
.search-bar .button { min-height: 43px; height: 43px; }
.search-clear { align-self: center; color: var(--muted); font-size: 13px; font-weight: 800; }
.search-error { margin: 9px 2px 0; color: var(--red-dark); font-weight: 800; }
.toy-filter > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.toy-multi-select { position: relative; min-width: 0; }
.toy-multi-select > summary { display: flex; min-height: 43px; align-items: center; justify-content: space-between; padding: 8px 34px 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 800; cursor: pointer; list-style: none; }
.toy-multi-select > summary::-webkit-details-marker { display: none; }
.toy-multi-select > summary::after { position: absolute; right: 12px; content: '▾'; }
.toy-filter-options { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; display: grid; width: min(440px, 85vw); max-height: 330px; padding: 8px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.toy-filter-options label { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; cursor: pointer; }
.toy-filter-options label:hover { background: #f7f3e9; }
.toy-filter-options input { width: 18px; min-height: 18px; height: 18px; padding: 0; accent-color: var(--red); }
.toy-filter-options span { min-width: 0; font-size: 13px; font-weight: 750; }

.results-heading { margin-bottom: 11px; }
.results-heading h2 { font-size: 1.45rem; letter-spacing: -.03em; }
.trader-list { gap: 11px; }
.trader-card { position: relative; min-width: 0; padding: 12px; border-width: 1px; border-radius: 16px; box-shadow: 0 3px 0 #e4dfd3; }
.trader-card.is-mutual { border-width: 1px; box-shadow: 0 3px 0 var(--green); }
.trader-card .mutual-pill { position: absolute; top: -8px; right: 9px; z-index: 2; padding: 3px 7px; box-shadow: 0 2px 0 rgba(9,99,66,.2); font-size: 10px; }
.trader-top { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 10px; }
.trader-card .avatar { width: 38px; height: 38px; border-radius: 11px; box-shadow: 2px 2px 0 var(--ink); font-size: 17px; }
.trader-identity { min-width: 0; }
.trader-name-row { display: flex; min-width: 0; align-items: center; gap: 7px; }
.trader-name-row h3 { min-width: 0; margin: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.trader-identity > p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.contact-mini { flex: 0 0 auto; padding: 3px 7px; border: 1px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 900; line-height: 1.25; text-decoration: none; cursor: pointer; }
.contact-mini:hover { background: var(--yellow); }
.contact-mini.is-disabled { border-color: #aaa49a; background: #eeeae1; color: #777168; cursor: help; }
.listing-verification { display: inline-flex; margin-top: 4px; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 850; }
.listing-verification::before { width: 7px; height: 7px; border-radius: 50%; background: #aaa49a; content: ''; }
.listing-verification.is-verified { color: var(--green); }
.listing-verification.is-verified::before { background: var(--green); }
.match-key { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: -3px 0 13px; color: var(--muted); font-size: 11px; font-weight: 800; }
.match-key span::before { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border: 2px solid; border-radius: 50%; content: ''; vertical-align: -1px; }
.account-required-note { margin: 0 0 16px; padding: 12px 15px; border-color: #f0c5c8; background: #fff5f5; color: var(--muted); font-size: 13px; }
.account-required-note strong { color: var(--ink); }
.account-required-note a { color: var(--red-dark); font-weight: 900; }
.match-key-you::before { border-color: var(--green); }
.match-key-them::before { border-color: #e5a900; }
.toy-chip.match-for-you { box-shadow: 0 0 0 3px var(--green); }
.toy-chip.match-from-you { box-shadow: 0 0 0 3px #e5a900; }
.verification-panel { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin: 16px 0; }
.verification-panel h2, .verification-panel p { margin-bottom: 4px; }
.trader-card .inventory-line { margin: 8px 0 0; }
.trader-card .inventory-line > strong { margin-bottom: 5px; font-size: 10px; }
.trader-card .toy-chips { gap: 5px; }
.trader-card .toy-chip { width: 50px; height: 50px; }
.trader-card .toy-chip b { top: -5px; right: -5px; min-width: 18px; height: 18px; border-width: 1px; font-size: 9px; }
.toy-more { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #f2eee4; color: var(--muted); font-size: 11px; font-weight: 900; }

.site-dialog { width: min(92vw, 470px); padding: 25px; border: 2px solid var(--ink); border-radius: 22px; background: var(--paper); box-shadow: 0 10px 0 var(--ink), var(--shadow); color: var(--ink); }
.site-dialog::backdrop { background: rgba(23,21,15,.58); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 9px; right: 9px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.dialog-contact-result { margin: 16px 0 12px; padding: 14px; border-radius: 13px; background: #e8f8f0; overflow-wrap: anywhere; }
.dialog-contact-result a { font-weight: 900; }
.dialog-contact-result > p { margin-bottom: 12px; }
.dialog-note { margin: 0; color: var(--muted); font-size: 13px; }
.toy-dialog { text-align: center; }
.toy-dialog > img { display: block; width: min(100%, 310px); margin: 0 auto 12px; aspect-ratio: 1; border-radius: 18px; background: #fff; object-fit: contain; }
.toy-dialog h2 { font-size: 1.5rem; }

@media (min-width: 560px) {
  .signup-location-row, .signup-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toy-drawer-content { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-bar { grid-template-columns: minmax(180px, 1.5fr) minmax(120px, .65fr) minmax(150px, .75fr) auto auto; }
  .search-bar-toy-page { grid-template-columns: minmax(150px, 1fr) minmax(160px, .8fr) auto auto; }
  .trader-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .toy-drawer-content { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .trader-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 559px) {
  .signup-progress li { justify-content: center; font-size: 0; }
  .signup-progress li::after { display: none; }
  .signup-actions .button { padding-inline: 12px; }
  .collection-hero-compact { grid-template-columns: minmax(0, 1fr); }
  .collection-toy-toggle { justify-self: start; }
  .search-clear { justify-self: start; padding: 4px; }
  .verification-panel { align-items: stretch; flex-direction: column; }
}
