@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-synthesis: none;
  color-scheme: light;
  --page: #fff;
  --text: #24202e;
  --muted: #666171;
  --soft-text: #797382;
  --accent: #8657c9;
  --accent-hover: #542b8b;
  --hero-accent: #8c5cce;
  --surface: #faf9fc;
  --surface-raised: #f0eef4;
  --surface-focus: #e9e2f3;
  --soft-accent: #ede4f9;
  --soft-accent-hover: #dfcef4;
  --button: #8b5bd4;
  --button-hover: #7548bd;
  --button-text: #fff;
  --notice: #f0eafb;
  --notice-text: #5a3c7e;
  --error: #bd344e;
  --story-bg: #f0eafa;
  --story-border: #e3d7f2;
  --story-panel: #fff;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #0b0b15;
  --text: #eeeaf7;
  --muted: #aaa6ba;
  --soft-text: #aaa5b8;
  --accent: #bca0f1;
  --accent-hover: #dbc5ff;
  --hero-accent: #b79af8;
  --surface: #171624;
  --surface-raised: #252337;
  --surface-focus: #322b46;
  --soft-accent: #302447;
  --soft-accent-hover: #44335f;
  --button: #b89bf5;
  --button-hover: #cab3fa;
  --button-text: #211332;
  --notice: #272037;
  --notice-text: #d5c4f1;
  --error: #ff9fa8;
  --story-bg: #211a32;
  --story-border: #352948;
  --story-panel: #0e0c19;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--text); }
button, input, select { font: inherit; border: 0; outline: 0; }
button { cursor: pointer; }

.shell { max-width: 1120px; margin: auto; padding: 28px 28px 80px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display:inline-flex; align-items:center; gap:7px; color: var(--text); text-decoration: none; white-space: nowrap; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.brand-mark { display:inline-block; flex:none; width:36px; height:30px; background:url('/cardback-creature-v3.png') center / 115% no-repeat; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.account-control { position:relative; }
.account-button { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:9px 16px; border-radius:100px; background:var(--soft-accent); color:var(--accent); font-size:12px; font-weight:700; white-space:nowrap; }
.account-button:hover,.account-button:focus-visible,.account-button[aria-expanded='true'] { background:var(--soft-accent-hover); }
.account-menu { position:absolute; z-index:80; top:calc(100% + 10px); right:0; width:min(248px,calc(100vw - 32px)); padding:12px; border-radius:16px; background:var(--surface); box-shadow:0 18px 42px #110b2438; }
.account-identity { display:flex; align-items:center; gap:11px; padding:12px; margin-bottom:8px; border-radius:12px; background:var(--surface-raised); }
.account-identity>div { min-width:0; }
.account-avatar { display:grid; place-items:center; flex:none; width:36px; height:36px; border-radius:11px; background:var(--soft-accent); color:var(--accent); font-size:18px; }
.account-menu-caption { display:block; color:var(--soft-text); font-size:10px; font-weight:600; }
.account-identity strong { display:block; margin-top:3px; color:var(--text); font-size:13px; letter-spacing:.01em; }
.account-menu a,.account-menu-action { display:flex; align-items:center; gap:10px; width:100%; min-height:40px; padding:10px 12px; border-radius:9px; background:transparent; color:var(--text); text-align:left; text-decoration:none; font-size:12px; font-weight:700; }
.account-menu a:hover,.account-menu-action:hover,.account-menu-action:focus-visible { background:var(--surface-raised); }
.account-message { margin:8px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.account-message:empty { display:none; }
.account-error { color:var(--error); }
.site-nav { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 100px; background: var(--surface); }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 700; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }
.site-nav a[aria-current='page'] { background: var(--soft-accent); color: var(--accent); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 14px; border-radius: 100px; background: var(--soft-accent); color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.theme-toggle:hover, .theme-toggle:focus-visible { background: var(--soft-accent-hover); }
.theme-icon { display:inline-flex; align-items:center; justify-content:center; flex:none; width:18px; height:18px; }
.theme-icon svg { display:block; width:18px; height:18px; }
:root[data-theme='dark'] .theme-moon { display:none; }
:root:not([data-theme='dark']) .theme-sun { display:none; }

.hero { padding: 78px 0 56px; max-width: 800px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(48px, 7vw, 88px); line-height: .98; letter-spacing: -.075em; margin: 18px 0 23px; }
.hero h1 em { font-style: normal; color: var(--hero-accent); }
.lede { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 640px; }
.catalog-promo { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; padding: 18px 22px; border-radius: 16px; background: var(--soft-accent); color: var(--notice-text); text-decoration: none; font-size: 14px; }
.catalog-promo strong { color: var(--accent); white-space: nowrap; }
.catalog-promo:hover, .catalog-promo:focus-visible { background: var(--soft-accent-hover); }

.catalog-hero { padding: 74px 0 40px; max-width: 800px; }
.catalog-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(48px, 6vw, 76px); line-height: 1; letter-spacing: -.07em; margin: 15px 0 20px; }
.catalog-hero h1 em { color: var(--hero-accent); font-style: normal; }
.catalog-controls { display: grid; grid-template-columns: minmax(240px, 1.6fr) minmax(150px, 1fr) minmax(180px, 1fr) auto; align-items: end; gap: 12px; background: var(--surface); padding: 18px; border-radius: 18px; }
.catalog-controls label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.catalog-controls input { width: 100%; min-height: 45px; padding: 11px 13px; border-radius: 10px; background: var(--surface-raised); color: var(--text); }
.catalog-controls input::placeholder { color: var(--soft-text); }
.catalog-controls input:focus { background: var(--surface-focus); }
.custom-select { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.filter-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 45px; padding: 11px 13px; border-radius: 10px; background: var(--surface-raised); color: var(--text); text-align: left; font-size: 13px; font-weight: 700; }
.select-trigger:hover, .select-trigger:focus-visible, .select-trigger[aria-expanded='true'] { background: var(--surface-focus); }
.select-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-trigger svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; transition: transform .18s ease; }
.select-trigger[aria-expanded='true'] svg { transform: rotate(180deg); }
.select-menu { position: absolute; z-index: 20; top: calc(100% + 7px); left: 0; width: max(100%, 220px); max-height: 300px; overflow-y: auto; padding: 7px; border-radius: 13px; background: var(--surface-raised); box-shadow: 0 16px 45px rgba(15, 9, 30, .22); }
.select-option { display: block; width: 100%; min-height: 38px; padding: 9px 11px; border-radius: 8px; background: transparent; color: var(--text); text-align: left; font-size: 12px; font-weight: 600; }
.select-option:hover, .select-option:focus-visible { background: var(--surface-focus); }
.select-option[aria-selected='true'] { background: var(--soft-accent); color: var(--accent); }
.search-button { width: auto; min-height: 45px; padding: 11px 22px; }
.catalog-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 0 16px; }
.catalog-summary p { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.catalog-summary span { color: var(--soft-text); font-size: 12px; }
.cards-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.catalog-card { display: block; min-width: 0; overflow: hidden; border-radius: 17px; background: var(--surface); color: var(--text); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.catalog-card:hover, .catalog-card:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(24, 13, 47, .13); }
.catalog-art { display: flex; align-items: center; justify-content: center; height: 280px; padding: 16px; background: var(--surface-raised); color: var(--soft-text); font-size: 12px; text-align: center; }
.catalog-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.catalog-card-body { display: flex; flex-direction: column; min-height: 185px; padding: 16px; }
.catalog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.catalog-tags span { padding: 5px 8px; border-radius: 6px; color: var(--accent); background: var(--soft-accent); font-size: 10px; font-weight: 700; }
.catalog-card h2 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 15px; line-height: 1.35; letter-spacing: -.025em; }
.catalog-set { color: var(--soft-text); font-size: 11px; line-height: 1.45; margin: 8px 0 15px; }
.catalog-card-footer { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: auto; }
.catalog-price { font-family: 'Space Grotesk', sans-serif; color: var(--text); font-size: 14px; white-space: nowrap; }
.catalog-link { color: var(--accent); font-size: 11px; font-weight: 700; text-align: right; text-decoration: none; white-space: nowrap; }
.catalog-link:hover, .catalog-link:focus-visible { color: var(--accent-hover); text-decoration: underline; }
.catalog-error, .catalog-empty { padding: 25px; border-radius: 14px; background: var(--surface); color: var(--muted); }
.catalog-error { color: var(--error); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 25px; color: var(--muted); font-size: 13px; }
.pagination .secondary { min-height: 38px; padding: 8px 14px; }
.pagination .secondary:disabled { opacity: .45; cursor: default; }

.back-link { display: inline-block; margin: 52px 0 24px; color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.back-link:hover, .back-link:focus-visible { color: var(--accent-hover); text-decoration: underline; }
.detail-message { margin-top: 20px; padding: 28px; border-radius: 16px; background: var(--surface); color: var(--muted); }
.detail-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; gap: 36px; }
.detail-image-wrap { display: flex; align-items: center; justify-content: center; min-height: 540px; padding: 30px; border-radius: 20px; background: var(--surface-raised); color: var(--soft-text); text-align: center; font-size: 13px; }
.detail-image-wrap img { display: block; max-width: 100%; max-height: 560px; object-fit: contain; }
.gallery-switch { display: flex; justify-content: center; gap: 6px; margin-top: 13px; }
.gallery-switch button { min-width: 90px; padding: 10px 16px; border-radius: 100px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; }
.gallery-switch button[aria-pressed='true'] { background: var(--soft-accent); color: var(--accent); }
.gallery-switch button:hover, .gallery-switch button:focus-visible { background: var(--soft-accent-hover); }
.detail-info { padding: 12px 0; }
.detail-info h1 { margin: 13px 0 10px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.08; letter-spacing: -.055em; }
.detail-subtitle { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 24px; }
.availability-box { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px; border-radius: 13px; background: var(--surface); font-size: 13px; }
.availability-box strong { color: var(--muted); }
.availability-box.is-available strong { color: #2c8756; }
:root[data-theme='dark'] .availability-box.is-available strong { color: #87d4aa; }
.availability-box > span:last-child { margin-left: auto; color: var(--soft-text); font-size: 11px; }
.availability-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--soft-text); }
.availability-box.is-available .availability-dot { background: #45a575; }
.detail-price-box { display: flex; flex-direction: column; gap: 5px; padding: 22px 0 18px; }
.detail-price-box span { color: var(--soft-text); font-size: 12px; }
.detail-price-box strong { font-family: 'Space Grotesk', sans-serif; font-size: 36px; letter-spacing: -.04em; }
.detail-action { display: block; margin-top: 20px; text-align: center; text-decoration: none; }
.detail-note { color: var(--soft-text); font-size: 11px; line-height: 1.5; margin: 10px 0 25px; }
.detail-facts { border-radius: 16px; background: var(--surface); padding: 5px 20px; }
.detail-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: 12px; }
.detail-facts span { color: var(--soft-text); white-space: nowrap; }
.detail-facts strong { text-align: right; overflow-wrap: anywhere; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card, .mini-card, .flow { background: var(--surface); border-radius: 19px; }
.card { padding: 28px; min-height: 430px; }
.card-heading { display: flex; gap: 14px; align-items: start; margin-bottom: 28px; }
.step { border-radius: 10px; background: var(--soft-accent); color: var(--accent); padding: 10px; font-size: 12px; font-weight: 700; }
.card h2 { font-family: 'Space Grotesk', sans-serif; font-size: 23px; letter-spacing: -.04em; margin: 0 0 3px; }
.card-heading p { color: var(--muted); margin: 0; font-size: 13px; }
.builder label { display: block; font-size: 12px; font-weight: 700; color: var(--text); margin: 18px 0 8px; }
.wallet-row { display: flex; gap: 8px; }
.builder input, .builder select { width: 100%; background: var(--surface-raised); border-radius: 10px; color: var(--text); padding: 12px; min-width: 0; }
.builder input:focus, .builder select:focus { background: var(--surface-focus); }
.builder input::placeholder { color: var(--soft-text); }
.secondary, .primary { border-radius: 10px; font-weight: 700; }
.secondary { padding: 0 13px; color: var(--accent); background: var(--soft-accent); }
.secondary:hover, .secondary:focus-visible { background: var(--soft-accent-hover); }
.text-button { display: block; background: none; color: var(--accent); padding: 10px 0 0; font-size: 12px; }
.text-button:hover, .text-button:focus-visible { color: var(--accent-hover); }
.field-note { min-height: 36px; color: var(--soft-text); font-size: 12px; line-height: 1.5; margin: 8px 0 11px; }
.primary { width: 100%; background: var(--button); color: var(--button-text); padding: 14px; }
.primary:hover, .primary:focus-visible { background: var(--button-hover); }
.primary:disabled { opacity: .6; cursor: wait; }
.error { color: var(--error); font-size: 12px; min-height: 18px; }

.empty { color: var(--soft-text); background: var(--surface-raised); border-radius: 12px; text-align: center; padding: 43px 24px; line-height: 1.6; }
.quote-row, .total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quote-row { padding: 13px 0; color: var(--muted); }
.quote-row strong { color: var(--text); }
.subsidy strong { color: var(--accent); }
.total { font-family: 'Space Grotesk', sans-serif; padding: 26px 0; font-size: 22px; }
.total strong { color: var(--accent); font-size: 34px; }
.details { font-size: 12px; color: var(--soft-text); line-height: 1.4; }
.details p { margin: 5px 0; }
.notice { margin-top: 22px; padding: 16px; background: var(--notice); border-radius: 12px; color: var(--notice-text); font-size: 12px; }
.notice strong { text-transform: uppercase; letter-spacing: .1em; }
.notice p { line-height: 1.5; margin: 7px 0 0; }

.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.checkout-section { margin-top: 22px; min-height: 0; }
.checkout-guide { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 0; margin: 20px 0 24px; }
.checkout-guide li { display: flex; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 12px; background: var(--surface-raised); }
.checkout-guide b { display: grid; place-items: center; flex: 0 0 25px; height: 25px; background: var(--soft-accent); color: var(--accent); border-radius: 7px; font-size: 12px; }
.checkout-guide strong { font-size: 13px; }
.checkout-guide p { color: var(--muted); margin: 7px 0 0; font-size: 12px; line-height: 1.6; }
.checkout-pack-field { max-width: 560px; margin: 0 0 20px; }
.checkout-pack-field label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.checkout-pack-field select { width: 100%; padding: 13px; border-radius: 10px; background: var(--surface-raised); color: var(--text); }
.checkout-pack-field select:focus-visible { background: var(--surface-focus); }
@media (max-width: 800px) { .checkout-guide { grid-template-columns: 1fr; } }
.checkout-actions { display:flex; gap:12px; flex-wrap:wrap; }
.checkout-actions button { width:auto; padding:13px 20px; }
.checkout-actions button:disabled { cursor:default; opacity:.5; }
.payment-review { max-width:560px; margin-top:24px; padding:22px; background:var(--surface-raised); border-radius:16px; }
.order-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px; margin:10px 0; background:var(--surface-raised); border-radius:12px; font-size:13px; }
.order-row p { margin:6px 0; color:var(--muted); }
.order-row small { display:block; color:var(--soft-text); margin:6px 0; }
.pack-reveal { width:min(480px,calc(100vw - 28px)); max-height:90dvh; padding:0; border:0; border-radius:24px; background:var(--surface); color:var(--text); box-shadow:0 28px 100px #0005; }
.pack-reveal::backdrop { background:#100b20aa; backdrop-filter:blur(8px); }
.pack-reveal-inner { padding:26px; text-align:center; }
.pack-reveal h2 { margin:12px 0; font-family:'Space Grotesk',sans-serif; font-size:27px; line-height:1.2; }
.pack-reveal p { color:var(--muted); font-size:14px; line-height:1.6; }
.pack-reveal .error { color:var(--error); }
.pack-reveal .primary { width:100%; margin:10px 0; }
.pack-reveal .text-button { display:inline-block; padding:10px; }
.pack-artwork { display:grid; place-items:center; min-height:280px; background:radial-gradient(ellipse,var(--soft-accent),transparent 70%); }
.pack-foil { width:170px; height:242px; padding:22px 18px; display:flex; flex-direction:column; align-items:center; justify-content:space-between; border-radius:12px; background:linear-gradient(135deg,#ccb7f9,#8761c5 48%,#be9fed); box-shadow:0 18px 35px #34166330; color:#201336; transform:rotate(-7deg); }
.pack-foil>span { letter-spacing:3px; font-size:11px; font-weight:700; }
.pack-foil i { font-style:normal; font-size:62px; line-height:1; }
.pack-foil strong { font-family:'Space Grotesk',sans-serif; font-size:16px; line-height:1.3; }
.pack-foil small { font-size:8px; letter-spacing:1.5px; }
.pack-artwork.is-opening .pack-foil { animation:pack-breathe 1.8s ease-in-out infinite; }
@keyframes pack-breathe { 50% { transform:rotate(3deg) translateY(-7px); box-shadow:0 24px 45px #8657c955; } }
.revealed-card-image.is-revealed { animation:card-reveal .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes card-reveal { from { opacity:0; transform:translateY(22px) scale(.88) rotate(-5deg); } to { opacity:1; transform:translateY(0) scale(1) rotate(0); } }
.revealed-card { display:flex; flex-direction:column; align-items:center; gap:16px; margin:24px 0; }
.revealed-card img { width:100%; height:300px; object-fit:contain; filter:drop-shadow(0 14px 16px #0002); }
.rarity-badge { padding:6px 14px; border-radius:20px; background:var(--soft-accent); color:var(--accent); font-size:12px; font-weight:700; }
.card-image-fallback { display:grid; place-items:center; height:220px; width:160px; padding:16px; border-radius:12px; background:var(--surface-raised); color:var(--muted); }
@media (prefers-reduced-motion:reduce) { .pack-artwork.is-opening .pack-foil,.revealed-card-image.is-revealed { animation:none; } }
@media (max-width:540px) { .order-row { flex-wrap:wrap; } .pack-reveal-inner { padding:20px; } .pack-artwork { min-height:245px; } .pack-foil { width:145px; height:210px; } .revealed-card img { height:255px; } }
.order-action { display:inline-block; padding:12px; text-decoration:none; white-space:nowrap; }
.mini-card { padding: 18px; min-width: 0; }
.mini-card span { display: block; font-size: 12px; color: var(--muted); }
.mini-card strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 22px; letter-spacing: -.04em; margin: 9px 0; word-break: break-word; }
.mini-card small { color: var(--soft-text); line-height: 1.4; overflow-wrap: anywhere; }
.flow { margin-top: 28px; padding: 26px; }
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 18px 0; }
.flow-steps div { background: var(--surface-raised); border-radius: 9px; padding: 13px; display: flex; gap: 9px; align-items: center; font-size: 13px; }
.flow-steps b { color: var(--accent); }
.flow > p:last-child { font-size: 12px; color: var(--soft-text); line-height: 1.5; }

@media (max-width: 800px) {
  .detail-layout { grid-template-columns: 1fr; gap: 22px; }
  .detail-image-wrap { min-height: 450px; }
  .catalog-controls { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .search-button { grid-column: 1 / -1; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .shell { padding: 20px 16px 60px; }
  .topbar { align-items: start; flex-wrap: wrap; }
  .top-actions { width: 100%; justify-content: space-between; }
  .site-nav a { padding: 8px 13px; }
  .catalog-hero { padding: 52px 0 28px; }
  .catalog-controls { grid-template-columns: 1fr; }
  .select-menu { width: 100%; }
  .back-link { margin-top: 34px; }
  .detail-image-wrap { min-height: 350px; padding: 20px; }
  .detail-info h1 { font-size: 34px; }
  .search-field, .search-button { grid-column: auto; }
  .catalog-summary { display: block; }
  .catalog-summary span { display: block; margin-top: 5px; }
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .catalog-art { height: 190px; padding: 10px; }
  .catalog-card-body { padding: 11px; min-height: 190px; }
  .catalog-card h2 { font-size: 13px; }
  .catalog-price { font-size: 12px; }
  .catalog-card-footer { align-items: start; flex-direction: column; }
  .catalog-link { font-size: 11px; }
  .catalog-promo { align-items: start; flex-direction: column; }
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 48px; }
  .card { padding: 20px; }
  .flow-steps { grid-template-columns: 1fr; }
  .wallet-row { flex-direction: column; }
  .secondary { padding: 11px; }
}

/* Guided devnet setup */
#setup, #checkout { scroll-margin-top: 24px; }
.setup-panel { margin: 24px 0; padding: 28px; border-radius: 20px; background: var(--surface); }
.setup-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.setup-heading .eyebrow { margin: 0 0 10px; font-size: 10px; letter-spacing: .14em; }
.setup-heading h2 { margin: 0; font-family: 'Space Grotesk',sans-serif; font-size: 30px; letter-spacing: -.05em; }
.setup-heading p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 9px 0 0; }
.setup-heading button { padding: 12px 14px; white-space: nowrap; font-size: 12px; }
.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.setup-step { min-width: 0; background: var(--page); border-radius: 16px; padding: 22px; }
.setup-step-heading { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.setup-step h3 { margin: 0; font-family: 'Space Grotesk',sans-serif; font-size: 18px; letter-spacing: -.03em; }
.setup-badge { margin-left: auto; padding: 5px 8px; border-radius: 6px; font-size: 10px; background: var(--surface-raised); color: var(--muted); white-space: nowrap; }
.setup-badge.is-ready { color: #21784d; background: #e8f5ed; }
:root[data-theme='dark'] .setup-badge.is-ready { color: #94e2b5; background: #1b3c2c; }
.setup-step > p { font-size: 12px; color: var(--muted); line-height: 1.65; min-height: 40px; }
.setup-balances { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.setup-balances > div { background: var(--surface); border-radius: 10px; padding: 13px; min-width: 0; }
.setup-balances span { display: block; color: var(--muted); font-size: 11px; }
.setup-balances small { font-size: 10px; color: var(--soft-text); }
.setup-balances strong { display: block; margin-top: 8px; font-family: 'Space Grotesk',sans-serif; font-size: 25px; letter-spacing: -.04em; overflow-wrap: anywhere; }
.setup-step .primary { font-size: 13px; }
.setup-panel button:disabled { cursor: default; opacity: .5; }
.setup-help { margin-top: 18px; font-size: 12px; }
.setup-help summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 6px 0; }
.setup-help summary:focus-visible { background: var(--soft-accent); border-radius: 5px; }
.setup-help p { color: var(--muted); line-height: 1.65; }
.setup-links { display: flex; gap: 10px; flex-wrap: wrap; }
.setup-links a { padding: 10px 12px; border-radius: 8px; background: var(--soft-accent); color: var(--accent); text-decoration: none; font-weight: 600; }
.setup-links a:hover, .setup-links a:focus-visible { background: var(--soft-accent-hover); }
.setup-address { display: flex; flex-direction: column; gap: 10px; padding: 13px; background: var(--surface); border-radius: 10px; }
.setup-address code, .funding-review code { overflow-wrap: anywhere; user-select: all; line-height: 1.6; font-size: 11px; }
.setup-address button { padding: 10px; }
.setup-step .setup-hint { min-height: 0; font-size: 11px; }
.funding-review { margin-top: 16px; padding: 18px; background: var(--soft-accent); border-radius: 12px; }
.funding-review h4 { margin: 0 0 10px; font-size: 15px; }
.funding-review .quote-row { font-size: 13px; }
.funding-review p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.setup-review-actions { display: flex; gap: 8px; }
.setup-review-actions .secondary { background: var(--page); }
.setup-transfer-link { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 12px; }
.setup-next { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px; margin-top: 16px; background: var(--soft-accent); border-radius: 12px; }
.setup-next strong { font-size: 15px; }
.setup-next p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 7px 0 0; }
.setup-next a { width: auto; white-space: nowrap; text-decoration: none; font-size: 12px; text-align: center; }
.setup-updated { color: var(--soft-text); font-size: 10px; margin: 8px 0 0; }
.setup-flow { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:0 0 16px; }
.setup-flow span { padding:11px 8px; border-radius:10px; background:var(--surface-raised); color:var(--muted); font-size:12px; font-weight:700; text-align:center; }
.setup-flow .is-current { background:var(--soft-accent); color:var(--accent); }
#setup .setup-step { margin-top:12px; }
#setup .setup-step>p { min-height:0; }
.setup-pack-step .funding-pack-label { margin-top:16px; }
.setup-pack-step .funding-pack-select { margin-bottom:8px; font-size:14px; }
.setup-funding-explain { margin:12px 0 16px; }
.setup-cost-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.setup-cost-grid>div { min-width:0; padding:15px 17px; border-radius:12px; background:var(--surface-raised); }
.setup-cost-grid .setup-total { background:var(--soft-accent); }
.setup-cost-grid span { display:block; color:var(--muted); font-size:11px; }
.setup-cost-grid strong { display:block; margin-top:7px; font-family:'Space Grotesk',sans-serif; font-size:19px; line-height:1.25; letter-spacing:-.03em; overflow-wrap:anywhere; }
.setup-cost-grid strong span { display:inline; color:var(--text); font-size:inherit; }
.setup-cost-grid strong small { color:var(--muted); font-family:inherit; font-size:11px; font-weight:500; letter-spacing:0; }
.setup-affordability { margin:14px 0; padding:12px 14px; border-radius:10px; background:var(--soft-accent); color:var(--text) !important; font-size:12px !important; }
.setup-affordability.is-short { color:var(--error) !important; }
.setup-action { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:18px; border-radius:12px; background:var(--surface-raised); }
.setup-action strong { font-size:15px; }
.setup-action p { color:var(--muted); font-size:12px; line-height:1.5; margin:5px 0 0; }
.setup-action .primary { width:auto; flex:0 0 auto; max-width:280px; text-align:center; text-decoration:none; line-height:1.35; }
.setup-switch { width:auto; padding:5px 0; background:transparent; color:var(--accent); font-size:12px; font-weight:700; }
.setup-switch:hover { text-decoration:underline; }
.setup-more { margin-top:16px; padding:12px 16px; border-radius:12px; background:var(--page); }
.setup-more summary { color:var(--muted); }
.setup-more .setup-address { margin:12px 0; background:var(--surface-raised); }
.setup-more .setup-address button,.setup-more #refreshSetup { width:auto; align-self:start; }
.setup-manual-sol { font-size:11px; }
@media (max-width:650px) {
  .setup-flow { gap:4px; }.setup-flow span { padding:10px 3px; font-size:10px; }
  .setup-cost-grid { grid-template-columns:1fr 1fr; gap:7px; }.setup-cost-grid>div { padding:12px; }
  .setup-cost-grid strong { font-size:15px; }.setup-cost-grid strong small { display:block; margin-top:2px; }
  .setup-action { align-items:stretch; flex-direction:column; }.setup-action .primary { width:100%; max-width:none; }
}
.setup-panel .error:empty { display: none; }
.wallet-progress { color: var(--accent); font-size: 12px; line-height: 1.6; }
.wallet-progress:empty { display: none; }
.setup-step > .wallet-progress { min-height: 0; color: var(--accent); }
.funding-amount-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:20px 0 8px; }
.funding-amount-grid label { display:block; color:var(--text); font-size:12px; font-weight:700; }
.funding-amount-grid input { display:block; width:100%; box-sizing:border-box; margin-top:8px; padding:15px 16px; border:0; border-radius:10px; background:var(--surface-raised); color:var(--text); font:inherit; font-size:17px; font-weight:600; }
.funding-amount-grid input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.funding-action { margin-top:12px; }
@media (max-width:600px) { .funding-amount-grid { grid-template-columns:1fr; } }
.wallet-recovery { padding: 14px; margin-top: 12px; border-radius: 10px; background: var(--surface); }
.wallet-recovery p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 10px; }
.wallet-recovery .secondary { padding: 11px 14px; font-size: 12px; }
.wallet-picker { padding: 0; border: 0; outline: 0; border-radius: 24px; width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); background: var(--page); color: var(--text); box-shadow: 0 24px 90px #0003; }
.wallet-picker::backdrop { background: #0b091c80; backdrop-filter: blur(5px); }
body:has(.wallet-picker[open]) { overflow: hidden; }
.wallet-picker-content { padding: 28px; }
.wallet-picker-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.wallet-picker-brand { font-size: 10px; font-weight: 700; letter-spacing: .15em; color: var(--accent); }
.wallet-picker-close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-raised); color: var(--muted); font-size: 24px; line-height: 1; }
.wallet-picker-close:hover, .wallet-picker-close:focus-visible { background: var(--soft-accent); color: var(--accent); }
.wallet-picker h2 { font-family: 'Space Grotesk',sans-serif; margin: 0; font-size: 27px; letter-spacing: -.04em; }
.wallet-picker-description, #walletPickerDescription { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 8px 0 22px; }
.wallet-options { display: grid; gap: 10px; }
.wallet-option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 14px; background: var(--surface); color: var(--text); text-align: left; transition: background .15s, transform .15s; }
.wallet-option:hover, .wallet-option:focus-visible { background: var(--soft-accent); transform: translateY(-1px); }
.wallet-option-copy { display: grid; gap: 4px; }
.wallet-option-copy strong { font-size: 14px; font-weight: 700; }
.wallet-option-copy small { font-size: 11px; color: var(--muted); }
.wallet-option-arrow { margin-left: auto; color: var(--accent); font-size: 19px; }
.wallet-picker-help { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--soft-accent); }
.wallet-picker-help p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.wallet-picker-help a { display: inline-block; color: var(--accent); font-weight: 700; font-size: 12px; margin-top: 10px; text-decoration: none; }
.wallet-picker-footnote { margin: 22px 0 0; text-align: center; color: var(--soft-text); font-size: 11px; }
.wallet-picker-footnote span { color: var(--accent); margin-right: 4px; }
@media (max-width: 400px) { .wallet-picker-content { padding: 22px; } .wallet-picker h2 { font-size: 25px; } }
@media (max-width: 800px) {
  .setup-grid { grid-template-columns: 1fr; }
  .setup-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .setup-next { flex-direction: column; align-items: stretch; }
}
@media (max-width: 500px) {
  .setup-panel { padding: 18px; }
  .setup-step { padding: 16px; }
  .setup-heading h2 { font-size: 27px; }
  .setup-badge { margin-left: 0; }
  .setup-step h3 { font-size: 16px; }
}

/* Focused pages: home, packs, collection, and test setup. */
.topbar { flex-wrap:wrap; }
.topbar>.site-nav { margin-left:auto; }
.top-actions { gap:10px; }
.wallet-chip { padding:10px 12px; background:var(--surface); border-radius:100px; color:var(--muted); font-size:11px; text-decoration:none; }
.home-hero { display:grid; grid-template-columns:1.18fr 1fr; align-items:center; gap:48px; min-height:580px; padding:64px 0 72px; }
.home-copy .eyebrow { font-size:10px; letter-spacing:.17em; }
.home-copy h1 { font-family:'Space Grotesk',sans-serif; font-size:clamp(52px,6.6vw,80px); letter-spacing:-.065em; line-height:1.04; margin:20px 0; }
.home-copy h1 em { color:var(--hero-accent); font-style:normal; }
.home-copy .lede { font-size:17px; max-width:400px; }
.home-hero-actions { display:flex; align-items:center; flex-wrap:wrap; gap:16px 22px; margin-top:26px; }
.home-hero-actions .hero-action { margin:0; }
.home-text-link { display:inline-block; color:var(--accent); font-size:12px; font-weight:700; line-height:1.7; text-decoration:none; }
.home-text-link:hover { text-decoration:underline; text-underline-offset:4px; }
.hero-action { display:inline-flex; align-items:center; justify-content:center; width:auto; min-width:160px; text-align:center; white-space:nowrap; line-height:1.2; text-decoration:none; margin:20px 0 6px; padding:16px 26px; font-size:14px; }
.hero-caption { color:var(--soft-text); font-size:11px; line-height:1.6; }
.home-art { position:relative; min-height:480px; display:grid; place-items:center; background:radial-gradient(ellipse,var(--soft-accent),transparent 70%); }
.home-card-stack { display:grid; place-items:center; position:absolute; top:0; left:25%; width:220px; height:320px; }
.home-collectible-card { grid-area:1/1; display:block; width:220px; height:320px; object-fit:contain; border-radius:12px; filter:drop-shadow(0 15px 20px #12092255); }
.home-card-back { transform:translate(-66px,15px) rotate(-18deg); }
.home-card-middle { transform:translate(-29px,-7px) rotate(-5deg); }
.home-card-front { transform:translate(14px,2px) rotate(10deg); }
.art-caption { position:absolute; bottom:0; font-size:10px; color:var(--soft-text); letter-spacing:.06em; }
.home-discount-preview { position:absolute; z-index:3; right:0; bottom:0; width:280px; padding:18px; border-radius:18px; background:var(--surface); border:1px solid color-mix(in srgb,var(--accent) 20%,transparent); box-shadow:0 18px 45px #20103712; }
.home-discount-preview>strong { display:block; margin:0 0 8px; font-family:'Space Grotesk',sans-serif; font-size:20px; line-height:1.2; letter-spacing:-.04em; }
.home-discount-preview p { color:var(--muted); font-size:11px; line-height:1.8; margin:0; }
.home-discounts { scroll-margin-top:28px; }
.home-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:25px; }
.home-section-heading .eyebrow,.home-treasury-copy .eyebrow { font-size:10px; letter-spacing:.14em; margin:0 0 12px; }
.home-section-heading h2,.home-treasury-copy h2 { font-family:'Space Grotesk',sans-serif; font-size:32px; letter-spacing:-.045em; line-height:1.2; margin:0; }
.home-section-heading>p { color:var(--muted); font-size:12px; margin:0 0 4px; }
.home-section-badge { flex-shrink:0; color:var(--accent); background:var(--soft-accent); font-size:10px; font-weight:600; border-radius:100px; padding:9px 13px; }
.home-explainer { display:grid; grid-template-columns:repeat(3,1fr); gap:44px; padding:32px; border-radius:20px; background:var(--surface); }
.home-explainer span { font-size:10px; font-weight:700; letter-spacing:.1em; color:var(--accent); }
.home-explainer h3 { font-family:'Space Grotesk',sans-serif; font-size:20px; margin:13px 0 8px; letter-spacing:-.03em; }
.home-explainer p,.home-note p { color:var(--muted); font-size:13px; line-height:1.8; margin:0; }
.home-tiers { margin-top:66px; }
.home-tier-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.home-tier { border-radius:16px; padding:25px; background:var(--surface); }
.home-tier>span { color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.05em; }
.home-tier>strong { display:block; margin:16px 0 0; font-family:'Space Grotesk',sans-serif; color:var(--accent); font-size:48px; font-weight:500; letter-spacing:-.05em; line-height:1.15; }
.home-tier small { font-size:28px; margin-left:2px; }
.home-tier>p { margin:7px 0 0; color:var(--muted); font-size:11px; }
.home-tier-note { color:var(--soft-text); font-size:11px; line-height:1.8; max-width:880px; margin:19px 0 0; }
.home-treasury-story { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:72px; margin-top:66px; padding:38px; border:1px solid var(--story-border); border-radius:20px; background:var(--story-bg); }
.home-treasury-copy>p:not(.eyebrow) { color:var(--muted); font-size:13px; line-height:1.8; margin:16px 0 0; }
.home-treasury-copy>a { margin-top:20px; }
.home-price-explainer { background:var(--story-panel); border:1px solid var(--story-border); border-radius:16px; padding:25px; }
.home-price-explainer>.product-kicker { display:block; margin-bottom:20px; }
.home-preview-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:22px; }
.home-preview-controls label { display:grid; gap:7px; color:var(--muted); font-size:11px; font-weight:600; }
.home-preview-controls select { width:100%; min-width:0; padding:10px 12px; border:1px solid var(--surface-focus); border-radius:9px; background:var(--surface-raised); color:var(--text); font-size:12px; cursor:pointer; }
.home-preview-controls select:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.home-price-explainer>.home-price-row { display:flex; align-items:center; justify-content:space-between; gap:20px; font-size:12px; line-height:1.5; margin:17px 0; }
.home-price-row strong { color:var(--text); white-space:nowrap; }
.home-price-explainer .home-price-saving { color:var(--accent); }
.home-price-explainer .home-price-total { border-top:1px solid var(--surface-raised); padding-top:20px; margin-top:22px; font-size:15px; }
.home-price-total>strong:last-child { color:var(--accent); }
.home-price-explainer>p { margin:20px 0 0; color:var(--soft-text); font-size:11px; line-height:1.8; }
.home-note { display:flex; align-items:center; justify-content:space-between; gap:50px; margin:38px 0 0; padding:0 8px; }
.home-note p { max-width:550px; font-size:12px; }
.home-note strong { display:block; color:var(--text); }
.home-note a { font-size:12px; line-height:1.7; color:var(--accent); text-decoration:none; max-width:220px; }
.home-note .home-live-link { width:auto; padding:13px 20px; flex-shrink:0; text-align:center; }
@media (max-width:900px) { .home-hero { gap:24px; }.home-copy h1 { font-size:clamp(44px,6.6vw,64px); }.home-hero-actions { gap:16px; }.home-card-stack { left:15%; }.home-section-heading { align-items:flex-start; flex-direction:column; gap:14px; }.home-treasury-story { gap:30px; padding:28px; }.home-tier { padding:20px; } }
@media (max-width:650px) { .home-launch-status { max-width:100%; }.home-art { margin:8px 0 30px; min-height:420px; }.home-card-stack { left:calc(50% - 80px); }.home-discount-preview { width:min(290px,90%); right:4%; bottom:-10px; }.home-tier-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.home-tiers,.home-treasury-story { margin-top:45px; }.home-section-heading h2,.home-treasury-copy h2 { font-size:28px; }.home-treasury-story { grid-template-columns:1fr; padding:25px; gap:28px; }.home-price-explainer { padding:20px; } }
@media (max-width:420px) { .home-preview-controls { grid-template-columns:1fr; } }
.site-footer { display:flex; align-items:center; gap:24px; margin-top:70px; padding-top:24px; color:var(--soft-text); font-size:11px; }
.site-footer a { color:var(--muted); text-decoration:none; }
.site-footer>a:last-child { margin-left:auto; }
.site-footer .footer-brand { color:var(--text); font-family:'Space Grotesk',sans-serif; font-size:14px; font-weight:700; }
.site-footer .footer-brand { display:inline-flex; align-items:center; gap:5px; }
.site-footer .footer-brand::before { content:''; display:inline-block; width:26px; height:22px; background:url('/cardback-creature-v3.png') center / 115% no-repeat; }
.page-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:56px 0 32px; }
.page-heading .eyebrow { font-size:10px; letter-spacing:.14em; margin:0 0 14px; }
.page-heading h1 { font-family:'Space Grotesk',sans-serif; font-size:52px; letter-spacing:-.055em; line-height:1; margin:0 0 14px; }
.page-heading p:not(.eyebrow) { color:var(--muted); font-size:14px; margin:0; line-height:1.7; }
.page-link { display:inline-block; width:auto; text-decoration:none; padding:13px 18px; font-size:12px; }
.treasury-panel { max-width:740px; padding:32px; border-radius:20px; background:var(--surface); }
.treasury-panel h2 { font-family:'Space Grotesk',sans-serif; font-size:28px; letter-spacing:-.04em; margin:12px 0; }
.treasury-panel p { color:var(--muted); font-size:13px; line-height:1.7; }
.treasury-address { display:block; overflow-wrap:anywhere; user-select:all; margin-top:22px; padding:18px; border-radius:12px; background:var(--surface-raised); color:var(--text); font-size:14px; line-height:1.6; }
.treasury-actions { display:flex; align-items:center; flex-wrap:wrap; gap:18px; margin-top:18px; }
.treasury-actions .secondary { width:auto; padding:12px 18px; }
.treasury-actions a { color:var(--accent); text-decoration:none; font-size:13px; }
.treasury-panel .field-note { min-height:0; margin:10px 0; }
.treasury-panel .treasury-note { margin-top:24px; font-size:12px; }
[data-page='stats'] .page-heading { max-width:900px; margin-inline:auto; }
.stats-heading { align-items:end; }
.stats-live { display:inline-flex; align-items:center; gap:8px; flex:none; padding:9px 13px; border:1px solid var(--story-border); border-radius:999px; color:var(--accent); background:var(--story-bg); font-size:11px; font-weight:700; }
.stats-live span { width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px var(--soft-accent); }
.site-stats { width:100%; max-width:900px; margin:0 auto 26px; }
.stats-section-head { display:flex; justify-content:space-between; align-items:end; gap:18px; margin:0 0 18px; }
.stats-section-head .product-kicker { margin:0 0 9px; }
.stats-section-head h2 { margin:0; font-family:'Space Grotesk',sans-serif; font-size:27px; letter-spacing:-.04em; }
.stats-section-head>span { color:var(--muted); font-size:11px; white-space:nowrap; }
.site-stats-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.site-stat { display:flex; flex-direction:column; min-width:0; min-height:162px; padding:23px; border:1px solid var(--surface-raised); border-radius:18px; background:var(--surface); }
.site-stat-featured { border-color:var(--story-border); background:var(--story-bg); }
.site-stat-saved { border-color:var(--story-border); }
.site-stat span { color:var(--muted); font-size:12px; font-weight:700; }
.site-stat strong { display:block; margin:19px 0 8px; color:var(--text); font-family:'Space Grotesk',sans-serif; font-size:clamp(27px,3vw,35px); line-height:1.06; letter-spacing:-.055em; overflow-wrap:anywhere; }
.site-stat-saved strong { color:var(--accent); }
.site-stat small { margin-top:auto; color:var(--soft-text); font-size:11px; }
.stats-footnote { margin:15px 1px 0; color:var(--soft-text); font-size:11px; line-height:1.6; }
.treasury-dashboard { width:100%; max-width:900px; margin-inline:auto; padding:32px; border-radius:20px; background:var(--surface); }
.treasury-dashboard-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.treasury-dashboard-head h2 { font-family:'Space Grotesk',sans-serif; font-size:28px; letter-spacing:-.04em; margin:10px 0; }
.treasury-dashboard p { color:var(--muted); font-size:13px; line-height:1.7; }
.treasury-network { flex:0 0 auto; padding:10px 14px; border-radius:999px; background:var(--soft-accent); color:var(--accent); font-size:12px; font-weight:700; }
.treasury-balance-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; margin-top:28px; }
.treasury-balance { min-width:0; padding:24px; border-radius:16px; background:var(--surface-raised); }
.treasury-balance span,.treasury-balance small { display:block; color:var(--muted); font-size:12px; }
.treasury-balance strong { display:block; margin:12px 0 7px; font-family:'Space Grotesk',sans-serif; font-size:clamp(30px,4vw,46px); line-height:1.1; letter-spacing:-.05em; overflow-wrap:anywhere; }
.treasury-updated { margin:15px 0 30px; color:var(--muted); font-size:12px; }
.treasury-address-block { padding-top:24px; border-top:1px solid var(--surface-raised); }
.treasury-dashboard .treasury-address { margin-top:12px; }
.treasury-dashboard .treasury-actions { display:flex; align-items:center; flex-wrap:wrap; gap:18px; margin-top:18px; }
.treasury-dashboard .treasury-actions .secondary { width:auto; padding:12px 18px; }
.treasury-dashboard .treasury-actions a { color:var(--accent); text-decoration:none; font-size:13px; }
.treasury-dashboard .field-note { min-height:0; margin:10px 0; }
.treasury-dashboard .treasury-note { margin:24px 0 0; font-size:12px; }
@media (max-width:600px) { .treasury-dashboard { padding:22px; }.treasury-dashboard-head { flex-direction:column; }.treasury-balance-grid { gap:9px; }.treasury-balance { padding:16px; }.treasury-balance strong { font-size:30px; } }
@media (max-width:700px) { .site-stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.stats-section-head { align-items:start; flex-direction:column; gap:7px; } }
@media (max-width:480px) { .site-stats-grid { gap:9px; }.site-stat { min-height:138px; padding:16px; }.site-stat strong { font-size:25px; }.stats-live { display:none; } }
.network-label { font-size:11px; color:var(--muted); white-space:nowrap; }
.pack-range { margin:4px 0 26px; }
.pack-load-failure { margin:30px 0; padding:24px; border-radius:16px; background:var(--surface); }
.pack-load-failure p { margin:0 0 16px; color:var(--muted); }
.pack-load-failure button { width:auto; }
.pack-range-heading { display:flex; justify-content:space-between; align-items:baseline; gap:20px; margin-bottom:14px; }
.pack-range-heading h2 { font-family:'Space Grotesk',sans-serif; font-size:22px; letter-spacing:-.035em; margin:0; }
.pack-range-heading p { color:var(--soft-text); font-size:12px; margin:0; }
.pack-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.category-filters { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 18px; }
.category-filter { padding:10px 15px; border-radius:999px; background:var(--surface); color:var(--muted); font-size:12px; font-weight:700; cursor:pointer; }
.category-filter.is-selected { background:var(--soft-accent); color:var(--accent); }
.category-filter:focus-visible { box-shadow:inset 0 0 0 2px var(--accent); }
.revealed-card-image { display:block; width:min(100%,290px); max-height:370px; object-fit:contain; margin:20px auto; }
.revealed-card-image[hidden] { display:none; }
.pack-option { display:flex; flex-direction:column; align-items:start; min-width:0; min-height:324px; padding:12px 12px 16px; border-radius:16px; background:var(--surface); color:var(--text); text-align:left; transition:background .15s ease,transform .15s ease; }
.pack-option:hover:not(:disabled) { background:var(--soft-accent); transform:translateY(-2px); }
.pack-option.is-selected { background:var(--soft-accent); }
.pack-option.is-selected strong { color:var(--accent); }
.pack-option:focus-visible { box-shadow:inset 0 0 0 2px var(--accent); }
.pack-option:disabled:not(.is-selected) { opacity:.6; cursor:default; }
.pack-option-art { display:grid; place-items:center; width:100%; height:168px; overflow:hidden; margin-bottom:15px; border-radius:12px; background:var(--surface-raised); }
.pack-option-art img { grid-area:1/1; display:block; width:100%; height:100%; padding:10px; object-fit:contain; }
.pack-art-fallback { grid-area:1/1; color:var(--accent); font-size:11px; font-weight:800; letter-spacing:.2em; }
.pack-option-art.has-image .pack-art-fallback { display:none; }
.pack-option-group { color:var(--accent); font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin:0 6px; }
.pack-option strong { font-family:'Space Grotesk',sans-serif; font-size:15px; line-height:1.25; margin:7px 6px 10px; }
.pack-option-price { font-family:'Space Grotesk',sans-serif; font-size:25px; font-weight:700; margin:auto 6px 0; }
.pack-option-discount { color:var(--accent); font-size:10px; font-weight:700; margin:3px 6px 0; }
.pack-option small { color:var(--muted); font-size:10px; line-height:1.3; margin:5px 6px 0; }
.pack-shop { display:grid; grid-template-columns:1.05fr 1fr; gap:32px; align-items:start; }
.pack-column { display:grid; gap:18px; min-width:0; }
.pack-product { overflow:hidden; background:var(--surface); border-radius:22px; }
.pack-orders { padding:25px 30px; background:var(--surface); border-radius:22px; }
.pack-orders h2 { font-family:'Space Grotesk',sans-serif; font-size:22px; letter-spacing:-.035em; margin:0 0 14px; }
.pack-orders .order-row { align-items:flex-start; margin:0; padding:16px 0; background:none; border-radius:0; }
.pack-orders .order-row + .order-row { margin-top:14px; padding-top:20px; }
.pack-orders .order-row:first-child { padding-top:0; }
.pack-orders .order-row:last-child { padding-bottom:0; }
.pack-orders .order-row>div { min-width:0; }
.pack-orders .order-row strong { font-size:15px; line-height:1.4; }
.pack-orders .order-row p { font-size:13px; line-height:1.6; }
.product-art { display:grid; place-items:center; min-height:320px; background:radial-gradient(ellipse,var(--soft-accent),transparent 80%); padding:30px; }
.selected-pack-image { display:block; width:min(100%,310px); max-height:310px; object-fit:contain; filter:drop-shadow(0 18px 22px #34166322); }
.selected-pack-image[hidden],.product-art .pack-foil[hidden] { display:none; }
.product-copy { padding:25px 30px 30px; }
.product-kicker { font-size:10px; color:var(--accent); letter-spacing:.12em; font-weight:700; }
.product-copy h2 { font-family:'Space Grotesk',sans-serif; font-size:26px; letter-spacing:-.04em; line-height:1.2; margin:12px 0; }
.product-copy p { color:var(--muted); font-size:13px; line-height:1.7; }
.product-price { display:flex; flex-wrap:wrap; align-items:baseline; gap:10px; margin-top:22px; }
.product-price strong { font-family:'Space Grotesk',sans-serif; font-size:20px; }
.product-price span { color:var(--soft-text); font-size:11px; }
#packSelection { margin-top:22px; }
#packSelection label { display:block; color:var(--muted); font-size:12px; margin-bottom:8px; }
#checkoutPack { width:100%; padding:13px; border-radius:10px; background:var(--surface-raised); color:var(--text); }
.purchase-panel { padding:30px; border-radius:22px; background:var(--surface); }
.purchase-steps { display:flex; gap:8px; padding:0; list-style:none; margin:0 0 38px; }
.purchase-steps li { flex:1; font-size:11px; font-weight:600; color:var(--soft-text); padding:10px 0; text-align:center; background:var(--surface-raised); border-radius:8px; }
.purchase-steps li.is-current { color:var(--accent); background:var(--soft-accent); }
.purchase-panel h2 { font-family:'Space Grotesk',sans-serif; font-size:25px; letter-spacing:-.04em; margin:0 0 14px; }
#checkoutNote { color:var(--muted); font-size:14px; line-height:1.7; margin-bottom:24px; }
.purchase-fineprint { color:var(--soft-text); font-size:11px; line-height:1.7; margin:12px 0 0; }
.purchase-panel .payment-review { padding:0; margin:0; background:none; }
#walletFundsNote.is-short { color:var(--error); }
.order-flow[hidden] { display:none; }
.order-flow { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.order-flow h2 { margin-bottom:0; }
.order-flow-pack { font-size:15px; line-height:1.5; }
.order-flow-status { color:var(--muted); font-size:14px; line-height:1.65; margin:0; }
.order-flow-error { color:var(--error); font-size:12px; line-height:1.5; margin:0; }
.order-flow-update { color:var(--muted); font-size:12px; line-height:1.5; margin:0; }
.order-flow small { color:var(--soft-text); }
.order-flow .primary,.order-flow .secondary { width:100%; margin-top:12px; }
.order-flow .text-button { font-size:12px; }
.payment-total { margin-top:8px; font-size:19px; color:var(--text); }
.purchase-panel .error:empty, .collection-section .error:empty { display:none; }
[data-page] .error:empty { display:none; }
.purchase-panel .order-row { display:flex; flex-direction:column; align-items:stretch; padding:0; background:none; }
.purchase-panel .order-row>div>strong { font-size:17px; }
.purchase-panel .order-row p { font-size:14px; line-height:1.7; margin:12px 0; }
.order-action { width:auto; min-width:115px; }
.collection-empty { text-align:center; padding:75px 24px; background:var(--surface); border-radius:20px; }
.collection-empty>span { display:block; color:var(--accent); font-size:50px; }
.collection-empty h2 { font-family:'Space Grotesk',sans-serif; letter-spacing:-.04em; font-size:27px; }
.collection-empty p { color:var(--muted); font-size:14px; line-height:1.6; margin-bottom:24px; }
.collection-empty .primary { width:auto; padding:14px 24px; text-decoration:none; font-size:13px; }
.collection-stats { margin:24px 0 44px; }
.collection-stats-heading { margin-bottom:17px; }
.collection-stats-heading .eyebrow { font-size:10px; letter-spacing:.14em; margin:0 0 7px; }
.collection-stats-heading h2 { font-family:'Space Grotesk',sans-serif; font-size:23px; letter-spacing:-.04em; margin:0; }
.collection-stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.collection-stat { display:flex; flex-direction:column; min-width:0; min-height:146px; padding:22px; border:1px solid var(--surface-raised); border-radius:18px; background:var(--surface); }
.collection-stat-saved { background:var(--story-bg); border-color:var(--story-border); }
.collection-stat span { color:var(--muted); font-size:12px; font-weight:600; }
.collection-stat strong { display:block; margin:15px 0 7px; color:var(--text); font-family:'Space Grotesk',sans-serif; font-size:26px; line-height:1.1; letter-spacing:-.045em; overflow-wrap:anywhere; }
.collection-stat-saved strong { color:var(--accent); }
.collection-stat small { margin-top:auto; color:var(--soft-text); font-size:11px; }
@media(max-width:850px) { .collection-stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .collection-stats-grid { gap:9px; }.collection-stat { min-height:130px; padding:15px; }.collection-stat strong { font-size:20px; } }
.collection-section { margin:28px 0 40px; }
.collection-section h2 { font-family:'Space Grotesk',sans-serif; font-size:22px; letter-spacing:-.035em; }
.section-title { display:flex; align-items:center; justify-content:space-between; }
.section-title>span { font-size:12px; color:var(--soft-text); }
.collection-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.collection-grid .order-row { display:flex; flex-direction:column; align-items:stretch; gap:12px; background:var(--surface); margin:0; padding:20px; }
.collection-grid .order-row>div { flex:1; min-width:0; }
.collection-grid .order-row strong { font-size:15px; line-height:1.4; display:block; }
.collection-card-image { width:100%; height:245px; object-fit:contain; display:block; margin:0 0 20px; }
.collection-grid .order-row .order-action { width:100%; }
.past-orders { padding:20px 24px; border-radius:16px; background:var(--surface); margin-top:28px; }
.past-orders summary { font-size:13px; color:var(--muted); cursor:pointer; }
.collection-history { padding:24px; border-radius:20px; }
.collection-history summary { display:flex; align-items:center; gap:10px; list-style:none; color:var(--text); font-family:'Space Grotesk',sans-serif; font-size:21px; font-weight:700; letter-spacing:-.03em; }
.collection-history summary::-webkit-details-marker { display:none; }
.collection-history summary::after { content:'−'; margin-left:auto; color:var(--accent); font-family:'DM Sans',sans-serif; font-size:20px; font-weight:400; }
.collection-history:not([open]) summary::after { content:'+'; }
.history-count { display:inline-grid; place-items:center; min-width:25px; height:25px; padding:0 6px; border-radius:100px; background:var(--soft-accent); color:var(--accent); font-family:'DM Sans',sans-serif; font-size:11px; font-weight:700; letter-spacing:0; }
.history-list { display:grid; gap:12px; margin-top:20px; }
.history-row { display:grid; grid-template-columns:104px minmax(0,1fr); gap:22px; align-items:center; min-width:0; padding:18px; border-radius:16px; background:var(--surface-raised); }
.history-art { display:grid; place-items:center; width:104px; height:128px; overflow:hidden; border-radius:12px; background:radial-gradient(ellipse,var(--soft-accent),var(--surface)); }
.history-art-image { grid-area:1/1; display:block; width:100%; height:100%; padding:5px; object-fit:contain; opacity:0; }
.history-art-image.is-loaded { opacity:1; }
.history-art-fallback { grid-area:1/1; color:var(--accent); font-size:11px; font-weight:800; letter-spacing:.15em; }
.history-row-body { min-width:0; }
.history-row-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:7px 16px; }
.history-status { display:inline-block; padding:6px 9px; border-radius:100px; background:var(--soft-accent); color:var(--accent); font-size:10px; font-weight:700; }
.history-status-payment_failed { background:color-mix(in srgb,var(--error) 10%,var(--surface)); color:var(--error); }
.history-date { color:var(--soft-text); font-size:11px; }
.history-row-title { color:var(--text); font-family:'Space Grotesk',sans-serif; font-size:17px; line-height:1.35; letter-spacing:-.025em; margin:10px 0 5px; }
.history-row-amount { color:var(--accent); font-size:13px; font-weight:700; margin:0; }
.history-row-note { color:var(--muted); font-size:12px; line-height:1.5; margin:8px 0 0; }
.history-row-id { display:block; color:var(--soft-text); font-size:10px; margin-top:7px; }
.history-row-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; margin-top:14px; }
.history-view-card { width:auto; min-height:35px; padding:9px 14px; font-size:11px; }
.history-link { color:var(--accent); font-size:11px; font-weight:700; text-decoration:none; }
.history-link:hover { text-decoration:underline; text-underline-offset:3px; }
@media(max-width:650px) { .collection-history { padding:17px; }.collection-history summary { font-size:19px; }.history-row { grid-template-columns:78px minmax(0,1fr); align-items:start; gap:13px; padding:13px; }.history-art { width:78px; height:104px; }.history-row-title { font-size:14px; }.history-row-amount { font-size:12px; }.history-row-actions { gap:9px 13px; } }
.compact-heading { padding-bottom:0; }
[data-page='setup'] .setup-panel { margin-top:28px; }
[data-page='setup'] .setup-heading .eyebrow { display:none; }
.funding-pack-label { display:block; font-size:11px; font-weight:700; color:var(--muted); margin:18px 0 7px; }
.funding-pack-select { display:block; width:100%; padding:13px; border-radius:10px; background:var(--surface-raised); color:var(--text); margin-bottom:16px; }
a:focus-visible { background-color:var(--soft-accent); border-radius:6px; }
body:has(.pack-reveal[open]) { overflow:hidden; }
/* The reveal is a short sequence around the real, confirmed award. */
.card-reveal { width:min(530px,calc(100vw - 28px)); outline:none; border:1px solid color-mix(in srgb,var(--accent) 18%,transparent); scrollbar-width:thin; scrollbar-color:var(--soft-accent) transparent; }
.card-reveal .pack-reveal-inner { padding:24px 30px 22px; }
.reveal-brand-divider { opacity:.35; padding:0 9px; }
.reveal-stage { --reveal-glow:#ad8aec; height:300px; position:relative; display:grid; place-items:center; perspective:1000px; isolation:isolate; margin:0 -10px 6px; }
.reveal-stage[data-rarity='rare'] { --reveal-glow:#7baeff; }.reveal-stage[data-rarity='epic'] { --reveal-glow:#edc070; }
.reveal-halo { position:absolute; inset:12px 18px; border-radius:50%; background:radial-gradient(ellipse,color-mix(in srgb,var(--reveal-glow) 22%,transparent),transparent 68%); filter:blur(10px); transition:opacity .4s,transform .8s; }
.reveal-orbit { position:absolute; bottom:4px; width:220px; height:38px; border:1px solid color-mix(in srgb,var(--reveal-glow) 35%,transparent); border-radius:50%; box-shadow:0 0 25px color-mix(in srgb,var(--reveal-glow) 12%,transparent); }
.reveal-pack { position:absolute; width:170px; height:242px; transform:rotate(-7deg); z-index:2; }
.reveal-pack .pack-foil { position:absolute; inset:0; transform:none; overflow:hidden; border:1px solid #e6d8ff60; }
.reveal-pack .pack-foil:after { content:''; position:absolute; inset:-40%; background:linear-gradient(100deg,transparent 35%,#fff5 49%,transparent 60%); transform:translateX(-80%); animation:reveal-sheen 3s ease-in-out infinite; pointer-events:none; }
.reveal-pack-seal { position:absolute; top:0; left:0; right:0; height:16px; border-radius:10px 10px 0 0; background:repeating-linear-gradient(90deg,#d6befc,#a080d5 3px,#c4a6ef 5px); z-index:3; border-bottom:1px dashed #62469080; }
.reveal-card-face { position:absolute; inset:0; display:grid; place-items:center; opacity:0; transform:rotateY(90deg) scale(.85); backface-visibility:hidden; }
.card-reveal .revealed-card-image { height:290px; width:min(100%,250px); margin:0; max-height:100%; filter:drop-shadow(0 16px 24px #0004); }
.reveal-image-fallback { display:grid; place-items:center; height:240px; width:170px; border:1px solid var(--soft-accent); border-radius:12px; color:var(--muted); font-size:12px; }
.reveal-image-fallback[hidden] { display:none; }
.reveal-sparks { position:absolute; inset:0; pointer-events:none; }
.reveal-sparks i { position:absolute; left:50%; top:48%; width:4px; height:4px; background:var(--reveal-glow); border-radius:50%; opacity:0; box-shadow:0 0 12px var(--reveal-glow); --sx:-140px; --sy:-90px; }
.reveal-sparks i:nth-child(2){--sx:140px;--sy:-95px}.reveal-sparks i:nth-child(3){--sx:-160px;--sy:20px}.reveal-sparks i:nth-child(4){--sx:160px;--sy:40px}.reveal-sparks i:nth-child(5){--sx:-90px;--sy:125px}.reveal-sparks i:nth-child(6){--sx:100px;--sy:-140px}
[data-phase='waiting'] .reveal-pack { animation:reveal-float 2.6s ease-in-out infinite; }
[data-phase='unsealing'] .reveal-pack { animation:reveal-release .65s cubic-bezier(.5,0,.5,1) both; }
[data-phase='unsealing'] .reveal-pack-seal { animation:reveal-seal .6s ease-out both; }
[data-phase='unsealing'] .reveal-halo { transform:scale(1.35); }
[data-phase='turning'] .reveal-pack,[data-phase='revealed'] .reveal-pack { visibility:hidden; }
[data-phase='turning'] .reveal-card-face { animation:reveal-turn .7s cubic-bezier(.16,1,.3,1) both; }
[data-phase='turning'] .reveal-sparks i { animation:reveal-spark .9s ease-out both; }
[data-phase='revealed'] .reveal-card-face { opacity:1; transform:none; }
[data-phase='paused'] .reveal-pack { opacity:.45; }
.card-reveal h2 { font-size:23px; line-height:1.3; margin:8px 0; text-wrap:balance; }
.card-reveal .reveal-copy p { font-size:12px; margin:8px 0 16px; min-height:19px; }
.reveal-rarity { display:inline-flex; padding:4px 10px; border-radius:20px; background:var(--soft-accent); color:var(--accent); font-size:10px; letter-spacing:1.2px; text-transform:uppercase; font-weight:700; }
.reveal-rarity[hidden],.reveal-details[hidden] { display:none; }
.reveal-details { text-align:left; animation:reveal-details .35s ease-out both; }
.reveal-value { border:1px solid color-mix(in srgb,var(--accent) 16%,transparent); border-radius:14px; padding:16px 18px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:7px 16px; background:color-mix(in srgb,var(--soft-accent) 35%,transparent); }
.reveal-value>span { font-size:12px; color:var(--muted); }.reveal-value strong { font-size:28px; letter-spacing:-1px; font-family:'Space Grotesk',sans-serif; }.reveal-value small { grid-column:1/-1; color:var(--soft-text); font-size:10px; line-height:1.5; }
.reveal-traits { display:grid; grid-template-columns:1fr 1fr; gap:14px 22px; margin:18px 4px 12px; }.reveal-traits div { min-width:0; }.reveal-traits dt { color:var(--soft-text); font-size:10px; margin-bottom:5px; }.reveal-traits dd { font-size:12px; margin:0; line-height:1.4; overflow-wrap:anywhere; }
.reveal-actions { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:0 6px; }.card-reveal .reveal-actions .text-button { font-size:11px; }.card-reveal .reveal-actions [hidden] { display:none; }
.order-recovery-actions { display:flex; flex-direction:column; gap:6px; flex-shrink:0; }.collection-card-value { color:var(--accent)!important; font-weight:600; }
.sale-dialog { width:min(500px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); padding:0; border:1px solid var(--soft-accent); border-radius:24px; background:var(--surface); color:var(--text); overflow:auto; }
.sale-dialog::backdrop { background:#100c20b8; backdrop-filter:blur(9px); }
body:has(.sale-dialog[open]) { overflow:hidden; }
.sale-inner { padding:28px; }.sale-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
.sale-card { display:flex; gap:18px; align-items:center; margin-bottom:24px; }.sale-card img { width:86px; height:126px; object-fit:contain; }.sale-card img[hidden] { display:none; }.sale-card h2 { margin:8px 0; font-size:26px; letter-spacing:-.7px; }.sale-card p { font-size:12px; line-height:1.5; color:var(--muted); }.sale-card .product-kicker { font-size:9px; color:var(--accent); }
.sale-quote { padding:20px; border-radius:16px; background:var(--soft-accent); display:grid; gap:8px; }.sale-quote span { font-size:12px; color:var(--muted); }.sale-quote strong { font-family:'Space Grotesk',sans-serif; font-size:34px; letter-spacing:-1px; }.sale-quote small { font-size:11px; color:var(--muted); }.sale-quote[hidden] { display:none; }
.sale-status,.sale-terms { font-size:12px; line-height:1.7; color:var(--muted); margin:18px 0; }.sale-terms { color:var(--soft-text); font-size:11px; }.sale-inner>.primary,.sale-inner>.secondary { width:100%; margin-top:8px; }.sale-inner>[hidden] { display:none; }.sale-inner>.text-button { display:block; text-align:center; margin:16px 0 0; }.sale-inner .error:empty { display:none; }
@media(max-width:540px) { .sale-inner { padding:22px; }.sale-card { gap:12px; }.sale-card h2 { font-size:23px; }.sale-quote strong { font-size:29px; } }
@keyframes reveal-float { 50% {transform:translateY(-10px) rotate(3deg);} }
@keyframes reveal-sheen { 55%,100% { transform:translateX(80%); } }
@keyframes reveal-release { 25% {transform:rotate(3deg) scale(1.04);} 55% {opacity:1;transform:rotate(-3deg) scale(1.05);} 100% {opacity:0;transform:translateY(35px) scale(.86);} }
@keyframes reveal-seal { to { transform:translate(45px,-70px) rotate(24deg);opacity:0;} }
@keyframes reveal-turn { from {opacity:0;transform:rotateY(90deg) translateY(15px) scale(.85);} to {opacity:1;transform:rotateY(0) translateY(0) scale(1);} }
@keyframes reveal-spark { 15% {opacity:1;} to {opacity:0;transform:translate(var(--sx),var(--sy)) scale(.3);} }
@keyframes reveal-details { from {opacity:0;transform:translateY(9px);} to {opacity:1;transform:none;} }
@media(max-width:540px) { .card-reveal .pack-reveal-inner {padding:18px;} .reveal-stage {height:260px;} .card-reveal .revealed-card-image {height:250px;} .reveal-pack {width:145px;height:210px;} .reveal-value {padding:13px;} .reveal-value strong {font-size:25px;} .card-reveal h2 {font-size:21px;} }
@media(prefers-reduced-motion:reduce) { .card-reveal * {animation:none!important;transition:none!important;} }
@media(max-width:900px) {
  .topbar { gap:12px; }.site-nav a { padding:8px 12px; }
  .theme-toggle #themeLabel { display:none; }.theme-toggle { width:38px; padding:10px; }
  .home-hero { gap:24px; }.home-card-stack,.home-collectible-card { width:185px; height:275px; }
  .home-explainer { gap:24px; }.pack-shop { gap:20px; }.purchase-panel { padding:24px; }
  .pack-options { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:650px) {
  .topbar>.site-nav { order:2; width:100%; justify-content:space-between; margin:10px 0 0; }
  .top-actions { width:auto; margin-left:auto; }.site-nav a { text-align:center; flex:1; padding:9px 8px; }
  .home-hero { grid-template-columns:1fr; gap:12px; padding:44px 0 32px; }.home-copy h1 { font-size:56px; }
  .home-copy .lede { max-width:340px; }.home-art { min-height:420px; }.art-caption { bottom:4px; }
  .home-explainer { grid-template-columns:1fr; padding:25px; gap:28px; }.home-explainer h2 { margin-top:8px; }
  .home-note { flex-direction:column; align-items:start; gap:16px; padding:0; }.home-note a { max-width:none; }
  .site-footer { flex-wrap:wrap; gap:15px; margin-top:42px; }.site-footer span { order:2; width:100%; }
  .page-heading { padding-top:38px; align-items:start; flex-wrap:wrap; gap:14px; }.page-heading h1 { font-size:44px; }
  .pack-range-heading { display:block; }.pack-range-heading p { margin-top:7px; line-height:1.5; }
  .pack-options { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.pack-option { min-height:300px; padding:10px 10px 14px; }.pack-option-art { height:140px; }
  .pack-option strong { font-size:15px; }.pack-option-discount,.pack-option small { font-size:11px; }
  .pack-shop { grid-template-columns:1fr; }.product-art { min-height:255px; }.product-art .pack-foil { width:145px; height:210px; }
  .product-copy,.pack-orders { padding:22px; }.purchase-panel { padding:24px; }.purchase-steps { margin-bottom:26px; }
  .collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.collection-grid .order-row { padding:12px; }
  .collection-card-image { height:190px; }.collection-grid .order-row strong { font-size:13px; }.collection-grid .order-row small { font-size:10px; }
  .collection-empty { padding:48px 20px; }
}
