:root {
  --bg: #0b1020;
  --bg-2: #11182b;
  --panel: rgba(20, 29, 50, .88);
  --panel-solid: #151e34;
  --line: #273552;
  --text: #f5f8ff;
  --muted: #9eabc4;
  --accent: #7c5cff;
  --accent-2: #22d3a7;
  --hot: #ffbf69;
  --danger: #ff6b7a;
  --shadow: 0 22px 60px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 70% -10%, rgba(124,92,255,.22), transparent 30%),
    radial-gradient(circle at 10% 20%, rgba(34,211,167,.10), transparent 22%),
    var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(11,16,32,.78);
  backdrop-filter: blur(18px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font: 700 18px/1 Space Grotesk, sans-serif; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; background: linear-gradient(145deg, var(--accent), #4d8dff);
  font: 700 13px/1 Space Grotesk, sans-serif; box-shadow: 0 8px 24px rgba(124,92,255,.32);
}
.brand-accent { color: #9f8cff; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.ghost-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); }

.hero { min-height: 680px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 72px; align-items: center; padding: 92px 0 76px; }
.eyebrow { color: #a99aff; font-size: 12px; font-weight: 800; letter-spacing: .16em; margin-bottom: 14px; }
h1,h2,h3,p { margin-top: 0; }
h1 { font: 700 clamp(46px, 7vw, 76px)/.99 Space Grotesk, sans-serif; letter-spacing: -.045em; max-width: 790px; margin-bottom: 26px; }
h2 { font: 700 clamp(34px, 4vw, 52px)/1.05 Space Grotesk, sans-serif; letter-spacing: -.035em; margin-bottom: 8px; }
h3 { font: 700 18px/1.2 Space Grotesk, sans-serif; }
.hero-sub { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin: 32px 0 26px; }
.primary-btn,.secondary-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: 12px; font-weight: 700; border: 1px solid transparent;
}
.primary-btn { background: linear-gradient(135deg, var(--accent), #5b8cff); color: white; box-shadow: 0 12px 32px rgba(124,92,255,.28); }
.secondary-btn { background: var(--panel-solid); border-color: var(--line); color: var(--text); }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 13px; }
.hero-panel { background: linear-gradient(180deg, rgba(28,39,67,.96), rgba(17,24,43,.96)); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.mini-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.demo-badge { margin-left: auto; border: 1px solid #665a35; background: rgba(255,191,105,.08); color: var(--hot); padding: 4px 7px; border-radius: 6px; font-weight: 700; font-size: 10px; }
.sample-card { display: flex; align-items: center; gap: 14px; padding: 22px 0; }
.card-art { flex: 0 0 66px; width: 66px; height: 86px; border-radius: 9px; display: grid; place-items: center; font-size: 30px; border: 1px solid rgba(255,255,255,.15); }
.gradient-art { background: linear-gradient(150deg,#ffe36c,#e868ff 48%,#5c75ff); }
.sample-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.market-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 14px 15px; border-radius: 11px; margin-top: 9px; font-size: 13px; }
.market-row.best { border-color: rgba(34,211,167,.45); background: rgba(34,211,167,.055); }
.market-row em { grid-column: 1 / -1; color: var(--accent-2); font-size: 10px; font-style: normal; font-weight: 700; }
.savings { margin-top: 16px; padding: 13px 15px; border-radius: 11px; background: rgba(124,92,255,.11); color: var(--muted); font-size: 13px; }
.savings strong { color: white; float: right; }

.finder-wrap { padding: 92px 0; background: linear-gradient(180deg, rgba(255,255,255,.015), transparent); border-top: 1px solid rgba(255,255,255,.05); }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-heading.centered { justify-content: center; text-align: center; }
.data-note { color: var(--hot); font-size: 12px; border: 1px solid #5d5130; padding: 7px 10px; border-radius: 999px; }
.search-panel { background: var(--panel); border: 1px solid var(--line); padding: 16px; border-radius: 18px; box-shadow: 0 12px 34px rgba(0,0,0,.16); }
.search-row { display: grid; grid-template-columns: 1fr 170px 170px; gap: 10px; }
.search-box { height: 52px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #0e1528; border-radius: 12px; padding: 0 14px; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.12); }
.search-icon { color: var(--muted); font-size: 22px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
select { height: 52px; border: 1px solid var(--line); background: #0e1528; color: var(--text); border-radius: 12px; padding: 0 12px; outline: 0; }
.quick-searches { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; margin-top: 13px; }
.quick-searches button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 9px; }
.quick-searches button:hover { color: white; border-color: #4d5c7f; }
.results-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; padding: 24px 2px 13px; }
.results-meta strong { color: var(--text); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.result-card { position: relative; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(22,31,54,.96), rgba(15,22,39,.96)); padding: 18px; transition: transform .2s ease, border-color .2s ease; overflow: hidden; }
.result-card:hover { transform: translateY(-3px); border-color: #3b4b70; }
.card-top { display: flex; gap: 14px; }
.result-art { width: 74px; height: 102px; flex: 0 0 74px; display: grid; place-items: center; border-radius: 10px; font-size: 30px; border: 1px solid rgba(255,255,255,.13); background: linear-gradient(145deg, var(--art1), var(--art2)); }
.game-tag { display: inline-flex; color: #b6c2d7; font-size: 9px; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; margin-bottom: 7px; }
.result-card h3 { margin-bottom: 6px; }
.card-sub { color: var(--muted); font-size: 11px; line-height: 1.45; }
.star-btn { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(11,16,32,.68); color: #b7c1d4; font-size: 17px; }
.star-btn.active { color: #ffd66b; border-color: #695a31; background: rgba(255,214,107,.08); }
.price-summary { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; }
.price-label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.price-value { font: 700 26px/1 Space Grotesk, sans-serif; margin-top: 6px; }
.trend { font-size: 11px; font-weight: 700; padding: 5px 7px; border-radius: 7px; }
.trend.up { color: var(--accent-2); background: rgba(34,211,167,.08); }
.trend.down { color: #ff8896; background: rgba(255,107,122,.08); }
.market-list { margin-top: 14px; display: grid; gap: 8px; }
.market-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; font-size: 11px; color: #c5cde0; }
.market-link:hover { border-color: var(--accent); background: rgba(124,92,255,.05); }
.market-link strong { color: white; font-size: 12px; }
.best-chip { color: var(--accent-2); font-size: 9px; margin-left: 4px; }
.empty-state { text-align: center; border: 1px dashed var(--line); border-radius: 18px; padding: 56px 20px; color: var(--muted); }
.empty-state h3 { color: white; margin-top: 12px; }
.empty-icon { font-size: 36px; }
.hidden { display: none !important; }

.watch-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; padding: 100px 0; }
.watch-copy p { color: var(--muted); line-height: 1.7; max-width: 440px; }
.watch-box { border: 1px solid var(--line); background: var(--panel); border-radius: 18px; padding: 18px; min-height: 220px; }
.watch-title { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.watch-title span { color: var(--muted); font-size: 12px; }
.watch-items { display: grid; gap: 8px; margin-top: 12px; }
.watch-item { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 12px; }
.watch-item span { color: var(--muted); }
.muted { color: var(--muted); font-size: 12px; }

.how-section { padding: 100px 0 120px; border-top: 1px solid rgba(255,255,255,.05); background: #0d1324; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
.steps article { border: 1px solid var(--line); border-radius: 17px; padding: 26px; background: #11192d; }
.steps article > span { color: var(--accent); font: 700 13px/1 Space Grotesk, sans-serif; }
.steps h3 { margin: 26px 0 10px; }
.steps p { color: var(--muted); font-size: 13px; line-height: 1.6; }
footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-row p { margin: 0; color: var(--muted); font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 14px); background: #f2f5ff; color: #111827; border-radius: 10px; padding: 10px 14px; font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 100; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.light {
  --bg:#f4f6fb; --bg-2:#edf1f8; --panel:rgba(255,255,255,.92); --panel-solid:#fff; --line:#dfe5ef;
  --text:#111827; --muted:#68748a; --shadow:0 20px 50px rgba(51,65,85,.12);
  background: radial-gradient(circle at 70% -10%, rgba(124,92,255,.13), transparent 30%), #f4f6fb;
}
body.light .site-header { background:rgba(244,246,251,.82); border-color:#dfe5ef; }
body.light .hero-panel, body.light .result-card { background:rgba(255,255,255,.94); }
body.light .search-box, body.light select { background:white; }
body.light .how-section { background:#eef2f8; }
body.light .steps article { background:white; }
body.light .market-link strong, body.light .empty-state h3, body.light .price-value { color:var(--text); }
body.light .secondary-btn { background:white; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 62px; }
  .hero-panel { transform: none; }
  .card-grid { grid-template-columns: repeat(2,1fr); }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .watch-section { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 620px) {
  .shell { width:min(100% - 24px,1160px); }
  .nav-links { display:none; }
  .hero { min-height:auto; padding:48px 0 58px; }
  h1 { font-size:44px; }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .trust-row { gap:10px 14px; }
  .section-heading { align-items:flex-start; flex-direction:column; }
  .search-row { grid-template-columns:1fr; }
  .search-box { grid-column:auto; }
  .card-grid { grid-template-columns:1fr; }
  .steps { grid-template-columns:1fr; }
  .footer-row { flex-direction:column; align-items:flex-start; }
}


/* Live card search additions */
.result-art.real-art {
  overflow: hidden;
  background: #0b1020;
  padding: 0;
}
.result-art.real-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.no-art {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.card-copy {
  min-width: 0;
  padding-right: 30px;
}
.card-copy h3 {
  overflow-wrap: anywhere;
}
.live-chip {
  color: var(--accent-2);
  background: rgba(34,211,167,.08);
  border: 1px solid rgba(34,211,167,.25);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 5px 7px;
  border-radius: 7px;
}
.market-link span {
  min-width: 0;
}
.market-link small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}
.no-price {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
}
.skeleton-card {
  min-height: 260px;
}
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.07) !important;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  animation: tcgpfShimmer 1.2s infinite;
}
.skeleton-copy {
  flex: 1;
  padding-top: 8px;
}
.skeleton.line {
  height: 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.skeleton.line.short { width: 35%; }
.skeleton.line.medium { width: 68%; }
.price-skeleton {
  height: 38px;
  border-radius: 10px;
  margin-top: 20px;
}
@keyframes tcgpfShimmer {
  100% { transform: translateX(100%); }
}
