:root {
  color-scheme: light;
  --paper: #f9f9f4;
  --white: #fff;
  --ink: #121e19;
  --dim: #4b5c52;
  --line: #d9e0d8;
  --lime: #c9f052;
  --olive: #eaf1d4;
  --mint: #e2edfb;
  --radius: 20px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
input, select, button { font: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.047em; }
h1 { font-size: clamp(3rem, 6.5vw, 6.65rem); font-weight: 850; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.28rem; }
p { color: var(--dim); }
:focus-visible { outline: 3px solid #176147; outline-offset: 4px; }
::selection { color: var(--ink); background: var(--lime); }
.frame { width: min(100% - 80px, 1190px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 4; background: var(--white); padding: 12px; }

.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.wordmark { display: inline-flex; width: fit-content; align-items: center; gap: 11px; font-size: 1.28rem; font-weight: 850; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand-icon { display: inline-block; position: relative; width: 25px; height: 27px; flex: 0 0 25px; }
.brand-icon::before, .brand-icon::after { content: ""; position: absolute; width: 16px; height: 20px; border-radius: 3.5px; box-shadow: 0 0 0 1.5px var(--ink); }
.brand-icon::before { top: 3px; left: 3px; transform: rotate(-15deg); background: var(--lime); }
.brand-icon::after { top: 6px; left: 8px; transform: rotate(9deg); background: var(--ink); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--dim); text-decoration: none; font-size: .94rem; font-weight: 650; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.wish-link { justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; font-size: .93rem; font-weight: 720; white-space: nowrap; }
.wish-link:hover, .wish-link[aria-current] { background: var(--olive); border-color: #a6b599; }
.wish-link > span { font-size: 1.25rem; line-height: 1; }
.wish-link b { padding: 1px 6px; border-radius: 5px; background: var(--lime); font-size: .78rem; }

.hero { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 460px; margin-block: 40px 60px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.hero-copy { padding: clamp(28px, 5vw, 66px); align-self: center; }
.eyebrow { margin-bottom: 10px; color: #385349; font-size: .82rem; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { letter-spacing: -.085em; font-size: clamp(3.25rem, 6.3vw, 6.25rem); line-height: .94; }
.hero-description { max-width: 31ch; margin-block: 22px 26px; font-size: clamp(1.05rem, 1.7vw, 1.2rem); }
.hero-art { position: relative; min-width: 0; min-height: 100%; background: #bbd94a; }
.hero-art img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 50% 50%; }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 44px; padding: 9px 15px; border: 1px solid #b7c4b9; border-radius: 8px; background: #fff; color: var(--ink); font-size: .94rem; font-weight: 720; text-decoration: none; text-align: center; }
.button:hover { background: var(--olive); border-color: #879e8b; }
.button-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.button-primary:hover { background: #2e4a3d; border-color: #2e4a3d; }
.hero-counts { display: flex; gap: 28px; margin-top: 28px; }
.hero-counts > div { display: grid; gap: 1px; }
.hero-counts dt { font-size: 1.55rem; font-weight: 820; line-height: 1.05; letter-spacing: -.04em; }
.hero-counts dd { color: var(--dim); font-size: .86rem; }

.checklist { scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section-heading p { margin-top: 7px; }
.text-link { flex: none; color: #365147; font-size: .92rem; font-weight: 690; text-underline-offset: 3px; }
.text-link:hover { color: #0a5a3d; }
.controls { margin-bottom: 12px; }
.search-row { display: grid; grid-template-columns: 1fr minmax(10rem, 12rem) minmax(9.5rem, 11rem); gap: 10px; }
.search-box, .select-field { display: block; position: relative; }
.search-box::before { content: ""; position: absolute; width: 13px; height: 13px; left: 17px; top: 15px; border: 1.6px solid var(--dim); border-radius: 50%; pointer-events: none; }
.search-box::after { content: ""; position: absolute; width: 7px; height: 1.5px; left: 27px; top: 28px; background: var(--dim); transform: rotate(47deg); pointer-events: none; }
.search-box input, .select-field select { display: block; width: 100%; height: 47px; border: 1px solid #bdc8bf; border-radius: 8px; background: #fff; color: var(--ink); }
.search-box input { padding: 8px 14px 8px 44px; }
.select-field select { appearance: none; padding: 8px 31px 8px 12px; font-size: .94rem; }
.select-field::after { content: ""; position: absolute; right: 14px; top: 18px; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.range { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.range button { min-height: 36px; padding: 4px 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--dim); font-weight: 660; font-size: .9rem; }
.range button:hover { background: #eef2e9; }
.range button[aria-pressed="true"] { border-color: #9eb387; background: var(--olive); color: var(--ink); }
.result-count { font-size: .89rem; font-variant-numeric: tabular-nums; }

.table-wrap { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
thead { background: #eff3ec; color: #374a40; }
thead th { padding: 11px 16px; font-size: .85rem; font-weight: 750; }
thead th:nth-child(1) { width: 15%; }
thead th:nth-child(2) { width: 30%; }
thead th:nth-child(3) { width: 24%; }
thead th:nth-child(4) { width: 24%; }
thead th:nth-child(5) { width: 7%; }
tbody th, tbody td { padding: 10px 16px; border-top: 1px solid #e5eae2; vertical-align: middle; overflow-wrap: anywhere; font-size: .95rem; }
tbody th { font-weight: 750; }
tbody tr:hover { background: #f7f9f3; }
.number-cell, .inline-number { font-variant-numeric: tabular-nums; }
.number-cell { color: #385248; font-weight: 680; }
.card-link { text-underline-offset: 3px; text-decoration-color: #799b8d; }
.card-link:hover { color: #126043; text-decoration-color: currentColor; }
.type-label { display: inline-block; padding-left: 8px; color: var(--dim); font-size: .77rem; font-weight: 560; }
.mobile-artist { display: none; }
.artist-cell { color: #3a4d43; }
.rarity { display: inline-block; padding: 3px 8px; border-radius: 5px; background: #eff3ec; color: #34483d; font-weight: 650; font-size: .82rem; }
.save-cell { padding: 6px 10px 6px 4px; }
.save-button { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; gap: 10px; border: 1px solid #c5d0c7; border-radius: 8px; background: #fff; color: var(--ink); }
.save-button:hover { border-color: #90a390; background: #f0f5e8; }
.save-button[aria-pressed=true] { border-color: #8ea346; background: var(--lime); }
.save-button [data-save-mark] { font-size: 1.35rem; line-height: 1; }
.more { display: grid; place-items: center; margin-top: 16px; }
.empty-state { display: grid; justify-items: center; gap: 10px; padding: 45px 20px; text-align: center; }

.guides { margin-block: 52px 64px; scroll-margin-top: 24px; }
.guide-grid, .variant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guide-tile { display: grid; align-content: start; gap: 8px; padding: 24px; border: 1px solid #c7d6c1; border-radius: 14px; text-decoration: none; }
.guide-tile h3 { margin-bottom: 3px; font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
.guide-tile span { margin-top: 5px; text-decoration: underline; text-underline-offset: 3px; font-size: .89rem; font-weight: 720; }
.guide-tile:hover { border-color: #77917e; }
.starters { background: var(--olive); }
.variants { background: var(--mint); }
.ember { background: #fbe6d6; }

.footer { border-top: 1px solid var(--line); background: #eef2e9; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-block: 23px; }
.footer p { margin-top: 4px; font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; font-size: .88rem; font-weight: 650; }
.footer-links a { text-underline-offset: 3px; }

.breadcrumbs { padding-block: 22px 18px; color: var(--dim); font-size: .9rem; }
.breadcrumbs ol { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; color: #75877a; margin-right: 12px; }
.breadcrumbs a { text-underline-offset: 3px; }
.detail, .article { padding-block: 8px 64px; }
.detail-grid { display: grid; align-items: stretch; grid-template-columns: minmax(250px, .76fr) minmax(0, 1.24fr); gap: 30px; }
.number-poster { display: flex; flex-flow: column; justify-content: center; min-height: 380px; padding: 38px; border: 1px solid #a8c266; border-radius: var(--radius); background: var(--lime); color: var(--ink); }
.number-poster > span { font-size: .79rem; font-weight: 770; letter-spacing: .14em; }
.number-poster strong { font-size: clamp(4rem, 13vw, 11rem); font-weight: 860; letter-spacing: -.109em; line-height: 1.04; font-variant-numeric: tabular-nums; }
.number-poster small { font-size: 1.85rem; font-weight: 780; letter-spacing: -.05em; }
.number-poster div { margin-top: 30px; padding-top: 12px; border-top: 1px solid #819b42; color: #31412d; font-size: .96rem; }
.detail-copy { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: clamp(20px, 4vw, 40px); }
.detail h1, .article h1, .wishlist h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); }
.detail h1 span { display: block; margin-top: 5px; color: #39594c; font-size: .49em; letter-spacing: -.045em; }
.intro { margin-top: 13px; color: #3c5044; font-size: 1.1rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 17px; margin-block: 24px; }
.facts div { padding-top: 6px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.facts dt { color: var(--dim); font-size: .81rem; }
.facts dd { font-weight: 715; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.action-save { min-height: 44px; padding: 7px 12px; color: #12271c; font-weight: 750; }
.small { margin-top: 10px; font-size: .84rem; }
.related-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 23px; }
.related { flex: 1 1 240px; min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.related h2 { font-size: 1.19rem; }
.related ul, .line-card ol { display: grid; gap: 7px; padding: 0; margin: 12px 0 0; list-style: none; }
.related li > span:not(.inline-number) { display: block; color: var(--dim); font-size: .83rem; }
.related a, .article a:not(.button) { text-underline-offset: 3px; }
.inline-number { white-space: nowrap; }
.article { width: min(100%, 960px); }
.article .intro { max-width: 66ch; }
.article > h2 { margin-top: 28px; font-size: clamp(1.45rem, 3vw, 2.25rem); }
.article > h2 + p, .article > p + p, .article > .button { margin-top: 10px; }
.line-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 24px; }
.variant-grid { margin-block: 16px 20px; }
.line-card { padding: 19px; border-radius: 13px; }
.line-card h2 { font-size: 1.25rem; }
.line-card p { margin-top: 6px; }
.line-card li { overflow-wrap: anywhere; }
.wishlist { min-height: 72vh; padding-block: 45px 64px; }
.wishlist-heading { margin-bottom: 18px; }
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 10px; }
.wishlist-card { display: grid; align-content: start; justify-items: start; gap: 8px; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.wishlist-card h2 { font-size: 1.35rem; }
.wishlist-card > p:not(.eyebrow) { font-size: .9rem; }
.wishlist-card .eyebrow { margin-bottom: 0; }
.wishlist-card a { text-underline-offset: 3px; }
.remove-button { margin-top: 4px; }
.wishlist-empty, .missing { min-height: 270px; align-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.wishlist-empty > span { font-size: 2rem; line-height: 1; }
.missing { margin-block: 36px; }
.storage-notice { padding: 12px; background: var(--olive); color: var(--ink); }

@media (max-width: 900px) {
  .frame { width: calc(100% - 48px); }
  .hero { min-height: 395px; margin-block: 28px 48px; }
  .hero-copy { padding: 34px; }
  .hero h1 { font-size: clamp(3rem, 7vw, 5rem); }
  .type-label { display: block; padding-left: 0; }
  .number-poster { padding: 25px; }
}
@media (max-width: 680px) {
  .frame { width: calc(100% - 30px); }
  .header-inner { min-height: 62px; gap: 8px; grid-template-columns: 1fr auto; }
  .wordmark { font-size: 1.12rem; gap: 8px; }
  .nav { grid-row: 2; grid-column: 1 / -1; gap: 24px; border-top: 1px solid var(--line); min-height: 40px; }
  .wish-link { min-height: 40px; margin-block: 10px 2px; }
  .hero { grid-template-columns: 1fr; margin-block: 18px 40px; min-height: auto; }
  .hero-copy { padding: 28px 24px 22px; }
  .hero h1 { font-size: clamp(3rem, 11vw, 4.7rem); }
  .hero-description { margin-block: 16px 19px; }
  .hero-counts { margin-top: 23px; }
  .hero-art { min-height: 190px; height: 42vw; max-height: 260px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 15px; }
  .search-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .search-box { grid-column: 1 / -1; }
  .results-bar { align-items: start; flex-direction: column; gap: 6px; margin-top: 11px; }
  .range button { padding-inline: 9px; }
  .checklist-table thead th, .checklist-table tbody td, .checklist-table tbody th { padding-inline: 8px; }
  .checklist-table thead th:nth-child(1) { width: 20%; }
  .checklist-table thead th:nth-child(2) { width: 49%; }
  .checklist-table thead th:nth-child(4) { width: 18%; }
  .checklist-table thead th:nth-child(5) { width: 13%; }
  .checklist-table thead th:nth-child(3) { display: none; }
  .checklist-table .artist-cell { display: none; }
  .checklist-table .type-label { display: none; }
  .mobile-artist { display: block; color: var(--dim); font-size: .79rem; font-weight: 550; }
  .checklist-table .rarity-cell { padding-inline: 4px; }
  .checklist-table .save-cell { padding: 5px 5px 5px 0; text-align: center; }
  .rarity { padding: 2px 4px; font-size: .73rem; }
  .save-button:not(.action-save) { min-width: 39px; }
  .guide-grid, .variant-grid, .line-grid, .detail-grid { grid-template-columns: 1fr; gap: 11px; }
  .guide-tile { padding: 17px; }
  .detail-grid .number-poster { display: none; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 13px; }
  .wishlist { padding-block: 30px 45px; }
}
@media (max-width: 375px) {
  .checklist-table .number-cell { font-size: .81rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
