:root {
  --bg: #070e16;
  --bg-2: #0c1218;
  --card: #121a24;
  --card-2: #182230;
  --ink: #f4efe6;
  --muted: #b7ad9e;
  --faint: #8d8478;
  --line: #2a3544;
  --line-soft: rgba(244, 239, 230, 0.08);
  --gold: #e4b322;
  --gold-2: #f0c85a;
  --gold-ink: #241a04;
  --green: #3dce7a;
  --red: #ff6b62;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --display: Fraunces, Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(228, 179, 34, 0.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.top {
  background: #070b12;
  border-bottom: 1px solid rgba(228, 179, 34, 0.18);
}
.top-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo {
  letter-spacing: 0.18em;
  font-weight: 750;
  font-size: 18px;
}
.logo small {
  display: inline;
  letter-spacing: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.top nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.top nav a.is-here { color: var(--ink); }
.top .spacer { margin-left: auto; }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 72px; }

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker::before { content: "—  "; }
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.lede { margin: 12px 0 0; max-width: 640px; color: rgba(244, 239, 230, 0.72); font-size: 16.5px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill {
  border: 1px solid rgba(244, 239, 230, 0.18);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 650;
}
.pill.is-on, .pill:hover { background: #f4efe6; color: #17191e; border-color: #f4efe6; }
a.pill { display: inline-flex; align-items: center; }

.gold {
  border: 0;
  background: var(--gold);
  color: var(--gold-ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 750;
}
.gold:hover { background: var(--gold-2); }
.ghost {
  border: 1px solid rgba(244, 239, 230, 0.22);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 650;
}

.search {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #0e1620;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
  padding: 8px 0;
}
.search input::placeholder { color: var(--faint); }

.trust {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
.trust strong { color: var(--gold-2); font-weight: 700; }

.mast {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: end;
}
.still {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: 72% 45%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 36px 0 14px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 560;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.section-head a { color: var(--gold-2); font-size: 14px; font-weight: 650; }

.sets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.set {
  position: relative;
  display: block;
  min-height: 118px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101820;
}
.set img { width: 100%; height: 118px; object-fit: cover; }
.set::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  background: linear-gradient(transparent, rgba(7, 14, 22, 0.88));
}
.set span {
  position: absolute;
  z-index: 1;
  left: 10px;
  right: 10px;
  bottom: 8px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rows { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(150px, auto) max-content;
  gap: 14px 18px;
  align-items: center;
  background: linear-gradient(180deg, #141c28, #101820);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.thumb {
  width: 64px;
  height: 88px;
  object-fit: cover;
  border-radius: 6px;
  background: #0b1016;
}
.row h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.meta { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.price {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  color: var(--gold-2);
  font-size: 20px;
  letter-spacing: -0.03em;
}
.price small { display: block; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.up { color: var(--green); }
.down { color: var(--red); }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 560;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.stat span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}
.note em { color: var(--gold-2); font-style: normal; font-weight: 700; }

.plans {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.plan.is-pick { border-color: rgba(228, 179, 34, 0.55); }
.plan b { display: block; font-size: 22px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.plan span { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  margin-top: 22px;
}
.side { display: flex; flex-direction: column; gap: 12px; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.panel h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 560; font-size: 26px; }
.panel p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.field input {
  border: 1px solid var(--line);
  background: #0e1620;
  border-radius: 10px;
  padding: 10px 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(228, 179, 34, 0.14);
  color: var(--gold-2);
}
.chip.is-green { background: rgba(61, 206, 122, 0.12); color: var(--green); }
.chip.is-muted { background: rgba(244, 239, 230, 0.06); color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.filters select, .countline {
  background: #0e1620;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
}
.countline {
  margin: 16px 0 12px;
  display: inline-flex;
  color: var(--muted);
  font-size: 14px;
}

.preview-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.preview-nav span { color: var(--faint); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-right: 6px; }

.gallery { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
.card-link {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
}
.card-link:hover { border-color: rgba(228, 179, 34, 0.45); }
.num {
  font-family: var(--display);
  font-size: 32px;
  color: var(--gold);
}
.card-link h2 { margin: 0 0 4px; font-size: 22px; font-family: var(--display); font-weight: 560; }
.card-link p { margin: 0; color: var(--muted); }

.analysis { margin-top: 36px; max-width: 760px; }
.analysis h2 { font-family: var(--display); font-weight: 560; font-size: 32px; margin: 0 0 10px; }
.analysis li { margin: 8px 0; color: rgba(244, 239, 230, 0.82); }
.analysis strong { color: var(--ink); }

.portrait {
  position: relative;
  height: 340px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(228, 179, 34, 0.28);
  background: #0a1018;
  box-shadow: var(--shadow);
}
.portrait-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}
.fan {
  position: absolute;
  width: 148px;
  height: 206px;
  object-fit: cover;
  border-radius: 12px;
  bottom: 28px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(244, 239, 230, 0.2);
}
.fan-a { right: 196px; transform: rotate(-11deg); bottom: 36px; }
.fan-b { right: 78px; width: 168px; height: 234px; z-index: 2; transform: rotate(4deg); bottom: 22px; box-shadow: 0 28px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(228, 179, 34, 0.55); }
.fan-c { right: 18px; transform: rotate(14deg); bottom: 40px; }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 150px;
  gap: 14px;
  overflow-x: auto;
  margin-top: 22px;
  padding: 4px 2px 12px;
}
.rail figure { margin: 0; }
.rail img {
  width: 150px;
  height: 208px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(228, 179, 34, 0.28);
}
.rail figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.rail strong { display: block; color: var(--gold-2); font-variant-numeric: tabular-nums; }

a.ebay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  white-space: nowrap;
  background: #f5c518;
  color: #1a1408;
  border-radius: 999px;
  padding: 5px 10px 5px 5px;
  font-weight: 750;
  line-height: 1.05;
}
a.ebay .shot { width: 28px; height: 38px; object-fit: cover; border-radius: 5px; }
a.ebay small { display: block; font-size: 10px; font-weight: 650; letter-spacing: 0.02em; opacity: 0.72; }
a.ebay .mark { width: 34px; height: auto; }
a.ebay b { font-variant-numeric: tabular-nums; font-size: 14px; }

body.is-3d { overflow: hidden; height: 100vh; background: #070e16; }
.stage3d { position: relative; height: calc(100vh - 118px); }
.stage3d canvas { width: 100%; height: 100%; display: block; }
.hud {
  position: absolute;
  z-index: 2;
  left: 28px;
  top: 22px;
  width: min(420px, calc(100% - 56px));
  pointer-events: none;
}
.hud .pills, .hud a, .hud button { pointer-events: auto; }
.hud-card {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(12, 18, 24, 0.72);
  border: 1px solid rgba(228, 179, 34, 0.28);
  backdrop-filter: blur(10px);
  max-width: 360px;
}
.hint {
  position: absolute;
  right: 22px;
  bottom: 16px;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag3d {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 750;
  color: #f4efe6;
  background: rgba(7, 14, 22, 0.78);
  border: 1px solid rgba(228, 179, 34, 0.45);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}
.tag3d.is-ebay { background: #f5c518; color: #1a1408; border-color: #f5c518; }
.tag3d.is-off { border-color: rgba(255, 107, 98, 0.7); color: #ffb4ae; }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .mast, .desk, .plans, .stats, .sets { grid-template-columns: 1fr 1fr; }
  .plans, .stats { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 64px 1fr; }
  .actions, .price { grid-column: 2; }
  .top nav { display: none; }
  .still { height: 180px; }
}
@media (max-width: 640px) {
  .sets, .plans, .stats, .mast, .desk { grid-template-columns: 1fr; }
}
