
:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #1b1d22;
  --text: #f4f4f5;
  --muted: #a7a8b3;
  --red: #ff4d55;
  --border: #303137;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 82% -10%, rgba(255, 77, 85, .13), transparent 28rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }

.site-header, main, footer { max-width: 1160px; margin: auto; padding: 24px; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.brand { color: var(--red); font-weight: 900; letter-spacing: 1px; }
.brand span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: 2px; }
.header-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.header-status i { width: 8px; height: 8px; border-radius: 50%; background: #60d394; box-shadow: 0 0 14px #60d39480; }

.hero { padding: 32px 0 24px; }
.eyebrow { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: 2px; }
h1 { margin: 20px 0; font-size: clamp(36px, 6vw, 64px); line-height: 1.02; letter-spacing: -2.5px; }
p { color: var(--muted); line-height: 1.6; }
.metrics { display: flex; gap: 34px; margin: 26px 0; }
.metrics strong { display: block; font-size: 28px; }
.metrics span { color: var(--muted); font-size: 13px; }
.notice { padding: 13px 16px; border: 1px solid #3b3d45; border-radius: 11px; color: var(--muted); font-size: 13px; }

.controls {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: #101114f2;
  backdrop-filter: blur(14px);
}
input[type="search"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #3b3d45;
  border-radius: 12px;
  outline-offset: 3px;
  background: var(--panel);
}
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
select, .filters button { padding: 10px; border: 1px solid #3b3d45; border-radius: 9px; background: var(--panel); }
.filters button[aria-pressed="true"] { color: var(--red); border-color: var(--red); }
label { display: flex; align-items: center; gap: 7px; font-size: 14px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--red); }

.result { margin: 22px 0 14px; color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
.art { display: flex; align-items: flex-start; justify-content: space-between; height: 104px; padding: 16px; background: linear-gradient(115deg, #252837, #3d303f); }
.platform { font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.mark { align-self: flex-end; font-size: 36px; font-weight: 900; letter-spacing: 3px; opacity: .16; }
.star { padding: 2px 9px; border: 1px solid #ffffff18; border-radius: 9px; background: #10111499; font-size: 23px; }
.star[aria-pressed="true"] { color: var(--red); }
.card-body { flex: 1; padding: 18px; }
h2 { min-height: 50px; margin: 0 0 20px; font-size: 17px; line-height: 1.45; }
.variant { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding: 12px 0; border-top: 1px solid #383940; font-size: 13px; }
.price { font-size: 19px; font-weight: 750; }
.stock { color: #81d7a5; }
.none { color: var(--muted); }
.empty { padding: 50px 0; color: var(--muted); }
footer { margin-top: 30px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; line-height: 1.6; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.exchange-page { min-height: 100vh; padding: 48px 20px; }
.exchange-panel { max-width: 680px; margin: auto; padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); }
.exchange-panel h1 { margin-top: 8px; font-size: 34px; letter-spacing: -1px; }
.exchange-form { display: grid; gap: 18px; margin-top: 28px; }
.exchange-form label { display: grid; gap: 7px; }
.exchange-form input { width: 100%; padding: 12px; border: 1px solid #3b3d45; border-radius: 9px; background: var(--bg); }
.exchange-form button { padding: 13px 18px; border: 0; border-radius: 10px; background: var(--red); color: #fff; font-weight: 800; }
.exchange-message { margin-top: 18px; padding: 12px; border-radius: 9px; background: var(--bg); color: var(--muted); }

@media (max-width: 850px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .site-header, main, footer { padding: 18px; }
  .grid { grid-template-columns: 1fr; }
  .header-status { max-width: 110px; text-align: right; }
  .metrics { gap: 22px; }
  .filters { gap: 8px; }
  .filters select { max-width: 100%; }
  h2 { min-height: 0; }
  .art { height: 82px; }
}
