/* PlayMarket — design tokens taken from the PlayMarket prototype (DM Sans, red/yellow/ink on cream). */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/dmsans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/dmsans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --red: #CF1028; --red-dark: #A71930; --yellow: #F2B705; --yellow-ink: #6E4F00;
  --ink: #1F1D29; --muted: #5E596B; --soft: #6D6C74; --line: #E4E2EA;
  --cream: #FFFCF4; --bg-soft: #F5F4F7; --bg-softer: #FAF9FB; --white: #fff;
  --green: #2E9E5B; --radius: 18px; --shadow: 0 1px 2px rgba(31,29,41,.05), 0 8px 24px rgba(31,29,41,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink); background: var(--white); line-height: 1.5; }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 800; letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .tiny { font-size: .78rem; }
.red { color: var(--red); } .green { color: var(--green); }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.section { padding: 96px 0; } .section.tight { padding: 56px 0; }
.bg-cream { background: var(--cream); } .bg-soft { background: var(--bg-soft); } .bg-softer { background: var(--bg-softer); }
.bg-red { background: var(--red); color: #fff; } .bg-ink { background: var(--ink); color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.bg-red .eyebrow { color: #fff; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.bg-red .lead { color: rgba(255,255,255,.88); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 18px; font-family: inherit; font-weight: 600; font-size: .9rem; line-height: 1.2; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; } .btn-red:hover { background: var(--red-dark); }
.btn-yellow { background: var(--yellow); color: var(--ink); } .btn-yellow:hover { background: #e2aa00; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; border-color: #CFCBD8; color: var(--ink); } .btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-dark { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn-sm { padding: 7px 13px; font-size: .82rem; } .btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.link { color: var(--red); font-weight: 600; text-decoration: none; } .link:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -.01em; }
.logo-mark { width: 24px; height: 22px; position: relative; }
.logo-mark::before, .logo-mark::after { content: ''; position: absolute; border-radius: 3px; background: var(--red); }
.logo-mark::before { inset: 0 0 4px 5px; opacity: .55; } .logo-mark::after { inset: 4px 5px 0 0; }
.nav { display: flex; gap: 4px; margin-left: 18px; }
.nav a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 999px; color: var(--muted); }
.nav a:hover, .nav a.on { color: var(--ink); background: var(--bg-soft); }
.header-search { margin-left: auto; position: relative; }
.header-search input { width: 260px; height: 38px; border-radius: 10px; border: 1px solid #D4D1DD; padding: 0 12px; font: inherit; font-size: .88rem; }
.lang { display: flex; gap: 6px; }
.lang a { width: 40px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #CFCBD8; font-weight: 700; font-size: .82rem; text-decoration: none; }
.lang a.on { background: var(--red); border-color: var(--red); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 38px; font-size: 1.2rem; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .88rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); font-weight: 800; font-size: .82rem; }

/* Flash */
.flash { padding: 12px 18px; border-radius: 12px; margin: 18px 0; font-weight: 600; }
.flash-ok { background: #E8F6EE; color: #17643A; } .flash-err { background: #FDECEE; color: #9A0E21; }

/* Cards / panels */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel.flat { box-shadow: none; } .panel-soft { background: var(--bg-soft); border: 0; border-radius: 26px; padding: 26px; }
.step-num { color: var(--red); font-weight: 800; font-size: 1.05rem; margin-bottom: 4px; }
.check { list-style: none; padding: 0; margin: 0; } .check li { padding-left: 22px; position: relative; margin: 6px 0; font-weight: 500; }
.check li::before { content: '✓'; position: absolute; left: 0; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: .72rem; font-weight: 800; color: #fff; background: var(--green); letter-spacing: .02em; }
.badge-red { background: var(--red); } .badge-yellow { background: var(--yellow); color: var(--ink); } .badge-ink { background: var(--ink); } .badge-soft { background: var(--bg-soft); color: var(--muted); }
.cond-M, .cond-NM { background: var(--green); } .cond-EX { background: var(--yellow); color: var(--ink); } .cond-GD, .cond-LP { background: #F08A1C; } .cond-PL, .cond-P { background: #8B8794; }

/* Illustrated trading card (no artwork rights needed) */
.tcard { --c: var(--red); aspect-ratio: 63/88; border-radius: 9px; padding: 7%; background: linear-gradient(140deg, #FFD23F, #E8A400); position: relative; box-shadow: 0 4px 14px rgba(31,29,41,.12); }
.tcard-in { height: 100%; border-radius: 5px; background: #FFF8E1; padding: 8%; display: flex; flex-direction: column; gap: 6%; }
.tcard-top { display: flex; justify-content: space-between; align-items: center; }
.tcard-top i { display: block; height: 6px; width: 46%; border-radius: 3px; background: #57534E; }
.tcard-art { flex: 0 0 42%; border-radius: 4px; background: var(--c); position: relative; overflow: hidden; display: grid; place-items: center; }
.tcard-art::after { content: ''; position: absolute; width: 60%; aspect-ratio: 1; right: -12%; top: -18%; border-radius: 50%; background: rgba(255,255,255,.18); }
.emblem { width: 34%; aspect-ratio: 1; border-radius: 50%; background: #fff; position: relative; z-index: 1; }
.emblem::before { content: ''; position: absolute; left: 0; right: 0; top: 46%; height: 8%; background: var(--c); }
.emblem::after { content: ''; position: absolute; inset: 33%; border-radius: 50%; background: #fff; border: 2px solid var(--c); }
.tcard-lines { display: flex; flex-direction: column; gap: 5px; }
.tcard-lines i { display: block; height: 4px; border-radius: 2px; background: #E9DDB8; }
.tcard-lines i:first-child { height: 6px; width: 70%; background: linear-gradient(90deg, var(--c) 0 22%, transparent 22% 28%, #57534E 28%); }
.tcard-lines i:nth-child(3) { width: 80%; }
.tcard-foot { margin-top: auto; display: flex; justify-content: space-between; }
.tcard-foot i { display: block; height: 4px; width: 30%; border-radius: 2px; background: #E9DDB8; } .tcard-foot i + i { width: 16%; background: #A8A29E; }
.tcard .badge { position: absolute; top: 9%; right: 9%; font-size: .62rem; padding: 2px 5px; }
.tcard.stack-of::before, .tcard.stack-of::after { content: ''; position: absolute; inset: 0; border-radius: 9px; background: linear-gradient(140deg, #FFD23F, #E8A400); z-index: -1; }
.tcard.stack-of::before { transform: rotate(-7deg) translate(-6%, 2%); background: #2D7FDB; }
.tcard.stack-of::after { transform: rotate(6deg) translate(6%, 1%); background: #3BA55C; }
.tcard.stack-of { isolation: isolate; }

/* Item tiles (listing / card grid) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; position: relative; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(31,29,41,.06), 0 14px 30px rgba(31,29,41,.1); }
.tile .tcard { width: 72%; margin: 6px auto 4px; }
.tile-title { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.tile-meta { font-size: .78rem; color: var(--soft); }
.tile-price { font-weight: 800; font-size: 1.05rem; }
.tile-flag { position: absolute; top: 12px; left: 12px; }
.trend-up { color: var(--green); font-weight: 700; } .trend-down { color: var(--red); font-weight: 700; }

/* Forms */
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid #D4D1DD; padding: 0 14px; font: inherit; font-size: .95rem; background: #fff; color: var(--ink); }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; }
.input:focus { outline: 2px solid rgba(207,16,40,.25); border-color: var(--red); }
.field { margin-bottom: 16px; } .err { color: var(--red); font-size: .82rem; margin-top: 4px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.radio-cards label { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-weight: 600; margin: 0; }
.radio-cards input { accent-color: var(--red); margin-right: 6px; }
.radio-cards label:has(input:checked) { border-color: var(--red); background: #FFF5F6; }
.radio-cards small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.filters { display: grid; grid-template-columns: 2fr repeat(5, 1fr) auto; gap: 10px; align-items: end; }
.filters label { font-size: .75rem; color: var(--muted); margin-bottom: 4px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-wrap { overflow-x: auto; }

/* Stats */
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat b { display: block; font-size: 1.7rem; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .84rem; }
.chart { width: 100%; height: 220px; display: block; }

/* Hero art */
.hero { padding: 80px 0 96px; }
.hero h1 .r { color: var(--red); display: block; }
.hero-art { position: relative; aspect-ratio: 1.1; width: 100%; max-width: 540px; margin-left: auto; }
.hero-art .glow { position: absolute; inset: 4% 8%; border-radius: 50%; background: radial-gradient(circle, #FDE4E6 0, rgba(253,228,230,.5) 55%, transparent 70%); }
.phone { position: absolute; left: 33%; top: 0; width: 36%; height: 92%; background: var(--ink); border-radius: 30px; padding: 12px 9px; box-shadow: 0 20px 40px rgba(31,29,41,.25); }
.phone::before { content: ''; position: absolute; top: 9px; left: 50%; translate: -50%; width: 30%; height: 7px; border-radius: 4px; background: #44414F; }
.phone-screen { height: 100%; border-radius: 22px; background: #2A2836; padding: 14% 10%; display: flex; flex-direction: column; gap: 9%; }
.phone .tcard { border: 3px solid transparent; outline: 3px solid var(--yellow); outline-offset: 5px; }
.found { background: #fff; border-radius: 10px; padding: 8px 10px; font-size: .72rem; font-weight: 700; }
.found small { display: block; color: var(--muted); font-weight: 600; font-size: .64rem; }
.float-card { position: absolute; width: 30%; }
.float-card.l { left: 0; top: 32%; transform: rotate(-9deg); } .float-card.r { right: 0; top: 28%; transform: rotate(9deg); }
.pill-float { position: absolute; border-radius: 12px; padding: 8px 14px; font-weight: 800; font-size: .8rem; box-shadow: var(--shadow); }
.pill-float.auction { left: 2%; top: 15%; background: var(--red); color: #fff; } .pill-float.auction small { display: block; font-size: .6rem; letter-spacing: .08em; opacity: .85; }
.pill-float.nm { right: 2%; top: 10%; background: #fff; border: 2px solid #E7E4EE; border-radius: 999px; }
.pill-float.nm::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: -1px; }
.pill-float.add { right: 4%; bottom: 3%; background: var(--yellow); }
.pill-float.price { left: 4%; bottom: 10%; background: #fff; border: 2px solid #E7E4EE; }

.map-art { border-radius: 22px; overflow: hidden; background: #F2F3EE; aspect-ratio: 1.35; position: relative; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .86rem; color: var(--soft); }
.footer a { text-decoration: none; color: var(--red); margin-left: 20px; }
.cta-dark { border-radius: 26px; padding: 56px 48px; }
.price-card { display: flex; flex-direction: column; }
.price-card .amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; }
.price-card.hot { border: 2px solid var(--red); position: relative; }
.price-card.hot::before { content: attr(data-tag); position: absolute; top: -13px; left: 24px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.price-card .check { margin: 16px 0 22px; flex: 1; }
.big-num { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span { padding: 8px 13px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-size: .88rem; font-weight: 600; }
.pagination .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .off { color: #B8B5C1; }
.mobile-nav { display: none; }

@media (max-width: 1400px) { .header-search { display: none; } .nav { margin-right: auto; } }
@media (max-width: 1080px) {
  .nav, .header-search, .header-actions { display: none; }
  .menu-btn { display: block; }
  .mobile-nav.open { display: block; border-top: 1px solid var(--line); padding: 12px 24px 18px; }
  .mobile-nav a, .mobile-nav button { display: block; padding: 10px 0; font-weight: 600; text-decoration: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .q { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .split, .g2, .g3 { grid-template-columns: 1fr; gap: 32px; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-art { margin: 0 auto; }
  .cta-dark { padding: 36px 24px; }
  .footer .row { flex-direction: column; align-items: flex-start; } .footer a { margin: 0 16px 0 0; }
}
@media (max-width: 520px) {
  .g4 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile { padding: 10px; } .tile .tcard { width: 82%; }
  .site-header .bar { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
