:root {
  --bg: #0a0c11;
  --surface: #11141c;
  --surface-2: #171b25;
  --text: #f2f4f8;
  --muted: #8b93a5;
  --faint: #5c6373;
  --accent: #e8b54d;
  --accent-soft: rgba(232, 181, 77, 0.14);
  --chart-line: #b28527;
  --border: #1f242f;
  --border-light: #2a3040;
  --fury: #e0553f;
  --calm: #3fae6c;
  --mind: #4a8fd6;
  --body-c: #e08a3f;
  --chaos: #a05fd6;
  --order: #e8b54d;
  --radius: 14px;
  --font-display: "Space Grotesk Variable", "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter Variable", "Inter", "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #14100a; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; }

/* ---------- nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 17, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #6b4d16, var(--accent));
  display: grid;
  place-items: center;
  color: #14100a;
  font-size: 0.85rem;
  font-weight: 700;
}
.logo em { font-style: normal; color: var(--accent); }
nav ul { display: flex; gap: 1.45rem; list-style: none; align-items: center; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.18s;
}
nav a:hover { color: var(--text); }
nav a.on { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: #14100a !important;
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.18s, box-shadow 0.18s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(232, 181, 77, 0.35); }

main { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- shared ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-light);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.32rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 181, 77, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(232, 181, 77, 0); }
}
.btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.72rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s, background 0.18s, color 0.18s;
  display: inline-block;
}
.btn-primary { background: var(--accent); color: #14100a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232, 181, 77, 0.35); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-light); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.4rem 0.95rem; font-size: 0.86rem; border-radius: 8px; }
.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; margin-bottom: 0.5rem; }
.section-note { color: var(--muted); margin-bottom: 2rem; max-width: 640px; }
.demo-tag {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 181, 77, 0.3);
  border-radius: 6px;
  padding: 0.14rem 0.6rem;
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
  margin-left: 0.7rem;
  vertical-align: 3px;
  text-transform: none;
}
section { padding: 4.2rem 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* sample banner + pohyby cen + blurb */
.sample-banner {
  background: var(--accent-soft);
  border: 1px solid rgba(232, 181, 77, 0.3);
  border-radius: 10px;
  color: var(--accent);
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  margin-top: 1.2rem;
}
.move-up { color: #4cba7d; font-weight: 600; font-variant-numeric: tabular-nums; }
.move-down { color: var(--fury); font-weight: 600; font-variant-numeric: tabular-nums; }
.blurb {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.97rem;
}
.tcg { text-decoration: none; color: var(--text); }

/* page head + breadcrumbs */
.page-head { padding: 2.6rem 0 0.4rem; }
.crumbs {
  font-size: 0.82rem;
  color: var(--faint);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  list-style: none;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--border-light); }
.page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.12; margin-bottom: 0.5rem; }
.page-head .lead { font-size: 1.02rem; color: var(--muted); max-width: 640px; }

/* ---------- controls ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1rem; align-items: center; }
.search-wrap { position: relative; margin-right: 0.4rem; }
.search-wrap svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--faint); pointer-events: none;
}
.search {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text);
  padding: 0.6rem 1rem 0.6rem 2.3rem;
  font-size: 0.93rem;
  font-family: var(--font-body);
  min-width: 250px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--muted);
  padding: 0.38rem 1rem;
  font-size: 0.86rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s, transform 0.12s;
}
.chip:hover { color: var(--text); border-color: var(--faint); }
.chip:active { transform: scale(0.96); }
.chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.45rem; }
.result-count { font-size: 0.85rem; color: var(--faint); margin: 0.2rem 0 1rem; }

/* ---------- card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card[hidden] { display: none; }
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-light);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.07) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.card:hover::after { transform: translateX(130%); }
.art {
  height: 128px;
  position: relative;
  display: grid;
  place-items: center;
}
.art svg { width: 46px; height: 46px; opacity: 0.9; }
/* Doménové arty: vlastní SVG scény, overlay drží čitelnost badge a glyfu. */
.art-fury  { background: linear-gradient(rgba(10, 12, 17, 0.1), rgba(10, 12, 17, 0.32)), url('/art/fury.svg') center/cover; }
.art-calm  { background: linear-gradient(rgba(10, 12, 17, 0.1), rgba(10, 12, 17, 0.32)), url('/art/calm.svg') center/cover; }
.art-mind  { background: linear-gradient(rgba(10, 12, 17, 0.1), rgba(10, 12, 17, 0.32)), url('/art/mind.svg') center/cover; }
.art-body  { background: linear-gradient(rgba(10, 12, 17, 0.1), rgba(10, 12, 17, 0.32)), url('/art/body.svg') center/cover; }
.art-chaos { background: linear-gradient(rgba(10, 12, 17, 0.1), rgba(10, 12, 17, 0.32)), url('/art/chaos.svg') center/cover; }
.art-order { background: linear-gradient(rgba(10, 12, 17, 0.1), rgba(10, 12, 17, 0.32)), url('/art/order.svg') center/cover; }
.art svg, .art-big svg, .tcg-art svg { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7)); opacity: 0.85; }
.cost {
  position: absolute;
  top: 9px; left: 9px;
  width: 29px; height: 29px;
  border-radius: 8px;
  background: rgba(10, 12, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}
.set-tag {
  position: absolute;
  top: 9px; right: 9px;
  background: rgba(10, 12, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0.06rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.card-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.15rem; }
.meta { font-size: 0.8rem; color: var(--faint); }
.card-foot {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.rarity { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-weight: 500; }
.gem { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; }
.gem.Common { background: #9aa1b0; }
.gem.Rare { background: var(--mind); }
.gem.Epic { background: var(--chaos); }
.price-val { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 1.6rem 0; display: none; }

/* ---------- card detail ---------- */
.detail { display: grid; grid-template-columns: 380px 1fr; gap: 2.6rem; padding: 2.2rem 0 3rem; align-items: start; }
.art-big {
  border-radius: 18px;
  border: 1px solid var(--border-light);
  height: 470px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.art-big svg { width: 130px; height: 130px; opacity: 0.9; }
.art-big .cost { width: 40px; height: 40px; font-size: 1.1rem; top: 14px; left: 14px; border-radius: 11px; }
.art-big .set-tag { top: 16px; right: 14px; font-size: 0.78rem; }
.art-note { font-size: 0.78rem; color: var(--faint); text-align: center; margin-top: 0.7rem; }
.detail-info h1 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 0.3rem; }
.detail-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.4rem; }
.pillrow { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.pill {
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.22rem 0.85rem;
  border: 1px solid var(--border-light);
  color: var(--muted);
}
.pill.d-fury { color: var(--fury); border-color: rgba(224, 85, 63, 0.4); }
.pill.d-calm { color: var(--calm); border-color: rgba(63, 174, 108, 0.4); }
.pill.d-mind { color: var(--mind); border-color: rgba(74, 143, 214, 0.4); }
.pill.d-body { color: var(--body-c); border-color: rgba(224, 138, 63, 0.4); }
.pill.d-chaos { color: var(--chaos); border-color: rgba(160, 95, 214, 0.4); }
.pill.d-order { color: var(--order); border-color: rgba(232, 181, 77, 0.4); }
.price-box {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  align-items: baseline;
}
.price-box .pv b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
}
.price-box .pv span { font-size: 0.8rem; color: var(--faint); }
.price-updated { font-size: 0.78rem; color: var(--faint); width: 100%; }
.dtable { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin-bottom: 1.8rem; }
.dtable td { padding: 0.55rem 0.2rem; border-bottom: 1px solid var(--border); }
.dtable td:first-child { color: var(--muted); width: 38%; }
.cardtext {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.flavor { font-size: 0.86rem; color: var(--faint); font-style: italic; margin-bottom: 1.8rem; }

/* chart */
.chart-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 0.9rem;
  margin-bottom: 1.8rem;
  position: relative;
}
.chart-wrap h3 { font-size: 0.98rem; margin-bottom: 0.2rem; }
.chart-sub { font-size: 0.8rem; color: var(--faint); margin-bottom: 0.7rem; }
.chart-svg { width: 100%; height: auto; display: block; }
.tip {
  position: absolute;
  pointer-events: none;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  white-space: nowrap;
  transform: translate(-50%, -130%);
  display: none;
  z-index: 5;
}
.tip b { font-variant-numeric: tabular-nums; }
.chart-table { margin-top: 0.4rem; font-size: 0.8rem; color: var(--muted); }
.chart-table summary { cursor: pointer; color: var(--faint); }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.chart-table td { padding: 0.18rem 0.3rem; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }

/* faq */
.faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 0.6rem;
  padding: 0.85rem 1.1rem;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.faq p { color: var(--muted); font-size: 0.92rem; padding-top: 0.5rem; }

/* ---------- sets ---------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.set-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}
.set-card:hover { transform: translateY(-4px); border-color: var(--border-light); }
.set-card .t-code { align-self: flex-start; margin-bottom: 0.8rem; }
.set-card h3 { font-size: 1.25rem; margin-bottom: 0.2rem; }
.set-card .meta { margin-bottom: 1rem; }
.set-card .set-stats { display: flex; gap: 1.6rem; margin-top: auto; padding-top: 1rem; }
.set-card .set-stats b { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.set-card .set-stats span { font-size: 0.76rem; color: var(--faint); }
.set-card.next-set { border-color: rgba(232, 181, 77, 0.35); }
.set-card.next-set::before {
  content: "Next release";
  position: absolute;
  top: 14px; right: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.t-code {
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  padding: 0.05rem 0.45rem;
  color: var(--muted);
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.value-card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.1rem; }
.ev-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.ev-row span { color: var(--muted); }
.ev-row b { font-variant-numeric: tabular-nums; color: var(--faint); letter-spacing: 0.06em; }
.ev-row b.hot { color: var(--accent); }

/* ---------- decks ---------- */
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; margin-bottom: 3rem; }
.deck-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.deck-card:hover { transform: translateY(-4px); border-color: var(--border-light); }
.deck-card h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.deck-card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.deck-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--faint); padding-top: 0.6rem; }
.deck-foot b { color: var(--text); font-variant-numeric: tabular-nums; }
.tier-badge {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.tier-S { background: rgba(232, 181, 77, 0.16); color: var(--accent); border: 1px solid rgba(232, 181, 77, 0.4); }
.tier-A { background: rgba(63, 174, 108, 0.14); color: var(--calm); border: 1px solid rgba(63, 174, 108, 0.35); }
.tier-B { background: rgba(74, 143, 214, 0.14); color: var(--mind); border: 1px solid rgba(74, 143, 214, 0.35); }
.tier-rows { display: flex; flex-direction: column; gap: 0.6rem; }
.tier-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
}
.tier-row .tier-badge { margin: 0; flex-shrink: 0; }
.tier-row .names { font-size: 0.93rem; }
.tier-row .names a { color: var(--text); text-decoration: none; font-weight: 600; }
.tier-row .names a:hover { color: var(--accent); }
.tier-row .names span { color: var(--faint); }

/* deck detail */
.deck-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.6rem; }
.dl-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
}
.dl-row:last-child { border-bottom: none; }
.dl-row:hover { background: var(--surface-2); }
.dl-count { color: var(--faint); font-variant-numeric: tabular-nums; width: 2ch; }
.dl-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dl-name { font-weight: 500; }
.dl-meta { color: var(--faint); font-size: 0.8rem; }
.dl-price { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); }
.deck-total {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--surface-2);
  font-weight: 600;
}
.deck-total b { color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- deck builder ---------- */
.builder { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.6rem; align-items: start; padding-bottom: 3rem; }
.pool, .deckpanel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.deckpanel { position: sticky; top: 82px; }
.pool h3, .deckpanel h3 { font-size: 1rem; margin-bottom: 0.9rem; }
.pool-rows { max-height: 560px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.4rem; padding-right: 0.3rem; }
.pool-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.5rem 0.7rem;
  background: var(--surface-2);
  font-size: 0.9rem;
}
.pool-row[hidden] { display: none; }
.pool-row .add {
  margin-left: auto;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(232, 181, 77, 0.35);
  border-radius: 7px;
  width: 28px; height: 28px;
  font-size: 1.05rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.12s;
}
.pool-row .add:hover { background: rgba(232, 181, 77, 0.28); }
.pool-row .add:active { transform: scale(0.92); }
.deck-rows { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; min-height: 60px; }
.deck-row-b {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.42rem 0.7rem;
}
.deck-row-b .rm {
  margin-left: auto;
  background: transparent;
  color: var(--faint);
  border: 1px solid var(--border-light);
  border-radius: 7px;
  width: 26px; height: 26px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.deck-row-b .rm:hover { color: var(--fury); border-color: var(--fury); }
.builder-stats { border-top: 1px solid var(--border); padding-top: 0.9rem; font-size: 0.92rem; display: flex; flex-direction: column; gap: 0.4rem; }
.builder-stats .row { display: flex; justify-content: space-between; }
.builder-stats b { font-variant-numeric: tabular-nums; }
.builder-actions { display: flex; gap: 0.6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.share-note { font-size: 0.78rem; color: var(--faint); margin-top: 0.6rem; min-height: 1.2em; }

/* ---------- prose (about) ---------- */
.prose { max-width: 720px; padding: 0 0 3rem; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; }
.prose p, .prose li { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose strong { color: var(--text); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 2rem 1.5rem 2.4rem; margin-top: 4.2rem; }
.foot-inner { max-width: 1120px; margin: 0 auto; }
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.foot-top nav ul { gap: 1.2rem; }
footer .legal { font-size: 0.78rem; color: var(--faint); max-width: 900px; }

/* ---------- hero (homepage) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 4.5rem;
  min-height: 78vh;
}
h1 .gold { color: var(--accent); }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); line-height: 1.08; font-weight: 700; margin-bottom: 1.15rem; }
.hero .lead { font-size: 1.08rem; color: var(--muted); max-width: 480px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.stats { display: flex; flex-wrap: wrap; gap: 2.4rem; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 0.83rem; color: var(--faint); }
.hero-visual {
  position: relative;
  height: 460px;
  display: grid;
  place-items: center;
  perspective: 1100px;
  background: linear-gradient(rgba(10, 12, 17, 0.25), rgba(10, 12, 17, 0.45)), url('/art/keyart.svg') center/cover;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: visible;
}
.glow {
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 181, 77, 0.13), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.fan { position: relative; width: 230px; height: 330px; transform-style: preserve-3d; }
.tcg {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.25, 1);
  will-change: transform;
}
.tcg .tcg-art { flex: 1; position: relative; display: grid; place-items: center; }
.tcg .tcg-art svg { width: 84px; height: 84px; opacity: 0.9; }
.tcg-cost {
  position: absolute;
  top: 10px; left: 10px;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(10, 12, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
}
.tcg-name {
  padding: 0.65rem 0.9rem 0.75rem;
  background: rgba(10, 12, 17, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tcg-name b { font-family: var(--font-display); font-size: 0.98rem; display: block; }
.tcg-name span { font-size: 0.74rem; color: var(--muted); }
.tcg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.14) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: shimmer 5.5s infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}
.tcg.left  { transform: translateX(-118px) rotate(-10deg) translateY(16px); z-index: 1; }
.tcg.mid   { z-index: 2; }
.tcg.right { transform: translateX(118px) rotate(10deg) translateY(16px); z-index: 1; }

/* timeline */
.timeline { position: relative; padding-left: 1.4rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border-light);
}
.t-item { position: relative; padding: 0 0 1.9rem 1.2rem; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: "";
  position: absolute;
  left: -1.4rem; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--faint);
}
.t-item.done::before { border-color: var(--accent); background: var(--accent); }
.t-item.next::before { border-color: var(--accent); animation: pulse 2.2s infinite; }
.t-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.7rem; }
.t-head b { font-family: var(--font-display); font-size: 1.08rem; }
.t-date { font-size: 0.84rem; color: var(--faint); }
.t-sub { font-size: 0.88rem; color: var(--muted); margin-top: 0.15rem; }
.t-item.next .t-sub em { color: var(--accent); font-style: normal; font-weight: 600; }
.sets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* roadmap */
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-light); }
.f-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}
.f-icon svg { width: 19px; height: 19px; color: var(--accent); }
.feature h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.feature p { font-size: 0.9rem; color: var(--muted); }
.status { margin-top: auto; padding-top: 1rem; font-size: 0.76rem; font-weight: 600; display: flex; align-items: center; gap: 0.45rem; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; }
.st-wait { color: #d9a441; } .st-wait .dot { background: #d9a441; }
.st-ready { color: #4cba7d; } .st-ready .dot { background: #4cba7d; }
.st-plan { color: var(--faint); } .st-plan .dot { background: var(--faint); }

/* cta */
.cta {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40% 20%;
  background: radial-gradient(closest-side, rgba(232, 181, 77, 0.09), transparent 72%);
  pointer-events: none;
}
.cta h2 { margin-bottom: 0.6rem; }
.cta p { color: var(--muted); max-width: 480px; margin: 0 auto 1.6rem; position: relative; }
.cta .btn { position: relative; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 3.4rem; }
  .hero-visual { height: 400px; order: -1; }
  .fan { width: 200px; height: 290px; }
  .tcg.left { transform: translateX(-92px) rotate(-10deg) translateY(14px); }
  .tcg.right { transform: translateX(92px) rotate(10deg) translateY(14px); }
  .sets-grid { grid-template-columns: 1fr; gap: 2rem; }
  .detail { grid-template-columns: 1fr; }
  .art-big { height: 380px; max-width: 380px; }
  .builder { grid-template-columns: 1fr; }
  .deckpanel { position: static; }
  nav ul li.hide-m { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
