:root {
  color-scheme: dark;
  --bg: #121620;
  --bg-elevated: #181b26;
  --panel: #202330;
  --panel-soft: #252936;
  --line: #3c424f;
  --text: #f5f7f9;
  --text-soft: #d7dee6;
  --muted: #919dab;
  --gold: #efbb03;
  --gold-deep: #c18500;
  --red: #ed4245;
  --green: #41f179;
  --blue: #42a0ed;
  --rare: #42a0ed;
  --epic: #b46cff;
  --legendary: #efbb03;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(239, 187, 3, 0.08), transparent 30%),
    linear-gradient(180deg, #0f121b 0%, #121620 100%);
  font-family: "DMSans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: #f9d96b;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-mark,
.button,
.rarity-badge {
  font-family: "Arcuata", Georgia, serif;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header,
.site-footer {
  background: rgba(18, 22, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(239, 187, 3, 0.15);
}

.site-footer {
  border-top: 1px solid rgba(239, 187, 3, 0.15);
  border-bottom: 0;
}

.header-layout,
.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-header a,
.site-footer a,
.brand-mark {
  color: var(--text);
}

.brand-mark {
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text-soft);
}

.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at top right, rgba(66, 160, 237, 0.16), transparent 28%),
    radial-gradient(circle at top left, rgba(239, 187, 3, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(32, 35, 48, 0.95) 0%, rgba(18, 22, 32, 0.95) 100%);
}

.hero-compact {
  padding: 3.25rem 0 2.5rem;
}

.hero-layout,
.product-layout,
.grid,
.product-grid,
.product-summary-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-layout,
.product-layout {
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  align-items: start;
}

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

.three-up,
.product-grid,
.product-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-card,
.info-card,
.product-card,
.section-card,
.metric-card,
.product-main,
.product-sidebar,
.prose-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.info-card,
.product-card,
.section-card,
.metric-card,
.product-main,
.product-sidebar,
.prose-body,
.hero-card {
  padding: 1.25rem;
}

.prose-body {
  margin-bottom: 1.5rem;
}

.prose-shell > .grid {
  margin-top: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: #f3d888;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  max-width: 65ch;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.button-primary,
.pagination-link {
  color: #1d1500;
  background: linear-gradient(180deg, #f6bd45 0%, #efbb03 55%, #c18500 100%);
  border-color: #fddf8f;
  box-shadow: 0 10px 24px rgba(239, 187, 3, 0.22);
}

.button-secondary {
  color: var(--text);
  background: linear-gradient(180deg, #323845 0%, #202330 100%);
  border-color: var(--line);
}

.section-block {
  padding: 3rem 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(37, 41, 54, 0.35), rgba(18, 22, 32, 0));
}

.section-header {
  margin-bottom: 1.5rem;
}

.feature-list,
.meta-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.meta-list {
  padding-left: 0;
}

.meta-list div {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(145, 157, 171, 0.2);
}

.meta-list div:last-child {
  border-bottom: 0;
}

.product-card-id,
.breadcrumbs,
.meta-list dt,
.spec-table th,
.prose-body h2,
.prose-body h3,
.pagination-status,
.price-original {
  color: var(--muted);
}

.badge-row {
  margin: 0.4rem 0 0.7rem;
}

.product-visual {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(239, 187, 3, 0.18);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.product-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.rarity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rarity-common {
  color: #d7dee6;
}

.rarity-uncommon {
  color: var(--green);
}

.rarity-rare {
  color: var(--rare);
}

.rarity-epic {
  color: var(--epic);
}

.rarity-legendary {
  color: var(--legendary);
}

.price-row {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-weight: 700;
  color: #fff4c7;
}

.price-original {
  text-decoration: line-through;
}

.product-card p,
.info-card p,
.section-card p,
.prose-body p,
.footer-layout p {
  color: var(--text-soft);
}

.product-summary-grid {
  margin: 1.5rem 0;
}

.metric-card dt {
  font-size: 0.9rem;
  color: var(--muted);
}

.metric-card dd {
  margin: 0.35rem 0 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff6d1;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 0.8rem;
  border-bottom: 1px solid rgba(145, 157, 171, 0.2);
  text-align: left;
}

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.prose-shell {
  max-width: 840px;
}

.lore-card {
  margin-top: 1rem;
}

code {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
  .hero-layout,
  .product-layout,
  .two-up,
  .three-up,
  .product-grid,
  .product-summary-grid {
    grid-template-columns: 1fr;
  }

  .header-layout,
  .footer-layout,
  .pagination-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
