:root {
  --ink: #151419;
  --muted: #68666f;
  --paper: #f4f3ef;
  --white: #fff;
  --line: #dcdad4;
  --violet: #7857e8;
  --violet-dark: #6241d2;
  --lime: #d7ff61;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(21, 20, 25, .09);
  background: rgba(244, 243, 239, .94);
  backdrop-filter: blur(14px);
}
.nav { height: 70px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 118px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; color: #504e55; font-size: 14px; font-weight: 720; }
.nav-links a:hover { color: var(--violet-dark); }
.top-cta { padding: 10px 15px; border-radius: 10px; color: white; background: var(--ink); font-size: 14px; font-weight: 820; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 44px; color: #79767f; font-size: 12px; }
.breadcrumbs a:hover { color: var(--violet-dark); }
.breadcrumbs span[aria-current="page"] { color: #39373e; }
.eyebrow { margin: 0 0 14px; color: var(--violet-dark); font-size: 12px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.lead { max-width: 720px; margin: 22px 0 0; color: #5f5c65; font-size: clamp(17px, 2vw, 20px); }
.muted { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 19px; border: 1px solid transparent; border-radius: 11px; font-size: 14px; font-weight: 820; transition: transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--ink); }
.button.secondary { border-color: var(--line); background: white; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.set-hero { padding: 54px 0 0; background: #f4f3ef; }
.set-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: center; }
.set-copy h1, .page-hero h1, .card-detail-hero h1 { margin: 0; font-size: clamp(46px, 6vw, 78px); line-height: 1; letter-spacing: -.06em; }
.set-copy h1 span { display: inline-block; margin-top: 11px; color: var(--violet); font-size: .52em; letter-spacing: -.035em; }
.set-cover { position: relative; display: grid; place-items: center; min-height: 390px; overflow: hidden; border: 1px solid #2d2b31; border-radius: 22px; background: #19181d; }
.set-cover::before { position: absolute; inset: -30%; content: ""; background: radial-gradient(circle, rgba(120,87,232,.62), transparent 55%); }
.set-cover img { position: relative; z-index: 1; width: 74%; max-height: 270px; object-fit: contain; filter: drop-shadow(0 25px 38px rgba(0,0,0,.32)); }
.set-cover span { position: absolute; z-index: 2; right: 18px; bottom: 18px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; color: white; background: rgba(0,0,0,.28); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.fact-grid { display: grid; grid-template-columns: repeat(6, 1fr); margin: 64px 0 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 15px 15px 0 0; background: white; }
.fact-grid div { min-width: 0; padding: 21px 18px; border-right: 1px solid var(--line); }
.fact-grid div:last-child { border-right: 0; }
.fact-grid dt, .detail-facts dt, .set-index dt { margin-bottom: 5px; color: #85818a; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fact-grid dd, .detail-facts dd, .set-index dd { margin: 0; font-size: 13px; font-weight: 760; }

.page-hero { padding: 54px 0 82px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 850px; }
.dark-hero { color: white; border-color: #2d2b31; background: var(--ink); }
.dark-hero .breadcrumbs, .dark-hero .lead { color: #b8b4bf; }
.dark-hero .breadcrumbs span[aria-current="page"] { color: white; }
.dark-hero .eyebrow { color: #b9a4ff; }

.section { padding: 92px 0; }
.section.white { background: white; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 42px; }
.split-heading h2, .answer-grid h2, .status-panel h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -.045em; }
.split-heading > p { max-width: 480px; margin: 0 0 4px; color: var(--muted); }
.centered-action { display: flex; justify-content: center; margin-top: 40px; }

.rarity-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: white; }
.rarity-grid div { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 19px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rarity-grid div:nth-child(4n) { border-right: 0; }
.rarity-grid div:nth-last-child(-n+4) { border-bottom: 0; }
.rarity-grid span { display: grid; place-items: center; width: 36px; height: 30px; border-radius: 7px; color: #4e2bb5; background: #ece6ff; font-size: 10px; font-weight: 900; }
.rarity-grid strong { font-size: 13px; }
.rarity-grid b { color: var(--muted); font-size: 12px; }

.card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 17px; }
.card-tile { min-width: 0; }
.card-tile[hidden] { display: none; }
.card-image { display: block; overflow: hidden; border-radius: 13px; background: #e8e6e1; box-shadow: 0 13px 30px rgba(30,24,45,.09); transition: transform .2s ease, box-shadow .2s ease; }
.card-image:hover { transform: translateY(-4px); box-shadow: 0 20px 38px rgba(30,24,45,.16); }
.card-image img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; }
.card-tile-copy { padding: 14px 3px 0; }
.card-tile-copy p { margin: 0 0 4px; color: #85818a; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.card-tile-copy h3 { overflow: hidden; margin: 0; font-size: 15px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.card-tile-copy h3 a:hover { color: var(--violet-dark); }
.card-tile-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }

.answer-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }
.faq-list { border-top: 1px solid #c9c6bf; }
.faq-list details { padding: 21px 0; border-bottom: 1px solid #c9c6bf; }
.faq-list summary { cursor: pointer; font-weight: 800; }
.faq-list p { margin: 12px 0 0; color: var(--muted); }

.filters { display: grid; grid-template-columns: 1.5fr .7fr auto; gap: 15px; align-items: end; margin-bottom: 45px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f7f6f2; }
.filters label { color: #5f5c65; font-size: 11px; font-weight: 800; }
.filters input, .filters select { width: 100%; height: 46px; margin-top: 6px; padding: 0 13px; border: 1px solid #cbc8c1; border-radius: 9px; color: var(--ink); background: white; font: inherit; }
.filters p { margin: 0 4px 13px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.empty-state { padding: 30px; border: 1px dashed #bbb7af; border-radius: 13px; color: var(--muted); text-align: center; }

.status-panel { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; padding: 42px; border: 1px solid var(--line); border-radius: 19px; background: #f7f6f2; }
.status-panel p { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: #cf7a25; box-shadow: 0 0 0 5px rgba(207,122,37,.13); }
.status-panel > div > strong { font-size: 12px; }
.status-panel h2 { margin-top: 12px; }
.status-panel dl { margin: 0; border-top: 1px solid var(--line); }
.status-panel dl div { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.status-panel dt { font-weight: 850; }
.status-panel dd { margin: 0; color: var(--muted); font-size: 12px; }
.price-list { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; }
.price-list a { display: grid; grid-template-columns: 64px 1fr auto; gap: 17px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.price-list a:last-child { border-bottom: 0; }
.price-list a:hover { background: #f8f7f3; }
.price-list img { width: 64px; aspect-ratio: 5 / 7; border-radius: 6px; object-fit: cover; }
.price-list span { min-width: 0; }
.price-list b, .price-list small { display: block; }
.price-list small { margin-top: 4px; color: var(--muted); }
.price-list em { color: #8b6b3b; font-size: 12px; font-style: normal; font-weight: 700; }

.card-detail-hero { padding: 54px 0 86px; }
.card-detail-grid { display: grid; grid-template-columns: minmax(280px, .72fr) 1.28fr; gap: 90px; align-items: center; }
.detail-image { display: grid; place-items: center; padding: 40px; border: 1px solid #29272e; border-radius: 22px; background: #19181d; }
.detail-image img { width: min(100%, 420px); border-radius: 18px; box-shadow: 0 28px 60px rgba(0,0,0,.35); }
.detail-copy h1 { overflow-wrap: anywhere; }
.detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 33px 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail-facts div { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.detail-facts a { color: var(--violet-dark); }
.grade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.grade-grid div { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: #f7f6f2; }
.grade-grid span { display: block; color: var(--violet-dark); font-size: 11px; font-weight: 900; }
.grade-grid strong { display: block; margin-top: 7px; font-size: 15px; }
.inline-note { margin: 17px 0 0; color: var(--muted); font-size: 12px; }
.related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.set-index > a { display: grid; grid-template-columns: .75fr 1.25fr; gap: 45px; align-items: center; max-width: 900px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #f7f6f2; }
.set-index img { width: 100%; height: 100%; min-height: 330px; object-fit: contain; padding: 38px; background: #19181d; }
.set-index > a > div { padding: 30px 45px 30px 0; }
.set-index p { margin: 0 0 8px; color: var(--violet-dark); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.set-index h2 { margin: 0; font-size: clamp(29px, 4vw, 46px); letter-spacing: -.04em; }
.set-index span { color: var(--muted); }
.set-index dl { display: flex; gap: 32px; margin: 25px 0; }
.set-index b { font-size: 13px; }

.catalog-totals { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.catalog-totals span { padding: 7px 11px; border: 1px solid #cbc8c1; border-radius: 7px; color: #56535b; background: rgba(255,255,255,.55); font-size: 11px; font-weight: 760; }
.catalog-home-hero { padding: 76px 0 82px; }
.catalog-home-hero h1 { max-width: 720px; }
.catalog-home-hero .lead { max-width: 680px; }
.catalog-home-hero .light-button { color: var(--ink); background: white; }
.ghost-button { color: white; border-color: rgba(255,255,255,.34); background: transparent; }
.catalog-home-totals span { color: #e5e1eb; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.catalog-language-section { background: #f4f3ef; }
.language-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.language-grid a { display: grid; grid-template-columns: 58px 1fr auto; gap: 18px; align-items: center; padding: 25px; border: 1px solid var(--line); border-radius: 15px; background: white; transition: transform .18s ease, box-shadow .18s ease; }
.language-grid a:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(30,24,45,.09); }
.language-grid span { display: grid; place-items: center; width: 58px; height: 48px; border-radius: 10px; color: #4e2bb5; background: #ece6ff; font-size: 13px; font-weight: 900; }
.language-grid strong, .language-grid small { display: block; }
.language-grid strong { font-size: 18px; }
.language-grid small { margin-top: 3px; color: var(--muted); }
.language-grid b { font-size: 12px; }
.catalog-filters { grid-template-columns: 1.35fr .65fr .85fr auto; }
.series-catalog { display: grid; gap: 62px; }
.catalog-series-group[hidden] { display: none; }
.series-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.series-heading p { margin: 0 0 4px; color: var(--violet-dark); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.series-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.1; letter-spacing: -.035em; }
.series-heading > span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.set-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.set-tile { min-width: 0; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: #f7f6f2; transition: transform .18s ease, box-shadow .18s ease; }
.set-tile[hidden] { display: none; }
.set-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(30,24,45,.1); }
.set-tile > a { display: grid; grid-template-columns: 125px minmax(0, 1fr); min-height: 215px; }
.set-tile-art { display: grid; place-items: center; padding: 18px; background: #1b1a1f; }
.set-tile-art img { width: 100%; max-height: 150px; object-fit: contain; }
.set-tile-copy { min-width: 0; padding: 20px 18px; }
.set-tile-copy p { margin: 0 0 7px; color: var(--violet-dark); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.set-tile-copy h2, .set-tile-copy h3 { display: -webkit-box; overflow: hidden; margin: 0; font-size: 17px; line-height: 1.25; letter-spacing: -.02em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.set-tile-copy > span { display: block; overflow: hidden; margin-top: 5px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.set-tile-copy dl { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 16px 0; }
.set-tile-copy dt { color: #8a868f; font-size: 9px; }
.set-tile-copy dd { margin: 1px 0 0; font-size: 11px; font-weight: 760; }
.set-tile-copy b { font-size: 11px; }
.rarity-summary { display: flex; flex-wrap: wrap; gap: 9px; }
.rarity-summary div { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: #f7f6f2; }
.rarity-summary strong { font-size: 12px; }
.rarity-summary span { color: var(--muted); font-size: 11px; }

.data-note { padding: 26px 0; border-top: 1px solid #2e2c32; color: #dedbe2; background: var(--ink); }
.data-note .shell { display: flex; justify-content: space-between; gap: 35px; }
.data-note strong { flex: 0 0 auto; font-size: 12px; }
.data-note p { max-width: 780px; margin: 0; color: #9f9ba5; font-size: 11px; }
.site-footer { padding: 60px 0 28px; border-top: 1px solid var(--line); background: #ebe9e4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: 60px; }
.footer-brand img { width: 110px; }
.footer-grid p { max-width: 390px; color: var(--muted); font-size: 13px; }
.footer-grid strong, .footer-grid a { display: block; }
.footer-grid strong { margin-bottom: 12px; font-size: 12px; }
.footer-grid a { margin-top: 8px; color: #57545c; font-size: 12px; }
.legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid #d2cfc8; color: #85818a; font-size: 10px; }

@media (max-width: 1000px) {
  .set-hero-grid, .card-detail-grid { gap: 45px; }
  .fact-grid { grid-template-columns: repeat(3, 1fr); }
  .fact-grid div:nth-child(3) { border-right: 0; }
  .fact-grid div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .rarity-grid { grid-template-columns: repeat(2, 1fr); }
  .rarity-grid div:nth-child(2n) { border-right: 0; }
  .rarity-grid div:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .rarity-grid div:nth-last-child(-n+2) { border-bottom: 0; }
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .set-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filters { grid-template-columns: 1fr 1fr; }
  .answer-grid { gap: 45px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 30px, var(--max)); }
  .nav { height: 62px; gap: 16px; }
  .brand img { width: 98px; }
  .nav-links { display: none; }
  .top-cta { margin-left: auto; }
  .set-hero, .page-hero, .card-detail-hero { padding-top: 30px; }
  .breadcrumbs { margin-bottom: 30px; }
  .set-hero-grid, .card-detail-grid, .status-panel, .answer-grid, .set-index > a { grid-template-columns: 1fr; }
  .set-cover { min-height: 310px; }
  .set-cover img { width: 68%; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-grid div:nth-child(3) { border-right: 1px solid var(--line); }
  .fact-grid div:nth-child(2n) { border-right: 0; }
  .fact-grid div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .section { padding: 68px 0; }
  .split-heading { display: block; margin-bottom: 30px; }
  .split-heading > p { margin-top: 14px; }
  .rarity-grid { grid-template-columns: 1fr; }
  .rarity-grid div { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .rarity-grid div:last-child { border-bottom: 0 !important; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 12px; }
  .filters { grid-template-columns: 1fr; }
  .catalog-filters { grid-template-columns: 1fr; }
  .filters p { margin: 0; }
  .status-panel { gap: 30px; padding: 27px 20px; }
  .price-list a { grid-template-columns: 54px 1fr; }
  .price-list img { width: 54px; }
  .price-list em { grid-column: 2; }
  .detail-image { padding: 27px; }
  .detail-facts { grid-template-columns: 1fr; }
  .grade-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-index img { min-height: 250px; }
  .set-index > a > div { padding: 0 24px 28px; }
  .set-catalog-grid { grid-template-columns: 1fr; }
  .series-catalog { gap: 48px; }
  .series-heading { align-items: start; }
  .language-grid { grid-template-columns: 1fr; }
  .language-grid a { grid-template-columns: 50px 1fr; padding: 20px; }
  .language-grid span { width: 50px; height: 44px; }
  .language-grid b { grid-column: 2; }
  .data-note .shell { display: block; }
  .data-note p { margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

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