:root {
  color-scheme: dark;
  --page: #100e16;
  --surface: #17141f;
  --border: #302a3c;
  --text: #f7f3fc;
  --muted: #bdb5c9;
  --lime: #d7fe65;
  --violet: #bca8ff;
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--page);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
[hidden] { display: none !important; }
body:not([data-catalogue="all"]) [data-all-catalogue] { display: none; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: absolute; z-index: 3; top: 12px; left: 12px; background: var(--lime); color: #151518; padding: 12px; }
.shell { width: min(1184px, calc(100% - 80px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid #25202e; }
.header-inner { min-height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.brand { width: max-content; display: flex; align-items: center; gap: 9px; font: 800 1.42rem/1 var(--heading); letter-spacing: .035em; }
.brand span { color: var(--lime); margin-left: -8px; }
nav { display: flex; gap: clamp(16px, 4vw, 40px); color: var(--muted); font-size: .94rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--lime); }
.header-currency { justify-self: end; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font: 500 .78rem var(--mono); white-space: nowrap; }
.header-currency span { color: var(--lime); }
.hero { isolation: isolate; position: relative; overflow: hidden; min-height: 425px; display: grid; align-items: center; margin-top: 32px; border: 1px solid #3e3250; border-radius: 22px; background: #151021; }
.hero-art { position: absolute; z-index: -2; inset: 0; background: radial-gradient(ellipse at 75% 50%, #482c6d, transparent 67%), #151021; }
.hero-art::before { content: ""; position: absolute; inset: 0; background: url("assets/hero.jpg") right center / cover no-repeat; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #151021 0%, #151021f0 26%, #15102152 57%, transparent 76%); }
.hero-content { padding: 52px clamp(30px, 5vw, 72px); }
.kicker { display: flex; align-items: center; gap: 9px; color: var(--lime); font: 600 .79rem var(--mono); letter-spacing: .14em; margin: 0 0 15px; }
.dot { width: 8px; height: 8px; background: var(--lime); box-shadow: 0 0 14px #d7fe65a0; border-radius: 2px; transform: rotate(45deg); flex-shrink: 0; }
.hero h1 { margin: 0; font: 800 clamp(4rem, 8vw, 7.5rem)/.86 var(--heading); letter-spacing: -.025em; }
.hero h1 span { color: var(--lime); display: block; }
.hero-content > p:nth-of-type(2) { color: #ded7e7; max-width: 36ch; line-height: 1.55; margin: 23px 0 25px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { border-radius: 8px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; min-height: 43px; font-size: .94rem; font-weight: 700; }
.primary { color: #171020; background: var(--lime); border: 1px solid var(--lime); }
.primary:hover { background: #ebffa7; }
.secondary { color: var(--text); border: 1px solid #49405a; background: #211a2a; }
.secondary:hover { border-color: var(--violet); background: #302243; }
.rates { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rate { display: flex; align-items: center; gap: 12px; padding: 14px 17px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; }
.rate div { display: grid; gap: 2px; }
.rate div span { color: var(--muted); font-size: .87rem; }
.edition { padding: 6px 8px; border-radius: 6px; font: 600 .8rem var(--mono); }
.edition.en { color: var(--lime); background: #283418; }
.edition.jp { color: #d2c5ff; background: #312348; }
.rate-value { margin-left: auto; color: #d9ccea; font: 500 .83rem var(--mono); text-align: right; }
.catalogue { margin: 56px 0 60px; scroll-margin-top: 22px; }
.section-heading { display: flex; gap: 15px; align-items: end; justify-content: space-between; margin-bottom: 21px; }
h2, .section-heading h1 { margin: 0; font: 800 clamp(2.1rem, 4.5vw, 3.3rem)/.95 var(--heading); letter-spacing: .005em; }
.section-heading p { color: var(--muted); margin: 8px 0 0; }
.controls { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }
.filters { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.filters button { background: transparent; border: 0; border-radius: 6px; color: var(--muted); font-size: .89rem; padding: 8px 13px; min-height: 36px; font-weight: 700; white-space: nowrap; }
.filters button[aria-pressed="true"] { color: #171020; background: var(--lime); }
.filters button[aria-pressed="false"]:hover { color: var(--text); background: #2a2336; }
.filters button span { font: 600 .71rem var(--mono); margin-left: 3px; }
.set-filter { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .94rem; font-weight: 700; }
.set-filter select { min-width: 9rem; }
.search { position: relative; width: min(100%, 294px); }
.search input, .field-row input, .amount-field input, select { width: 100%; min-width: 0; border: 1px solid #4a3f58; border-radius: 8px; padding: 11px 12px; background: #13101b; color: var(--text); }
input::placeholder { color: #a49ab2; }
.search input { padding-left: 38px; }
.magnifier { pointer-events: none; position: absolute; top: 14px; left: 14px; width: 12px; height: 12px; border: 1.6px solid var(--muted); border-radius: 50%; }
.magnifier::after { content: ""; position: absolute; width: 6px; height: 1.6px; background: var(--muted); transform: rotate(45deg); top: 9px; left: 8px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.card { display: grid; grid-template-columns: 125px minmax(0, 1fr); border: 1px solid var(--border); border-radius: 13px; overflow: hidden; background: var(--surface); min-height: 186px; }
.card-art { position: relative; min-height: 100%; display: grid; place-items: center; overflow: hidden; color: var(--lime); background: repeating-linear-gradient(125deg, transparent 0 12px, #c7ff7913 13px 14px), radial-gradient(ellipse at 45% 55%, #3e5728, #202a19 72%); }
.card.jp .card-art { color: #ded2ff; background: repeating-linear-gradient(125deg, transparent 0 12px, #cfadff16 13px 14px), radial-gradient(ellipse at 45% 55%, #583c7d, #291d3a 72%); }
.card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9px; background: #13101b; }
.card-photo { position: absolute; inset: 0; display: block; }
.card-photo:focus-visible { outline-offset: -3px; }
.card-placeholder { display: grid; place-items: center; gap: 10px; width: 69px; height: 96px; border: 2px solid currentColor; border-radius: 7px; transform: rotate(-10deg); box-shadow: 5px 7px 0 #110b1d7c, inset 0 0 18px #110b1d80; padding: 17px 4px 13px; background: #17132080; }
.card-placeholder img { position: static; width: 24px; height: 24px; padding: 0; background: none; }
.card-placeholder span { font: 600 .62rem var(--mono); }
.card-body { padding: 16px 17px; display: grid; align-content: start; gap: 5px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #c4bacf; font: 500 .73rem var(--mono); }
.card-meta .edition { padding: 3px 6px; }
.card h3 { margin: 3px 0 0; font-size: 1.2rem; }
.card .set { color: var(--muted); margin: 0; font-size: .88rem; }
.card-price { display: flex; flex-wrap: wrap; gap: 3px 9px; align-items: baseline; color: var(--muted); margin: 4px 0 0; font-size: .79rem; }
.card-price strong { color: var(--lime); font: 600 1.15rem var(--mono); }
.card-link { display: block; width: fit-content; margin-top: 4px; font-size: .87rem; color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.card-link:hover { color: var(--text); }
.empty { text-align: center; padding: 27px 18px; border: 1px dashed #4a3f58; border-radius: 10px; background: var(--surface); }
.empty h3 { margin: 0; }
.empty p { color: var(--muted); }
.guide { margin-bottom: 54px; padding: 25px 30px; border: 1px solid #423353; border-radius: 14px; background: radial-gradient(ellipse at top left, #2d2041, transparent 80%), var(--surface); display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); align-items: center; gap: 24px; scroll-margin-top: 22px; }
.guide h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.guide div > p:not(.kicker) { color: var(--muted); margin: 0 0 10px; line-height: 1.55; }
.guide strong { color: var(--text); }
.about { margin: 16px 0 0; scroll-margin-top: 22px; }
.about div > p:last-child { margin-bottom: 0; }
.site-footer { border-top: 1px solid #2d2638; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 20px; }
.footer-inner > span { color: var(--muted); font-size: .85rem; }
.footer-inner > span a { text-decoration: underline; text-underline-offset: 3px; }
dialog { width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); color: var(--text); background: #191421; border: 1px solid #574768; border-radius: 15px; padding: clamp(18px, 5vw, 28px); box-shadow: 0 24px 80px #0008; }
dialog::backdrop { background: #0a0711bd; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.dialog-heading h2 { font-size: clamp(1.85rem, 6vw, 2.6rem); }
.close { border: 1px solid #4a3f58; background: #241a30; color: var(--text); border-radius: 7px; width: 37px; height: 37px; font-size: 1.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row label, .amount-field { display: grid; gap: 6px; font-weight: 700; font-size: .93rem; }
select { appearance: none; padding-right: 37px; background: linear-gradient(45deg, transparent 50%, var(--violet) 50%) right 16px center / 6px 6px no-repeat, linear-gradient(135deg, var(--violet) 50%, transparent 50%) right 10px center / 6px 6px no-repeat, #13101b; }
.muted, .conversion-note { font-size: .88rem; color: var(--muted); }
.amount-field { border-top: 1px solid var(--border); margin-top: 19px; padding-top: 19px; }
.conversion { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 12px; padding: 11px 13px; border-radius: 8px; background: #252d19; color: var(--lime); font: 600 .88rem var(--mono); }
.conversion output { font-size: 1.18rem; }
.conversion-note { margin-bottom: 0; }
@media (max-width: 800px) {
  .shell { width: min(100% - 40px, 670px); }
  .hero { min-height: 380px; }
  .hero-art::before { background-position: 66% center; }
  .hero::after { background: linear-gradient(90deg, #151021 0%, #151021dd 30%, #1510211a 100%); }
  .card { grid-template-columns: 89px minmax(0, 1fr); }
}
@media (max-width: 575px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { grid-template-columns: 1fr; gap: 10px; padding-block: 14px 9px; }
  nav { flex-wrap: wrap; gap: 2px 17px; font-size: .85rem; }
  nav a { padding-block: 5px; }
  .header-currency { display: none; }
  .hero { min-height: 505px; align-items: end; margin-top: 19px; }
  .hero-content { padding: 26px 22px; }
  .hero h1 span { display: inline; }
  .hero h1 { font-size: clamp(3.05rem, 13vw, 5rem); }
  .hero-content > p:nth-of-type(2) { margin: 14px 0 17px; }
  .hero-art::before { inset: 0 0 39%; background-position: 71% 45%; }
  .hero::after { background: linear-gradient(0deg, #151021 0%, #151021 37%, #15102100 77%); }
  .rates, .card-grid, .guide { grid-template-columns: 1fr; }
  .rate { padding: 10px 12px; }
  .catalogue { margin-block: 42px; }
  .section-heading { align-items: start; flex-direction: column; }
  .controls { flex-direction: column; align-items: stretch; }
  .filters button { flex: 1; padding-inline: 6px; }
  .set-filter select { min-width: 0; }
  .search { width: 100%; }
  .card { grid-template-columns: 108px minmax(0, 1fr); }
  .guide { gap: 13px; padding: 21px 18px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
