/* BEFO CONFIG (/config) · uses the variables and header/footer/buttons from site.css */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.cfg-tag { font-size: 11px; font-weight: 750; letter-spacing: .12em; padding: 4px 8px; border-radius: 6px; color: #fff; background: linear-gradient(180deg, #ef63dc, #c73fd0); margin-left: -16px; }
@media (max-width: 760px) { .cfg-tag { margin-left: 4px; } }
.cfg-links { display: flex; gap: 22px; font-size: 14.5px; color: var(--muted); }
.cfg-links a:hover { color: var(--fg); }
.kicker { font-size: 12px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: #ff7fe0; }

/* explore hero */
.cx-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); text-align: center; }
.cx-hero::before { content: ""; position: absolute; inset: -40% -10% auto -10%; height: 620px; background: radial-gradient(ellipse at 50% 40%, rgba(224,70,209,.22), rgba(162,60,240,.08) 45%, transparent 70%); pointer-events: none; }
.cx-hero .wrap { position: relative; padding-top: 72px; padding-bottom: 56px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cx-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; max-width: 860px; }
.cx-hero h1 em { font-style: normal; background: linear-gradient(90deg, #ff7fe0, #b77cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cx-hero .lead { max-width: 620px; color: var(--muted); font-size: 17px; }
.search { margin-top: 8px; width: 100%; max-width: 640px; display: flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); box-shadow: 0 20px 60px -30px rgba(224,70,209,.6); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; min-height: 46px; border: 0; outline: 0; background: transparent; color: var(--fg); font: inherit; font-size: 15px; }
.search input::placeholder { color: #8a8496; }
.search:focus-within { border-color: rgba(255,92,207,.55); }

.cx-body { padding-top: 40px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.block { display: flex; flex-direction: column; gap: 16px; }
.block h2 { font-size: 22px; font-weight: 750; }
.row-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }

/* game tiles */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.game { position: relative; overflow: hidden; min-height: 108px; padding: 14px; border-radius: 14px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer; font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--line); transition: transform .18s, border-color .18s; }
.game::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(var(--c), .32), transparent 65%); }
.game > * { position: relative; }
.game b { font-size: 21px; font-weight: 850; letter-spacing: .02em; }
.game span { font-size: 12.5px; color: #c9c3d3; }
.game:hover { transform: translateY(-2px); border-color: rgba(255,92,207,.4); }
.game[aria-pressed="true"] { border-color: rgba(255,92,207,.85); box-shadow: 0 0 0 3px rgba(255,92,207,.18); }
.game[aria-pressed="true"]::before { background: radial-gradient(circle at 80% 10%, rgba(var(--c), .55), transparent 65%); }

/* VRAM segmented control */
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #ef63dc, #c73fd0); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line2); transition: transform .18s, border-color .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); border-color: rgba(255,92,207,.45); box-shadow: 0 18px 40px -18px rgba(224,70,209,.55); }
.thumb { position: relative; height: 132px; background: radial-gradient(circle at 25% 25%, rgba(var(--c), .6), transparent 60%), radial-gradient(circle at 90% 100%, rgba(224,70,209,.35), transparent 55%), #17131a; }
.thumb b { position: absolute; left: 16px; bottom: 8px; font-size: 38px; font-weight: 900; letter-spacing: -.02em; color: rgba(255,255,255,.92); }
.thumb i { position: absolute; top: 12px; left: 12px; font-style: normal; font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.5); color: var(--fg); }
.card-b { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-b h3 { font-size: 16px; line-height: 1.3; font-weight: 650; }
.card-b p { font-size: 13.5px; color: var(--muted); }
.by { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c9c3d3; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.by img { width: 22px; height: 22px; border-radius: 6px; }

.vcheck { width: 15px; height: 15px; flex: none; }
.empty { padding: 48px 24px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.14); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty b { font-size: 18px; }
.soon-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; border-radius: 16px; background: linear-gradient(135deg, rgba(224,70,209,.12), rgba(162,60,240,.05)); border: 1px solid rgba(255,92,207,.25); }
.soon-box > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.soon-box h2 { font-size: 20px; font-weight: 750; }
.soon-box p { color: #c9c3d3; max-width: 680px; }

/* config page */
.cv-hero { border-bottom: 1px solid var(--line); background: radial-gradient(circle at 15% 0%, rgba(var(--c, 224,70,209), .26), transparent 45%), radial-gradient(circle at 85% 20%, rgba(224,70,209,.2), transparent 50%), #0e0c12; }
.cv-hero .wrap { padding-top: 28px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs span:last-child { color: var(--fg); }
.cv-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.cv-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cv-main h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.cv-desc { color: #c9c3d3; font-size: 16.5px; max-width: 720px; }
.cv-author { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.cv-author img { width: 32px; height: 32px; border-radius: 8px; }
.cv-actions { flex: 1 1 300px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.badge svg { width: 14px; height: 14px; }
.b-off { background: rgba(255,92,207,.14); color: #ff9ce6; }
.b-ver { background: rgba(110,231,183,.14); color: #6ee7b7; }
.b-vram { background: rgba(255,255,255,.07); color: var(--fg); }

.cv-body { padding-top: 32px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cv-col { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cv-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.panel { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-size: 17px; font-weight: 700; }
.sub-h { font-size: 15px; font-weight: 700; margin-top: 6px; }
.hw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.hw { padding: 12px 14px; border-radius: 12px; background: var(--sub); }
.hw small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.hw b { font-weight: 650; }
.set-list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; }
.set-list li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.set-list li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 750; color: #ff9ce6; background: rgba(255,92,207,.12); }
.set-list li span { padding-top: 2px; }
.gen-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: #c9c3d3; }
.gen-list li { display: flex; gap: 10px; }
.gen-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: #ff5ccf; }
.note p { color: #c9c3d3; }
.cta { text-align: center; align-items: center; background: linear-gradient(180deg, rgba(224,70,209,.12), rgba(224,70,209,0) 45%), var(--card); border-color: rgba(255,92,207,.3); }
.cta img { width: 48px; height: 48px; border-radius: 12px; }
.cta p { color: #c9c3d3; font-size: 14.5px; }
.rel-list { display: flex; flex-direction: column; gap: 10px; }
.rel { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--sub); border: 1px solid transparent; transition: border-color .18s; }
.rel:hover { border-color: rgba(255,92,207,.4); }
.rel i { flex: none; width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 900; font-size: 13px; background: radial-gradient(circle at 30% 30%, rgba(var(--c), .6), transparent 65%), #17131a; }
.rel span { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; line-height: 1.3; }
.rel small { color: var(--muted); font-weight: 500; font-size: 12.5px; }

@media (max-width: 760px) {
  .cfg-links { order: 3; width: 100%; overflow-x: auto; white-space: nowrap; padding-bottom: 10px; }
  .nav { flex-wrap: wrap; height: auto; min-height: 66px; row-gap: 0; }
  .cv-actions { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .game, .card, .rel { transition: none; } }

/* site.css gives every <section> big page padding: not here */
.cx-body section, .cv-body section, .cv-hero, .cx-hero { padding-left: 0; padding-right: 0; }
.cx-body section, .cv-body section { padding-top: 0; padding-bottom: 0; }
.cx-body section.panel, .cv-body section.panel, .cx-body .soon-box { padding: 22px; }
.cx-hero, .cv-hero { padding-top: 0; padding-bottom: 0; }
