:root {
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #263a30;
  background: #f7f5ef;
  font-synthesis: none;
  --muted: #626c61;
  --line: #d7dbcf;
  --accent: #d8e6bc;
  --control: #ebeede;
  --control-ink: #263a30;
  --control-line: #bdc8b0;
  --eyebrow: #52633b;
  --link: #466035;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  color: #f1efdf;
  background: #101915;
  --muted: #aebbb0;
  --line: #344238;
  --control: #202d24;
  --control-ink: #e0e5d6;
  --control-line: #43523d;
  --eyebrow: #bfcea8;
  --link: #c2d1af;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1240px; padding: 34px 42px 28px; margin: auto; }
header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.brand { color: inherit; font-weight: 850; text-decoration: none; letter-spacing: -.7px; font-size: 23px; display: inline-flex; align-items: center; gap: 10px; }
.brand-icon { display: block; width: 40px; height: 40px; border-radius: 9px; flex: 0 0 auto; }
.brand span { display: block; font-size: 9px; letter-spacing: 3px; margin-top: 4px; color: var(--muted); }
.header-controls { display: flex; align-items: center; gap: 12px; }
.badge { border: 1px solid var(--control-line); border-radius: 30px; padding: 8px 13px; font-size: 12px; color: var(--muted); }
#theme-toggle { min-width: 104px; padding: 10px 13px; }
.intro { max-width: 920px; padding: 54px 0 38px; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: 10px; font-weight: 700; color: var(--eyebrow); }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 5.4vw, 66px); letter-spacing: -1.8px; line-height: 1.08; font-weight: 400; margin: 18px 0; overflow-wrap: anywhere; }
#status { color: var(--muted); font-size: 14px; line-height: 1.65; }
#actions { display: flex; gap: 9px; margin-top: 23px; flex-wrap: wrap; }
button { border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: #1c2b1c; padding: 12px 18px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
button span { margin-left: 18px; }
.secondary { background: var(--control); color: var(--control-ink); border-color: var(--control-line); }
button:hover { filter: brightness(1.07); }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #bfd78e; outline-offset: 4px; }
.appearance { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; }
.appearance p { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.style-control { display: flex; align-items: center; gap: 12px; }
.style-control label { color: var(--muted); font-size: 12px; }
select { appearance: auto; font: inherit; font-size: 13px; background: var(--control); color: var(--control-ink); border: 1px solid var(--control-line); border-radius: 8px; padding: 11px 30px 11px 13px; min-width: 187px; cursor: pointer; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 25px; }
@font-face { font-family: 'Card Condensed'; src: url('/card-assets/v2/fonts/BarlowCondensed-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
.card { min-width: 0; container-type: inline-size; break-inside: avoid; }
.card-face {
  --stock: #f3ebdb; --ink: #172b3c; --rule: #aeb09c; --accent-card: #ae4b2d;
  color: var(--ink); background: #f3ebdb url('/card-assets/v1/brick-archive.webp') center / cover;
  border-radius: 3.3cqw; aspect-ratio: 5 / 7; position: relative; isolation: isolate; overflow: hidden;
  box-shadow: 0 8px 24px #0002; border: 1px solid #c8c3ae;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-face > * { position: absolute; min-width: 0; margin: 0; }
.card-face::before { content: ''; position: absolute; inset: 2.8%; border: 1px solid var(--ink); border-radius: 1px; pointer-events: none; z-index: 4; }
.card-masthead { top: 4.2%; left: 6.6%; right: 6.6%; display: flex; justify-content: space-between; gap: 8px; font-size: 1.65cqw; letter-spacing: .14em; font-weight: 800; }
.card-identity { top: 7%; left: 5.6%; width: 88.8%; height: 14%; padding: 1.6% 22% 1.4% 2.5%; background: var(--stock); display: flex; flex-direction: column; justify-content: center; }
.card h2 { font-size: 6.6cqw; line-height: 1.12; font-weight: 750; letter-spacing: -.025em; margin: 0; padding-bottom: .1em; flex-shrink: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-theme { font-size: 1.8cqw; text-transform: uppercase; letter-spacing: .14em; font-weight: 750; margin: 1.8cqw 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.build-cost { top: 9%; right: 8%; width: 12%; aspect-ratio: 1; background: var(--ink); color: var(--stock); border: 1px solid var(--rule); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; z-index: 3; }
.build-cost strong { font-family: 'Card Condensed', sans-serif; font-size: 6.5cqw; line-height: .95; font-weight: 600; }
.build-cost span { font-size: 1.45cqw; font-weight: 750; margin-top: 1cqw; }
.hero-stat { display: none; }
.art { top: 26%; left: 7%; width: 86%; height: 42%; display: grid; place-items: center; }
.art img { display: block; width: 100%; height: 100%; object-fit: contain; min-width: 0; min-height: 0; }
.card-face[data-photo='original'] .art { background: #fff; border-radius: 1%; padding: 2%; }
.image-fallback { background: var(--stock); padding: 8%; color: var(--ink); font-size: 3cqw; text-align: center; }
.set-line { top: 23.1%; left: 6.5%; right: 6.5%; font-size: 1.65cqw; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-facts { top: 69%; left: 5.6%; width: 88.8%; height: 11.3%; display: flex; align-items: center; background: var(--stock); border: 1px solid var(--rule); padding: 1.5% 0; }
.fact { flex: 1; min-width: 0; padding: 0 3%; }
.fact + .fact { border-left: 1px solid var(--rule); }
.fact dt { text-transform: uppercase; font-size: 1.75cqw; font-weight: 750; letter-spacing: .09em; }
.fact dd { font-family: 'Card Condensed', 'Arial Narrow', sans-serif; font-size: 8cqw; font-weight: 600; line-height: 1.04; margin: 1cqw 0 0; }
.card-ability { top: 81%; left: 5.6%; width: 88.8%; height: 10.4%; background: var(--stock); padding: 2.5% 3% 0; }
.card-ability h3 { font-size: 1.95cqw; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-card); margin: 0 0 1.5cqw; }
.card-ability p { font-size: 2.55cqw; line-height: 1.28; margin: 0; max-width: 88%; }
.card-signature { left: 5.6%; bottom: 4.6%; width: 88.8%; height: 4%; padding: 1% 3%; display: flex; align-items: center; justify-content: space-between; gap: 6px; background: var(--stock); border-top: 1px solid var(--rule); font-size: 1.8cqw; }
.points { font-family: 'Card Condensed', sans-serif; font-size: 3cqw; white-space: nowrap; }
.card-edition { bottom: 3.4%; width: 100%; text-align: center; font-size: 1.25cqw; font-weight: 650; }
.number { font-variant-numeric: tabular-nums; }
.source { font-size: 12px; color: var(--link); display: inline-block; margin: 14px 2px 0; text-decoration-color: #74826a; text-underline-offset: 4px; }
.source::after { content: ' ↗'; margin-left: 5px; }
.gallery-caption { color: var(--muted); font-size: 13px; margin: 7px 0 0; }
.grid[data-gallery] .source { font-size: 18px; font-weight: 700; text-decoration: none; color: inherit; }
.grid[data-gallery] .source::after { display: none; }
/* Archive: print stock, asymmetrical color blocks and the catalog label. */
.card-face[data-style='brick-archive'] .card-identity { border-bottom: 4px solid #ae4b2d; }
.card-face[data-style='brick-archive'] .card-theme { display: none; }
/* Realms: the photograph occupies a gold-lined landscape window. */
.card-face[data-style='brick-realms'] { --stock: #f1e7c9; --ink: #183f34; --rule: #c2a15c; --accent-card: #183f34; background: #123d31; border-color: #123d31; }
.card-face[data-style='brick-realms']::before { border: 5px double #c2a15c; inset: 2.9%; border-radius: 2cqw; }
.card-face[data-style='brick-realms']::after { content: ''; position: absolute; z-index: -1; inset: 15% 0 27%; background: url('/card-assets/v1/brick-realms.webp') center / cover; }
.card-face[data-style='brick-realms'] .card-masthead, .card-face[data-style='brick-realms'] .card-edition { color: #f1e7c9; }
.card-face[data-style='brick-realms'] .card-identity { top: 7.8%; left: 6.5%; width: 87%; height: 10.2%; border: 1px solid var(--rule); }
.card-face[data-style='brick-realms'] h2 { font-family: Georgia, serif; font-size: 5.6cqw; }
.card-face[data-style='brick-realms'] .build-cost { top: 9%; right: 8.5%; }
.card-face[data-style='brick-realms'] .art { top: 19%; left: 6.5%; width: 87%; height: 49.5%; padding: 1.5% 2%; border: 1px solid #c2a15c; }
.card-face[data-style='brick-realms'] .card-facts { top: 70%; left: 6.5%; width: 87%; height: 10.5%; border-bottom: 0; }
.card-face[data-style='brick-realms'] .set-line { display: none; }
.card-face[data-style='brick-realms'] .card-ability { left: 6.5%; width: 87%; top: 80.5%; height: 9.3%; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.card-face[data-style='brick-realms'] .card-signature { left: 6.5%; width: 87%; bottom: 6.2%; border: 1px solid var(--rule); border-top: 0; }
.card-face[data-style='brick-realms'] .card-edition { bottom: 4.2%; }
/* Prism: corner metrics, uninterrupted artwork and a bottom title/scrim. */
.card-face[data-style='prism-vault'] { --stock: #0d172b; --ink: #f5f2e9; --rule: #6a8199; --accent-card: #d0bdee; background: #0d172b url('/card-assets/v1/prism-vault.webp') center / cover; border-color: #617a94; }
.card-face[data-style='prism-vault']::before { inset: 2%; border: 3px double #b0cde3; border-radius: 2cqw; box-shadow: 0 0 0 1px #dda1ce, inset 0 0 0 1px #83d7ce; }
.card-face[data-style='prism-vault'] .build-cost { top: 7.8%; left: 6%; right: auto; background: #11233d; color: #f5f2e9; }
.card-face[data-style='prism-vault'] .hero-stat, .card-face[data-style='full-art-impact'] .hero-stat, .card-face[data-style='classic-battle'] .hero-stat { display: flex; flex-direction: column; align-items: end; top: 7%; right: 7%; }
.hero-stat strong { font: 600 8.8cqw/1 'Card Condensed', sans-serif; }
.hero-stat span { font-size: 1.8cqw; font-weight: 700; margin-top: 1.1cqw; }
.card-face[data-style='prism-vault'] .art { top: 17%; left: 6%; width: 88%; height: 51%; }
.card-face[data-style='prism-vault'] .card-identity { top: 70%; left: 6.5%; width: 87%; height: 10.5%; padding: 0; background: none; flex-direction: column-reverse; justify-content: end; }
.card-face[data-style='prism-vault'] h2 { font-family: 'Card Condensed', sans-serif; font-size: 7.4cqw; font-weight: 600; }
.card-face[data-style='prism-vault'] .card-theme { color: #b4dfde; margin: 0 0 1.5cqw; }
.card-face[data-style='prism-vault'] .card-ability { top: 81%; left: 6.5%; width: 87%; height: 9%; padding: 2% 0 0; border-top: 1px solid #657181; background: transparent; }
.card-face[data-style='prism-vault'] .card-signature { background: transparent; border: 0; padding: 0; left: 6.5%; width: 87%; bottom: 6%; }
.card-face[data-style='prism-vault'] .card-facts, .card-face[data-style='prism-vault'] .set-line { display: none; }
.card-face[data-style='prism-vault']::after { content: ''; position: absolute; inset: 64% 3% 3%; z-index: -1; background: linear-gradient(transparent, #07101eee 28%); border-radius: 2cqw; }
/* Classic: the yellow stock, illustrated window, cost medallion and rules panel. */
.card-face[data-style='classic-battle'] { --stock: #e3eef0; --ink: #173544; --rule: #78909a; --accent-card: #173544; background: #b3d4df; border: 3.8cqw solid #f4d43d; border-radius: 4cqw; }
.card-face[data-style='classic-battle']::before { inset: 0; border: 1px solid #386479; border-radius: 1.6cqw; }
.card-face[data-style='classic-battle'] .card-masthead { top: 2.2%; left: 4%; }
.card-face[data-style='classic-battle'] .card-identity { top: 6%; left: 4%; width: 64%; height: 10%; padding: 0; background: none; }
.card-face[data-style='classic-battle'] h2 { font-size: 5.3cqw; }
.card-face[data-style='classic-battle'] .card-theme { display: none; }
.card-face[data-style='classic-battle'] .hero-stat { top: 5.7%; right: 4%; }
.card-face[data-style='classic-battle'] .hero-stat strong { font-size: 8cqw; }
.card-face[data-style='classic-battle'] .art { top: 18%; left: 3%; width: 94%; height: 53%; padding: 3%; background: url('/card-assets/v1/classic-battle.webp') center / cover; border: 4px double #243e45; border-radius: 1cqw; }
.card-face[data-style='classic-battle'][data-photo='original'] .art { background: #fff; }
.card-face[data-style='classic-battle'] .set-line { top: 72.2%; left: 3%; right: 3%; text-align: center; font-size: 1.6cqw; }
.card-face[data-style='classic-battle'] .card-ability { top: 76%; left: 3%; width: 94%; height: 14%; border: 1px solid var(--rule); border-radius: 1.5cqw 1.5cqw 0 0; padding-left: 21%; }
.card-face[data-style='classic-battle'] .card-ability p { max-width: 97%; font-size: 2.25cqw; }
.card-face[data-style='classic-battle'] .build-cost { top: 78%; left: 6%; right: auto; width: 14%; background: #f3df95; color: #173544; z-index: 3; }
.card-face[data-style='classic-battle'] .card-facts { display: none; }
.card-face[data-style='classic-battle'] .card-signature { bottom: 3%; left: 3%; width: 94%; height: 7%; border: 1px solid var(--rule); border-radius: 0 0 1.5cqw 1.5cqw; }
.card-face[data-style='classic-battle'] .card-edition { bottom: .5%; }
/* Impact: diagonal corner plate, full artwork and the notched red name band. */
.card-face[data-style='full-art-impact'] { --stock: #a71f2d; --ink: #fff8eb; --accent-card: #fff8eb; background: #191d25 url('/card-assets/v1/full-art-impact.webp') center / cover; border: 1.5cqw solid #d6d8d5; }
.card-face[data-style='full-art-impact']::before { inset: 1%; border: 1px solid #a89498; border-radius: 2cqw; }
.card-face[data-style='full-art-impact'] .card-masthead { left: 23%; top: 4%; font-size: 1.8cqw; }
.card-face[data-style='full-art-impact'] .card-masthead span:last-child { display: none; }
.card-face[data-style='full-art-impact'] .hero-stat { top: 0; right: 0; width: 38%; height: 17%; padding: 3% 5% 0 0; background: #e6e8e7; color: #191f25; clip-path: polygon(0 0,100% 0,100% 100%,35% 100%); }
.card-face[data-style='full-art-impact'] .build-cost { top: 3%; left: 3%; right: auto; width: 15%; background: #a71f2d; color: #fff8eb; }
.card-face[data-style='full-art-impact'] .art { top: 18%; left: 2%; width: 96%; height: 55%; }
.card-face[data-style='full-art-impact'] .card-ability { top: 72%; left: 5%; width: 90%; height: 10%; background: linear-gradient(transparent,#11101be0); padding: 1% 0; }
.card-face[data-style='full-art-impact'] .card-identity { top: 84%; left: 1%; width: 98%; height: 10%; padding: 1% 4%; text-align: center; flex-direction: column-reverse; clip-path: polygon(0 12%,18% 12%,22% 0,78% 0,82% 12%,100% 12%,100% 100%,0 100%); }
.card-face[data-style='full-art-impact'] h2 { font-family: 'Card Condensed', sans-serif; font-size: 7cqw; font-weight: 600; -webkit-line-clamp: 2; }
.card-face[data-style='full-art-impact'] .card-theme { margin: 0 0 1cqw; font-size: 1.8cqw; }
.card-face[data-style='full-art-impact'] .card-signature { bottom: 2.5%; left: 1%; width: 98%; border: 0; height: 4%; padding: 0 4%; }
.card-face[data-style='full-art-impact'] .card-edition { bottom: 1.4%; background: #a71f2d; }
.card-face[data-style='full-art-impact'] .card-facts, .card-face[data-style='full-art-impact'] .set-line { display: none; }
/* Borderless: the model occupies the paper, with only a quiet lower label. */
.card-face[data-style='borderless-showcase'] { --stock: #faf6ebe8; --ink: #29322b; --rule: #b7aa98; --accent-card: #29322b; background: #faf6eb url('/card-assets/v1/borderless-showcase.webp') center / cover; }
.card-face[data-style='borderless-showcase']::before { display: none; }
.card-face[data-style='borderless-showcase'] .card-masthead { color: #925268; }
.card-face[data-style='borderless-showcase'] .card-identity { top: 6%; height: 14.5%; background: none; padding: 0 20% 0 0; }
.card-face[data-style='borderless-showcase'] .card-theme { flex-shrink: 0; }
.card-face[data-style='borderless-showcase'] h2 { font-family: Georgia, serif; font-size: 6.5cqw; }
.card-face[data-style='borderless-showcase'] .card-theme { font-family: Georgia,serif; text-transform: none; letter-spacing: 0; font-size: 2.5cqw; font-weight: 400; }
.card-face[data-style='borderless-showcase'] .build-cost { top: 8%; right: 6%; width: 11%; background: #efe5d8; color: #29322b; border-color: #9a556c; }
.card-face[data-style='borderless-showcase'] .art { top: 21%; left: 8%; width: 84%; height: 51%; }
.card-face[data-style='borderless-showcase'] .card-ability { top: 73%; height: 13%; padding-top: 3%; }
.card-face[data-style='borderless-showcase'] .card-ability p { font-family: Georgia,serif; font-size: 3cqw; max-width: 95%; }
.card-face[data-style='borderless-showcase'] .card-facts { top: 86%; height: 8.5%; border: 0; border-top: 1px solid var(--rule); }
.card-face[data-style='borderless-showcase'] .fact dd { font-family: Georgia,serif; font-size: 5cqw; }
.card-face[data-style='borderless-showcase'] .card-signature { bottom: 0; left: 0; width: 100%; height: 4.5%; background: #242b27; color: #f5eddf; padding: 0 6%; border: 0; }
.card-face[data-style='borderless-showcase'] .card-edition, .card-face[data-style='borderless-showcase'] .set-line { display: none; }
/* Preserve the characteristic editorial line breaks and scoring labels. */
.card-face[data-style='brick-archive'] h2, .card-face[data-style='borderless-showcase'] h2 { white-space: pre-line; }
.card-face[data-style='brick-archive'] h2 { font-size: 7.1cqw; }
.card-face[data-style='borderless-showcase'] h2 { font-size: 6.6cqw; }
.card-ability p { white-space: pre-line; }
.fact-points, .repeat-cost { display: none; }
.card-face[data-style='classic-battle'] .number { display: none; }
.card-face[data-style='classic-battle'] .repeat-cost { display: flex; flex-direction: column; order: -1; gap: .5cqw; font-size: 3.5cqw; }
.card-face[data-style='classic-battle'] .repeat-cost small { font-size: 1.6cqw; }
.card-face[data-style='classic-battle'] .points { display: flex; flex-direction: column; align-items: end; font: 700 3.5cqw/1.1 ui-sans-serif,system-ui,sans-serif; gap: .5cqw; }
.card-face[data-style='classic-battle'] .points::before { content:'SHOWCASE SCORE';font:700 1.6cqw/1.1 ui-sans-serif,system-ui,sans-serif; }
.card-face[data-style='borderless-showcase'] .fact-year, .card-face[data-style='borderless-showcase'] .points { display: none; }
.card-face[data-style='borderless-showcase'] .fact-points { display: block; }
.card-face[data-style='borderless-showcase'] .fact dd { font-size: 6.2cqw; }
.card-face[data-style='borderless-showcase'] .card-edition { display:block;bottom:1.5%;right:5%;width:auto;color:#f5eddf;font-size:1.25cqw; }
/* Dark stock variants retain each card's composition and all original photo colors. */
:root[data-theme='dark'] .card-face[data-style='brick-archive'] { --stock: #233744; --ink: #f0e7d5; --rule: #ad9980; --accent-card: #eab08d; background-color: #344c5c; background-blend-mode: multiply; }
:root[data-theme='dark'] .card-face[data-style='brick-realms'] { --stock: #1b3a2e; --ink: #f5e6bc; --accent-card: #f5e6bc; }
:root[data-theme='dark'] .card-face[data-style='classic-battle'] { --stock: #203c45; --ink: #f9edc5; --rule: #9c9b74; --accent-card: #f9edc5; background: #2b4b55; border-color: #bea13f; }
:root[data-theme='dark'] .card-face[data-style='borderless-showcase'] { --stock: #382737eb; --ink: #f7eaf1; --rule: #ad8ba4; --accent-card: #f7eaf1; background-color: #533e50; background-blend-mode: multiply; }
:root[data-theme='dark'] .card-face[data-style='borderless-showcase'] .card-masthead { color: #eed0df; }
:root[data-theme='dark'] .card-face { box-shadow: 0 8px 26px #0005; }

footer { margin-top: 55px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.65; color: var(--muted); }
[hidden] { display: none !important; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .card:hover .card-face { transform: translateY(-4px); box-shadow: 0 14px 30px #0005; } }
@media (max-width: 900px) { main { padding: 28px; } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; } }
@media (max-width: 560px) {
  main { padding: 24px 20px; }
  .intro { padding-top: 35px; }
  .brand { font-size: 20px; }
  .header-controls .badge { display: none; }
  .appearance { flex-direction: column; align-items: start; padding: 23px 0; gap: 18px; }
  .style-control { width: 100%; justify-content: space-between; }
  select { min-width: 190px; }
  .grid { grid-template-columns: minmax(0, 1fr); max-width: 365px; margin: auto; gap: 29px; }
  footer { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .card-face { transition: none; } }
@media print {
 :root[data-theme] { color-scheme:light; color:#222; background:#fff; }
 header,.eyebrow,#actions,.appearance,.source,.gallery-caption,.card-ability,.build-cost,.hero-stat,.set-line,.card-edition { display:none !important; }
 main { padding:0; } .intro { padding:0 0 16px; } h1 { font-size:28px; } #status { color:#555; }
 .grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:none; }
 :root[data-theme] .grid .card-face { background:#fff;border:1px solid #aaa;box-shadow:none;color:#222; }
 :root[data-theme] .grid .card-face::before,:root[data-theme] .grid .card-face::after { display:none; }
 :root[data-theme] .grid .card-face .card-identity { top:6%;left:5%;width:90%;height:20%;padding:0;background:#fff;clip-path:none;display:block; }
 :root[data-theme] .grid .card-face h2 { font-size:5cqw;color:#222; }
 :root[data-theme] .grid .card-face .card-theme { display:block;color:#555;font-size:2cqw; }
 :root[data-theme] .grid .card-face .art { top:28%;left:5%;width:90%;height:45%;background:#fff;border:0; }
 :root[data-theme] .grid .card-face .card-facts { top:75%;left:5%;width:90%;height:15%;display:flex;color:#222;background:#fff;border-color:#aaa; }
 :root[data-theme] .grid .card-face .fact dd { font-size:6cqw; }
 :root[data-theme] .grid .card-face .card-signature { bottom:2%;left:5%;width:90%;height:6%;color:#222;background:#fff;border:0; }
 .card-masthead,.fact-points,.repeat-cost { display:none !important; } .number,.fact-year { display:block !important; } footer { color:#555;margin-top:20px; }
}

/* Ownership is opt-in list metadata, never an inference from the public catalog. */
.ownership-label{margin:.65rem 0 0;padding:.55rem .8rem;border:1px solid currentColor;border-radius:999px;text-align:center;font-size:.85rem;font-weight:600;line-height:1.3}
.ownership-owned{color:#306847;background:#edf6ee}
.ownership-unowned{color:#774100;background:#fff4dc}
.ownership-unknown{color:#555;background:#f1f1f1}
[data-theme="dark"] .ownership-owned{color:#bde5c6;background:#203b2b}
[data-theme="dark"] .ownership-unowned{color:#ffe0a7;background:#40311c}
[data-theme="dark"] .ownership-unknown{color:#d0d0d0;background:#303030}
#ownership-control[hidden],#ownership-note[hidden]{display:none}

/* Saved minifigure estimates stay readable outside every card style. */
.minifigure-price-note { font-size: .75rem; line-height: 1.5; color: var(--muted, #686a72); margin: .5rem .3rem 0; }

.card-face[data-kind='minifigure'] .card-identity {top:7%;left:7%;width:86%;height:18%;padding:2%;background:var(--stock);color:var(--ink)}
.card-face[data-kind='minifigure'] h2 {font-size:6cqw;line-height:1.1;text-shadow:none;color:var(--ink)}
.card-face[data-kind='minifigure'] .art {top:28%;left:7%;width:86%;height:45%}
.card-face[data-kind='minifigure'] .card-facts {display:flex;top:76%;left:7%;width:86%;height:12%;background:var(--stock);color:var(--ink);border:1px solid var(--rule)}
.card-face[data-kind='minifigure'] .fact dd {font-size:7cqw}
.card-face[data-kind='minifigure'] .card-signature {top:auto;bottom:4.5%;left:7%;width:86%;height:4%;background:var(--stock);color:var(--ink)}
.card-face[data-kind='minifigure'] .set-line, .card-face[data-kind='minifigure'] .card-collector-theme {display:none}
