:root {
  --bg: #0c0a07;
  --panel: rgba(27, 22, 16, 0.92);
  --panel-soft: rgba(40, 33, 24, 0.88);
  --line: rgba(183, 151, 94, 0.28);
  --line-strong: rgba(211, 179, 119, 0.48);
  --text: #f2e8cf;
  --muted: #c1b18b;
  --accent: #d2b074;
  --accent-soft: rgba(210, 176, 116, 0.16);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(143, 116, 63, 0.18), transparent 28%),
    linear-gradient(180deg, #0b0907 0%, #120f0b 45%, #0c0907 100%);
  font-family: "Manrope", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 210, 130, 0.05), transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 210, 130, 0.03), transparent 24%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin-top: 0; }

.bg-stars { display: none; }

.site-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand { display: inline-flex; align-items: center; gap: 16px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 78px; height: 78px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: "Cinzel", serif; font-size: 1.08rem; }
.brand-text small { color: #c7c0b0; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }

.nav { display: flex; justify-content: center; align-items: center; gap: 22px; }
.nav a { color: #f0ece2; font-weight: 700; font-size: 0.96rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

.header-actions { display: flex; gap: 12px; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}
.button-primary {
  color: #20170f;
  background: linear-gradient(135deg, #d8bb83, #b89050);
  box-shadow: 0 14px 30px rgba(183, 139, 72, 0.22);
}
.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(210, 176, 116, 0.3);
}
.button-small { min-height: 40px; padding: 0 14px; font-size: 0.9rem; }

.builder-page { padding-top: 40px; }
.builder-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 390px;
  gap: 24px;
  align-items: start;
}

.suggested-builds {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(31, 25, 18, 0.96), rgba(20, 16, 12, 0.96)),
    radial-gradient(circle at top right, rgba(184, 154, 94, 0.08), transparent 34%);
  box-shadow: var(--shadow);
}

.section-copy {
  max-width: 760px;
}

.section-copy h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.06;
}

.suggested-intro,
.suggested-source {
  color: var(--muted);
  line-height: 1.75;
}

.suggested-intro {
  margin: 14px 0 0;
  max-width: 68ch;
}

.suggested-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.suggested-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(39, 31, 23, 0.88), rgba(21, 17, 12, 0.96));
}

.suggested-media {
  display: grid;
  place-items: center;
  min-height: 250px;
  border: 1px solid rgba(210, 176, 116, 0.18);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 232, 180, 0.06), transparent 54%),
    linear-gradient(180deg, rgba(54, 44, 31, 0.8), rgba(20, 16, 11, 0.92));
}

.suggested-media img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.suggested-media-placeholder {
  padding: 18px;
  text-align: center;
}

.suggested-media-placeholder span {
  max-width: 24ch;
  color: #d3c096;
  font-size: 0.95rem;
  line-height: 1.7;
}

.suggested-content h3 {
  margin: 10px 0 12px;
  font-family: "Cinzel", serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.suggested-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.suggested-content ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.62;
}

.suggested-content li strong {
  color: var(--text);
}

.suggested-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(210, 176, 116, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #e8cf9a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.suggested-source {
  margin: 18px 0 0;
  font-size: 0.92rem;
}

.equipment-download {
  display: flex;
  justify-content: flex-start;
  margin-top: 42px;
}

.equipment-download .button {
  min-width: 210px;
}

.equipment-stage,
.chooser-panel,
.selected-item-card,
.build-stats article,
.result-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(31, 25, 18, 0.96), rgba(20, 16, 12, 0.96));
  box-shadow: var(--shadow);
}

.equipment-stage {
  position: relative;
  overflow: hidden;
  min-height: 980px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(72, 60, 40, 0.22), rgba(18, 14, 11, 0.9)),
    radial-gradient(circle at top right, rgba(184, 154, 94, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(22, 18, 13, 0.98), rgba(15, 12, 9, 0.98));
}

.equipment-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(230, 212, 154, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(255, 240, 190, 0.04), transparent 22%);
}

.equipment-header,
.selection-summary,
.equipment-grid {
  position: relative;
  z-index: 1;
}

.equipment-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.equipment-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 238, 190, 0.06);
  color: var(--accent);
  font-size: 1.6rem;
}

.equipment-label {
  margin: 0 0 8px;
  color: #dbc79d;
  font-family: "Cinzel", serif;
  font-size: 2rem;
}

.equipment-header h1 {
  font-family: "Cinzel", serif;
  font-size: 2.2rem;
  font-weight: 600;
}

.selection-summary {
  margin-top: 34px;
}

.selection-summary p {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
}

.selection-summary strong {
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #e2d7b7;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(5, 98px);
  gap: 10px;
  margin-top: 38px;
}

.equip-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  padding: 0;
  border: 1px solid rgba(255, 244, 214, 0.12);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.28)),
    linear-gradient(180deg, rgba(136, 123, 97, 0.16), rgba(26, 21, 16, 0.95));
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 190, 0.04),
    inset 0 10px 20px rgba(255, 255, 255, 0.02),
    0 8px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.equip-slot::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.equip-slot:hover {
  border-color: rgba(255, 236, 190, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 190, 0.06),
    0 0 18px rgba(231, 204, 144, 0.18),
    0 0 0 1px rgba(231, 204, 144, 0.18),
    0 12px 26px rgba(0, 0, 0, 0.22);
}

.equip-slot img {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.32));
}

.equip-slot-spacer {
  visibility: hidden;
  pointer-events: none;
  width: 98px;
  height: 98px;
}

.slot-placeholder-image {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  object-fit: contain;
  opacity: 0.62;
  filter: grayscale(1) brightness(0.9) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.26));
  transition: opacity 160ms ease, filter 160ms ease, transform 160ms ease;
}

.equip-slot:hover .slot-placeholder-image {
  opacity: 0.9;
  filter: grayscale(0.15) brightness(1.08) drop-shadow(0 0 14px rgba(255, 234, 179, 0.22));
  transform: scale(1.03);
}

.grid-span-4 { grid-column: span 4; }
.grid-offset-1 { grid-column-start: 1; }

.chooser-panel {
  position: sticky;
  top: 108px;
  border-radius: var(--radius-xl);
  padding: 22px;
}

.chooser-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.chooser-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chooser-close {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(210, 176, 116, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.chooser-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.chooser-top h2 {
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  line-height: 1.12;
}

.chooser-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.chooser-search {
  margin-top: 18px;
}

.chooser-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 240, 190, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.chooser-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.item-results {
  display: grid;
  gap: 12px;
  max-height: 420px;
  margin-top: 18px;
  overflow: auto;
  padding-right: 4px;
}

.result-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.result-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 8px;
}

.result-card h3 {
  font-size: 0.96rem;
  line-height: 1.3;
}

.result-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.selected-item-card {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  padding: 16px;
}

.selected-item-body {
  display: grid;
  gap: 14px;
}

.selected-item-media {
  display: grid;
  place-items: center;
  min-height: 140px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.selected-item-media img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  padding: 16px;
}

.selected-item-card h3 {
  font-family: "Cinzel", serif;
  font-size: 1.25rem;
}

.selected-item-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.selected-item-card strong {
  color: var(--text);
}

.selected-placeholder {
  margin: 0;
  color: var(--muted);
}

.build-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.build-stats article {
  border-radius: 16px;
  padding: 14px;
}

.build-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.build-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.footer {
  padding: 26px 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  width: 200px;
  transition: transform 180ms ease, filter 180ms ease;
}

.floating-whatsapp img {
  width: 100%;
  filter:
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 8px rgba(72, 255, 149, 0.12))
    drop-shadow(0 0 3px rgba(72, 255, 149, 0.18));
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.02);
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
    border-radius: 28px;
  }

  .nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .builder-shell {
    grid-template-columns: 1fr;
  }

  .chooser-panel {
    position: static;
  }

  .equipment-download .button {
    width: 100%;
  }

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

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--container));
    padding-top: 10px;
  }

  .topbar {
    position: static;
    padding: 12px;
    border-radius: 22px;
  }

  .brand-mark {
    width: 64px;
    height: 64px;
  }

  .nav {
    width: 100%;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 0.84rem;
  }

  .header-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .equipment-stage {
    min-height: 0;
    padding: 18px;
  }

  .suggested-builds {
    margin-top: 22px;
    padding: 18px;
  }

  .section-copy h2 {
    font-size: 1.6rem;
  }

  .suggested-card {
    padding: 14px;
    border-radius: 18px;
  }

  .suggested-media {
    min-height: 190px;
  }

  .suggested-media img {
    height: 190px;
  }

  .equipment-label,
  .equipment-header h1,
  .selection-summary p,
  .selection-summary strong {
    font-size: 1.2rem;
  }

  .equipment-grid {
    grid-template-columns: repeat(5, 60px);
    gap: 8px;
    justify-content: center;
  }

  .equip-slot {
    width: 60px;
    height: 60px;
  }

  .equip-slot img {
    width: 44px;
    height: 44px;
  }

  .slot-placeholder-image {
    width: 48px;
    height: 48px;
  }

  .equip-slot-spacer {
    width: 60px;
    height: 60px;
  }

  .chooser-panel {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: 12px;
    z-index: 80;
    overflow: auto;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(31, 25, 18, 0.99), rgba(20, 16, 12, 0.99));
  }

  body.mobile-chooser-open .chooser-panel {
    display: block;
  }

  body.mobile-chooser-open {
    overflow: hidden;
  }

  body.mobile-chooser-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(5, 5, 7, 0.72);
    backdrop-filter: blur(6px);
  }

  .chooser-top,
  .chooser-meta,
  .chooser-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .build-stats {
    grid-template-columns: 1fr 1fr;
  }

  .chooser-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    width: 78px;
  }

}

@media (max-width: 480px) {
  .site-shell {
    width: min(calc(100% - 18px), var(--container));
  }

  .equipment-grid {
    grid-template-columns: repeat(5, 52px);
  }

  .equip-slot {
    width: 52px;
    height: 52px;
  }

  .equip-slot img {
    width: 38px;
    height: 38px;
  }

  .slot-placeholder-image {
    width: 40px;
    height: 40px;
  }

  .equip-slot-spacer {
    width: 52px;
    height: 52px;
  }

  .build-stats {
    grid-template-columns: 1fr;
  }

  .suggested-media {
    min-height: 170px;
  }

  .suggested-media img {
    height: 170px;
  }
}
