:root {
	color-scheme: light;
	--ink: #18252b;
	--muted: #64747a;
	--paper: #f3f6f0;
	--surface: #fbfcf8;
	--line: #cbd7d2;
	--orange: #ef593d;
	--cyan: #087f91;
	--yellow: #e6bd3f;
	--grid: #8eaaa51f;
	--shadow: #10252a20;
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--ink: #edf5ee;
	--muted: #9aada9;
	--paper: #111b1d;
	--surface: #192628;
	--line: #344548;
	--orange: #ff7654;
	--cyan: #57d0d0;
	--yellow: #f2cb59;
	--grid: #82d0c610;
	--shadow: #00000055;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Space Grotesk", sans-serif; transition: color .2s ease, background-color .2s ease; }
body::before { position: fixed; inset: 0; z-index: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 42px 42px; content: ""; pointer-events: none; mask-image: linear-gradient(to bottom, #000 0, transparent 72%); }
.shell { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 0 5vw; }
.masthead { min-height: 82px; display: flex; align-items: center; gap: 25px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--orange); font-size: 22px; font-weight: 700; transform: skew(-8deg); box-shadow: 4px 4px 0 var(--yellow); }
.brand strong, .brand small { display: block; line-height: 1; }
.brand strong { font-size: 13px; letter-spacing: .08em; }
.brand small { margin-top: 5px; color: var(--muted); font: 10px "DM Mono", monospace; letter-spacing: .08em; }
.header-note { margin-left: auto; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; }
.pulse { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #65bd78; box-shadow: 0 0 0 4px #65bd7825; }
.theme-toggle { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid var(--line); color: var(--ink); background: var(--surface); cursor: pointer; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.theme-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.theme-icon-light, :root[data-theme="dark"] .theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: block; }
.language-control, .collection-box { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; }
select, input { border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; }
select { color-scheme: light; }
:root[data-theme="dark"] select { color-scheme: dark; }
:root[data-theme="dark"] select option { color: #edf5ee; background-color: #243638; }
:root[data-theme="dark"] select option:checked { color: #111b1d; background-color: #57d0d0; }
.language-control select { font-size: 12px; font-weight: 600; cursor: pointer; }
.intro { position: relative; max-width: 820px; padding: 73px 0 56px; }
.intro::after { position: absolute; top: 76px; right: 14px; width: 118px; height: 118px; border: 1px solid var(--cyan); content: ""; opacity: .38; transform: rotate(45deg); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--orange); font: 10px "DM Mono", monospace; letter-spacing: .1em; }
.eyebrow::before { width: 22px; height: 2px; background: var(--yellow); content: ""; }
.intro h1 { max-width: 740px; margin: 0; font-size: 76px; line-height: .98; font-weight: 700; }
.intro h1 em { color: var(--cyan); font-style: normal; }
.lede { max-width: 430px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.toolbar { display: flex; align-items: center; gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-box { display: flex; align-items: center; flex: 1; gap: 13px; }
.search-box span { color: var(--cyan); font-size: 26px; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; color: var(--ink); font-size: 15px; }
.search-box input::placeholder { color: var(--muted); opacity: .85; }
.collection-box { padding: 10px 14px; border-left: 1px solid var(--line); }
.collection-box select { max-width: 260px; font: 500 12px "Space Grotesk", sans-serif; cursor: pointer; }
.result-count { display: flex; align-items: baseline; gap: 7px; padding-left: 22px; border-left: 1px solid var(--line); color: var(--muted); font: 10px "DM Mono", monospace; white-space: nowrap; }
.result-count strong { color: var(--orange); font-size: 19px; }
.card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 15px; padding: 32px 0; }
.card-tile { min-width: 0; padding: 0; border: 0; color: var(--ink); background: none; text-align: left; cursor: pointer; transition: transform .2s ease; }
.card-tile:hover { transform: translateY(-5px); }
.card-art { display: block; width: 100%; aspect-ratio: .714; object-fit: cover; background: var(--surface); box-shadow: 0 9px 20px var(--shadow); }
.card-meta { display: block; padding-top: 10px; }
.card-id { color: var(--orange); font: 10px "DM Mono", monospace; }
.card-name { display: block; overflow: hidden; margin-top: 3px; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.load-more { display: block; margin: 10px auto 55px; padding: 13px 24px; border: 1px solid var(--cyan); color: var(--ink); background: var(--surface); font: 10px "DM Mono", monospace; text-transform: uppercase; cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.load-more[hidden] { display: none; }
.load-more:hover { color: #101c1e; background: var(--cyan); }
.empty-state { padding: 70px 0 120px; color: var(--muted); text-align: center; }
footer { display: flex; justify-content: space-between; padding: 20px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font: 12px "DM Mono", monospace; }
.footer-contact, .contact-back { color: var(--cyan); font: 500 12px "DM Mono", monospace; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.secondary-masthead .contact-back { margin-left: auto; white-space: nowrap; }
.footer-contact:hover, .contact-back:hover { color: var(--orange); }
.contact-page { max-width: 680px; min-height: calc(100vh - 165px); padding: 70px 0 90px; }
.contact-page h1 { margin: 0; font-size: 52px; line-height: 1.05; }
.contact-intro { margin: 14px 0 34px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.contact-form { display: grid; gap: 22px; }
.form-field { display: grid; gap: 8px; }
.form-field label { color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); font: 14px "Space Grotesk", sans-serif; }
.contact-form textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cyan); outline: 2px solid color-mix(in srgb, var(--cyan) 24%, transparent); outline-offset: 1px; }
.field-error, .form-errors { margin: 0; color: #bf392d; font-size: 12px; }
.contact-feedback { margin-bottom: 24px; }
.contact-message { margin: 0; padding: 12px 14px; border-left: 3px solid var(--cyan); color: var(--ink); background: var(--surface); font-size: 14px; }
.contact-message.error { border-color: #bf392d; }
.contact-submit { justify-self: start; min-height: 44px; padding: 0 19px; border: 0; color: #fff; background: var(--orange); font: 600 11px "DM Mono", monospace; text-transform: uppercase; cursor: pointer; }
.contact-submit:hover { background: #cf432e; }
.contact-submit:focus-visible, .footer-contact:focus-visible, .contact-back:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.donation-payment-link { display: inline-flex; align-items: center; justify-content: center; min-width: 240px; min-height: 88px; margin-top: 10px; padding: 10px 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s ease, transform .2s ease; }
.donation-payment-link:hover { border-color: #009ee3; transform: translateY(-2px); }
.donation-payment-link img { display: block; width: min(320px, 100%); height: auto; }
.donation-payment-link:focus-visible { outline: 2px solid #009ee3; outline-offset: 4px; }
.card-modal { width: min(880px, 92vw); padding: 0; border: 1px solid var(--line); color: var(--ink); background: var(--surface); box-shadow: 0 25px 80px var(--shadow); }
.card-modal::backdrop { background: #081214b8; backdrop-filter: blur(5px); }
.modal-close { position: absolute; z-index: 1; top: 14px; right: 18px; border: 0; color: var(--muted); background: none; font-size: 32px; cursor: pointer; }
.modal-layout { display: grid; grid-template-columns: minmax(230px, 38%) 1fr; gap: 36px; padding: 38px; }
.modal-layout img { width: 100%; box-shadow: 0 12px 28px var(--shadow); }
.modal-id { color: var(--orange); font: 11px "DM Mono", monospace; }
.modal-layout h2 { margin: 8px 0 20px; font-size: 34px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 17px 0; border-top: 1px solid var(--line); }
.detail-grid div { display: flex; flex-direction: column; gap: 4px; }
.detail-grid small, .effect h3 { color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; }
.detail-grid span { font-size: 14px; }
.detail-fallback { color: var(--muted); }
.card-data-section { padding-top: 15px; border-top: 1px solid var(--line); }
.card-data-section + .card-data-section,
.card-data-section + .collection-section { margin-top: 16px; }
.card-data-section h3 { margin: 0 0 9px; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; }
.type-chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.type-chip { padding: 5px 8px; border: 1px solid var(--line); color: var(--cyan); background: var(--paper); font: 10px "DM Mono", monospace; }
.alternate-cost p { margin: 0; font-size: 13px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.card-color-list { display: flex; flex-wrap: wrap; gap: 6px; }
.card-color-chip { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border: 1px solid transparent; font: 600 10px "DM Mono", monospace; }
.color-red { color: #fff; background: #c93632; }
.color-blue { color: #fff; background: #2473b8; }
.color-yellow { color: #28220e; background: #efcc4b; }
.color-green { color: #fff; background: #34834d; }
.color-black { color: #fff; background: #30383d; }
.color-purple { color: #fff; background: #7542a5; }
.color-white { color: #26333a; border-color: #b9c4c2; background: #f7f8f4; }
.collection-section { padding-top: 15px; border-top: 1px solid var(--line); }
.collection-section h3 { margin: 0 0 9px; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; }
.collection-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.collection-tag { padding: 5px 8px; border: 1px solid var(--line); color: var(--cyan); background: var(--paper); font: 10px "DM Mono", monospace; }
.collection-empty { color: var(--muted); font-size: 13px; }
.collection-section + .effect { margin-top: 16px; }
.effect { padding-top: 15px; border-top: 1px solid var(--line); }
.effect h3 { margin: 0 0 8px; }
.effect p { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.effect-keyword { color: #c64d20; font-weight: 700; }
:root[data-theme="dark"] .effect-keyword { color: #ff966e; }
.effect-tag { display: inline; padding: 1px 3px; border-radius: 2px; color: #fff; background: #66757b; font-weight: 600; white-space: nowrap; }
.keyword-timing { background: #2473b8; }
.keyword-hand { background: #7542a5; }
.keyword-once { background: #e54b3f; }
.hidden { display: none; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 650px) {
	.shell { padding: 0 20px; }
	.masthead { min-height: 72px; gap: 12px; }
	.secondary-masthead { min-height: 72px; flex-wrap: wrap; padding: 12px 0; }
	.secondary-masthead .language-control { margin-left: auto; }
	.header-note { display: none; }
	.theme-toggle { margin-left: auto; }
	.language-control { gap: 5px; }
	.intro { padding: 52px 0 40px; }
	.intro::after { top: 38px; right: 5px; width: 54px; height: 54px; }
	.intro h1 { max-width: 440px; font-size: 48px; }
	.lede { max-width: 350px; margin-top: 18px; font-size: 14px; }
	.toolbar { flex-wrap: wrap; gap: 14px; }
	.search-box { flex-basis: 100%; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
	.collection-box { max-width: calc(100% - 78px); padding: 0; border: 0; }
	.collection-box select { max-width: min(56vw, 250px); }
	.result-count { margin-left: auto; padding: 0; border: 0; }
	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; padding-top: 24px; }
	.modal-layout { grid-template-columns: 1fr; gap: 22px; padding: 28px 22px; }
	.modal-layout img { width: 58%; margin: auto; }
	.modal-layout h2 { font-size: 27px; }
	footer { display: block; line-height: 2; }
	.contact-page { min-height: calc(100vh - 145px); padding: 54px 0 72px; }
	.contact-page h1 { font-size: 40px; }
	.contact-back { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
