:root {
  --tcg-night: #070b0a;
  --tcg-night-soft: #0d1411;
  --tcg-panel: #101815;
  --tcg-line: rgba(205, 255, 69, 0.18);
  --tcg-lime: #cbf53b;
  --tcg-mint: #75e6b7;
  --tcg-gold: #e7bd63;
  --tcg-ink: #f7faf8;
  --tcg-muted: #aab9b0;
}

body.tcg-night-market {
  min-height: 100vh;
  margin: 0;
  color: var(--tcg-ink);
  background:
    radial-gradient(circle at 88% -10%, rgba(203, 245, 59, 0.1), transparent 32rem),
    radial-gradient(circle at -8% 28%, rgba(117, 230, 183, 0.08), transparent 28rem),
    var(--tcg-night);
  font-family: var(--sans, "Segoe UI", sans-serif);
}

.tcg-night-market .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 10, 0.92);
  backdrop-filter: blur(14px);
}

.tcg-night-market .top-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
}

.tcg-night-market .brand,
.tcg-night-market .nav-link,
.tcg-night-market .nav-dropdown summary {
  color: var(--tcg-ink);
}

.tcg-night-market .brand {
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.tcg-night-market .nav-dropdown summary {
  color: var(--tcg-ink);
}

.tcg-night-market .nav-dropdown-menu {
  border: 1px solid var(--tcg-line);
  background: #0b110f;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.tcg-night-market .nav-link {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.tcg-night-market .nav-link:hover {
  color: #07100b;
  background: var(--tcg-lime);
}

.tcg-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--tcg-muted);
  font-size: 0.9rem;
}

.breadcrumbs a,
.evidence-link {
  color: var(--tcg-mint);
}

.entity-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 58px);
  margin-bottom: 24px;
  border: 1px solid var(--tcg-line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(16, 24, 21, 0.97), rgba(9, 14, 12, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.entity-hero::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -80px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(203, 245, 59, 0.16), transparent 68%);
}

.eyebrow,
.price-kicker {
  margin: 0 0 9px;
  color: var(--tcg-lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lifecycle-chip {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(231, 189, 99, 0.35);
  border-radius: 999px;
  color: #f4d998;
  background: rgba(231, 189, 99, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.entity-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 6vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 760px;
  margin: 20px 0 0;
  color: #c5d1ca;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.entity-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(340px, 1.2fr);
  gap: 24px;
  margin-bottom: 24px;
}

.art-panel,
.price-panel,
.facts-panel,
.content-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(16, 24, 21, 0.98), rgba(9, 14, 12, 0.98));
}

.art-panel {
  min-height: 430px;
  padding: 24px;
  display: grid;
  place-items: center;
}

.art-panel img {
  display: block;
  max-width: 100%;
  max-height: 560px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.42));
}

.image-placeholder {
  width: min(300px, 86%);
  aspect-ratio: 5 / 7;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  border: 1px dashed rgba(203, 245, 59, 0.42);
  border-radius: 18px;
  color: var(--tcg-lime);
  background: radial-gradient(circle at 50% 20%, rgba(203, 245, 59, 0.12), transparent 60%);
}

.image-placeholder span {
  font-size: 2rem;
  font-weight: 950;
}

.image-placeholder small {
  color: var(--tcg-muted);
}

.entity-stack {
  display: grid;
  gap: 24px;
}

.price-panel,
.facts-panel,
.content-panel {
  padding: clamp(22px, 4vw, 34px);
}

.price-panel {
  border-color: rgba(203, 245, 59, 0.26);
}

.market-price,
.price-pending {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.price-pending {
  font-size: clamp(1.65rem, 4vw, 3rem);
}

.price-note,
.muted {
  color: var(--tcg-muted);
  line-height: 1.6;
}

.facts-panel h2,
.content-panel h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 1.35rem;
}

.facts-panel dl {
  margin: 0;
}

.fact {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.fact dt {
  color: var(--tcg-muted);
}

.fact dd {
  margin: 0;
  text-align: right;
  color: #fff;
  font-weight: 750;
}

.content-panel {
  margin-bottom: 24px;
}

.content-panel p {
  max-width: 850px;
  line-height: 1.7;
}

.related-grid,
.directory-list,
.set-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-grid li,
.directory-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.related-grid a,
.directory-list a,
.set-list a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.related-grid span,
.directory-list span,
.set-list span {
  color: var(--tcg-muted);
  font-size: 0.9rem;
}

.directory-list li + li,
.set-list li + li {
  margin-top: 10px;
}

.set-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.count {
  color: var(--tcg-lime);
}

.tcg-footer {
  padding: 30px 20px 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--tcg-muted);
  text-align: center;
  font-size: 0.85rem;
}

.game-hub {
  display: grid;
  gap: 24px;
}

.game-hub .content-panel {
  margin-bottom: 0;
}

.game-hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: center;
  min-height: 510px;
  margin-inline: calc(50% - 50vw);
  margin-bottom: 0;
  padding: clamp(42px, 5vw, 72px) max(20px, calc((100vw - 1120px) / 2));
  overflow: clip;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
  background:
    linear-gradient(115deg, rgba(14, 24, 20, 0.99) 8%, rgba(8, 13, 11, 0.96) 58%, rgba(17, 31, 23, 0.98)),
    radial-gradient(circle at 82% 28%, rgba(203, 245, 59, 0.18), transparent 34%);
}

.game-hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(203, 245, 59, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(203, 245, 59, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, black, transparent 76%);
}

.game-hub-hero-copy {
  position: relative;
  z-index: 4;
  max-width: 650px;
}

.game-hub-hero h1 {
  max-width: 660px;
}

.hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hub-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
}

.hub-primary-action {
  color: #08100b;
  background: var(--tcg-lime);
  box-shadow: 0 16px 35px rgba(203, 245, 59, 0.16);
}

.hub-art-stack {
  position: relative;
  min-height: 390px;
}

.hub-art-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(220px, 54%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 17px;
  background: #0c120f;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
  text-decoration: none;
  transform-origin: 50% 90%;
}

.hub-art-card img {
  display: block;
  width: 100%;
  height: 285px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 20%, rgba(203, 245, 59, 0.12), rgba(5, 8, 7, 0.98) 68%);
}

.hub-art-card span {
  display: block;
  min-height: 52px;
  padding: 11px 12px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.3;
}

.hub-art-card-1 { z-index: 3; transform: translate(-50%, -50%) rotate(-2deg); }
.hub-art-card-2 { z-index: 2; transform: translate(-86%, -48%) rotate(-12deg); }
.hub-art-card-3 { z-index: 1; transform: translate(-14%, -46%) rotate(11deg); }

.hub-stat-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(203, 245, 59, 0.2);
  border-radius: 20px;
  background: rgba(10, 16, 13, 0.9);
}

.hub-stat-rail > div {
  display: grid;
  gap: 5px;
  padding: 21px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.hub-stat-rail > div:last-child {
  border-right: 0;
}

.hub-stat-rail strong {
  color: var(--tcg-lime);
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.hub-stat-rail span,
.hub-release-meta span,
.hub-meter-label {
  color: var(--tcg-muted);
  font-size: 0.86rem;
}

.hub-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.hub-panel-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.hub-release-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(231, 189, 99, 0.24);
  background:
    radial-gradient(circle at 92% 10%, rgba(231, 189, 99, 0.11), transparent 32%),
    linear-gradient(155deg, rgba(18, 26, 22, 0.98), rgba(9, 14, 12, 0.98));
}

.hub-release-date {
  padding: 8px 12px;
  border: 1px solid rgba(231, 189, 99, 0.3);
  border-radius: 999px;
  color: #f4d998;
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

.hub-release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.hub-release-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.hub-text-link {
  color: var(--tcg-lime);
  font-weight: 900;
  text-decoration: none;
}

.hub-entity-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-entity-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  transition: transform 150ms ease, border-color 150ms ease;
}

.hub-entity-card:hover {
  transform: translateY(-3px);
  border-color: rgba(203, 245, 59, 0.28);
}

.hub-entity-art {
  display: grid;
  place-items: center;
  height: 220px;
  padding: 12px;
  background: radial-gradient(circle at 50% 20%, rgba(203, 245, 59, 0.1), rgba(5, 8, 7, 0.96) 72%);
}

.hub-entity-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.4));
}

.hub-entity-copy {
  padding: 14px;
}

.hub-type-chip {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--tcg-lime);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hub-entity-copy h3 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.25;
}

.hub-entity-copy h3 a {
  color: #fff;
  text-decoration: none;
}

.hub-entity-copy p {
  margin: 8px 0 0;
  color: var(--tcg-muted);
  font-size: 0.78rem;
}

.hub-explainer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.hub-coverage-meter {
  height: 8px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hub-coverage-meter span {
  display: block;
  min-width: 4px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tcg-mint), var(--tcg-lime));
}

.hub-method-panel ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hub-method;
}

.hub-method-panel li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 5px 12px;
  align-items: center;
  counter-increment: hub-method;
}

.hub-method-panel li::before {
  content: counter(hub-method, decimal-leading-zero);
  grid-row: 1 / 3;
  color: var(--tcg-lime);
  font-size: 0.8rem;
  font-weight: 950;
}

.hub-method-panel li span {
  color: var(--tcg-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .tcg-night-market .top-nav {
    width: min(100% - 22px, 1120px);
  }

  .tcg-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 22px;
  }

  .entity-hero {
    padding: 25px 20px;
    border-radius: 19px;
  }

  .entity-grid {
    grid-template-columns: 1fr;
  }

  .art-panel {
    min-height: 340px;
  }

  .art-panel img {
    max-height: 440px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .game-hub {
    gap: 15px;
  }

  .game-hub-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px 20px 20px;
    border-radius: 0;
  }

  .game-hub-hero h1 {
    font-size: clamp(2.4rem, 13vw, 3.4rem);
  }

  .hub-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hub-art-stack {
    min-height: 315px;
    margin-top: 8px;
  }

  .hub-art-card {
    width: min(178px, 52%);
  }

  .hub-art-card img {
    height: 220px;
  }

  .hub-art-card span {
    min-height: 44px;
    padding: 8px 9px;
    font-size: 0.68rem;
  }

  .hub-stat-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-stat-rail > div {
    padding: 16px;
  }

  .hub-stat-rail > div:nth-child(2) {
    border-right: 0;
  }

  .hub-stat-rail > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .hub-panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hub-entity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-entity-art {
    height: 185px;
    padding: 9px;
  }

  .hub-entity-copy {
    padding: 11px;
  }

  .hub-explainer-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .set-list a,
  .directory-list li {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .hub-entity-grid {
    grid-template-columns: 1fr;
  }

  .hub-entity-art {
    height: 240px;
  }
}
