:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: #101010;
  --panel-strong: #171717;
  --metal: #c8c8c8;
  --metal-dim: #888;
  --text: #f8f8f8;
  --muted: #c6c0b4;
  --line: rgba(240, 184, 8, 0.24);
  --line-strong: rgba(240, 184, 8, 0.68);
  --yellow: #f0b808;
  --gold: #d09800;
  --amber-dark: #6d4700;
  --green: #7cff9e;
  --red: #ff4d3d;
  --cyan: #6ce6ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(240, 184, 8, 0.18), transparent 34rem),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 18px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(240, 184, 8, 0.08), transparent 18%, transparent 82%, rgba(240, 184, 8, 0.08)),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 3, 3, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.footer,
.section-actions,
.product-meta,
.stock-line,
.cart-head {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: max-content;
  font-weight: 950;
  text-transform: uppercase;
}

.brand-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(240, 184, 8, 0.35));
}

.brand-name {
  color: var(--metal);
  text-shadow: 0 2px 0 #000, 0 0 18px rgba(240, 184, 8, 0.28);
}

.nav {
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding-block: 10px;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.icon-button,
.button,
.category-tabs button,
.qty-control button,
.remove-item {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  padding: 0 18px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--yellow);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.button.primary,
.icon-button,
.category-tabs button.is-active {
  background: linear-gradient(180deg, var(--yellow), var(--gold));
  color: #0a0700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px rgba(240, 184, 8, 0.18);
}

.button.secondary {
  background: rgba(0, 0, 0, 0.42);
  color: var(--yellow);
}

.button.ghost {
  background: transparent;
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.16);
}

.button.full,
.full {
  width: 100%;
}

.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.cart-count {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  margin-left: 10px;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.48);
  background: #080808;
  color: var(--yellow);
  font-size: 12px;
}

.cart-count.large {
  min-width: 38px;
  height: 38px;
  margin-left: 0;
  border-color: var(--line);
  font-size: 16px;
}

.hero,
.page-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero {
  min-height: min(720px, calc(100svh - 104px));
  align-items: end;
  padding: clamp(42px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.94), rgba(3, 3, 3, 0.5) 44%, rgba(3, 3, 3, 0.16)),
    linear-gradient(0deg, rgba(3, 3, 3, 0.98), rgba(3, 3, 3, 0.2) 42%, rgba(3, 3, 3, 0.62)),
    url("drive-brand-assets/bunker_games_logo_principal_variante_sin_columnas.png") center right / cover;
  transform: scale(1.01);
}

.page-hero {
  min-height: 460px;
  align-items: end;
  padding: clamp(86px, 12vw, 150px) clamp(18px, 4vw, 56px) clamp(56px, 8vw, 90px);
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.94), rgba(3, 3, 3, 0.48)),
    url("drive-brand-assets/bunker_games_logo_principal_variante_sin_columnas.png") center right / cover;
}

.shop-hero {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.94), rgba(3, 3, 3, 0.5)),
    url("drive-brand-assets/bunker_games_banner_1920x300.png") center / cover;
}

.streams-hero {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.94), rgba(3, 3, 3, 0.46)),
    url("drive-brand-assets/bunker_games_logo_cuadrado_banner_tcg_rol.png") center right / cover;
}

.workshop-hero {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.94), rgba(3, 3, 3, 0.48)),
    url("drive-brand-assets/bunker_games_banner_1920x300.png") center / cover;
}

.community-hero {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.94), rgba(3, 3, 3, 0.52)),
    url("drive-brand-assets/bunker_games_logo_detalles.png") center right / cover;
}

.hero::after,
.page-hero::after,
.stream-band::after,
.community::after {
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  content: "";
  background: repeating-linear-gradient(90deg, var(--yellow) 0 58px, #111 58px 82px);
}

.hero-copy,
.page-hero-copy {
  position: relative;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  text-transform: uppercase;
  text-shadow: 0 3px 0 #000;
}

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  color: var(--metal);
  font-size: clamp(58px, 9vw, 126px);
  line-height: 0.82;
  text-shadow:
    0 4px 0 #000,
    0 0 28px rgba(240, 184, 8, 0.18),
    -1px -1px 0 rgba(255, 255, 255, 0.55),
    1px 1px 0 rgba(0, 0, 0, 0.85);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.05;
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero-copy p:not(.eyebrow),
.page-hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: #eee6d5;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: clamp(64px, 8vw, 108px) clamp(18px, 4vw, 56px);
}

.section.muted {
  background:
    linear-gradient(180deg, rgba(240, 184, 8, 0.05), transparent 42%),
    #080808;
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 34px;
}

.section-actions {
  margin-top: 28px;
}

.universe {
  background:
    linear-gradient(rgba(3, 3, 3, 0.84), rgba(3, 3, 3, 0.94)),
    url("drive-brand-assets/bunker_games_banner_1920x300.png") center / cover;
}

.service-grid,
.product-grid,
.workshop-grid,
.feature-grid,
.route-grid,
.timeline {
  display: grid;
  gap: 16px;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid.expanded,
.feature-grid.wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid,
.workshop-grid,
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.route-grid,
.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.product-card,
.workshop-card,
.stream-panel,
.info-card,
.route-card,
.timeline article,
.shop-panel,
.cart-panel,
.empty-state {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(240, 184, 8, 0.09), transparent 40%),
    var(--panel);
  box-shadow: var(--shadow);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.service-card,
.workshop-card,
.info-card,
.route-card,
.timeline article,
.empty-state {
  min-height: 230px;
  padding: 22px;
}

.service-card::before,
.workshop-card::before,
.info-card::before,
.route-card::before {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(240, 184, 8, 0.28);
  border-radius: 50%;
  content: "";
  background:
    linear-gradient(90deg, transparent 45%, rgba(240, 184, 8, 0.5) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(240, 184, 8, 0.5) 45% 55%, transparent 55%);
}

.service-card span,
.route-card span,
.timeline span,
.tag,
.live-badge,
.category-ribbon {
  display: inline-flex;
  border: 1px solid rgba(240, 184, 8, 0.36);
  padding: 7px 10px;
  color: var(--yellow);
  background: rgba(0, 0, 0, 0.42);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.service-card h3,
.workshop-card h3,
.info-card h3,
.route-card h3 {
  margin-top: 70px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-image {
  position: relative;
  min-height: 250px;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.category-ribbon {
  position: absolute;
  right: 14px;
  bottom: 14px;
}

.product-body,
.shop-panel,
.cart-panel {
  padding: 22px;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-meta,
.stock-line,
.cart-head {
  justify-content: space-between;
  gap: 16px;
}

.price {
  color: var(--green);
  font-size: 22px;
  font-weight: 950;
  white-space: nowrap;
}

.stock-line {
  margin: auto 0 16px;
  color: var(--metal-dim);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.stream-band,
.community {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(64px, 8vw, 108px) clamp(18px, 4vw, 56px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.92), rgba(3, 3, 3, 0.68)),
    url("drive-brand-assets/bunker_games_logo_cuadrado_banner_tcg_rol.png") center / cover;
}

.stream-panel {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(240, 184, 8, 0.16), transparent 48%),
    var(--panel-strong);
}

.live-badge {
  margin-bottom: 18px;
  border-color: rgba(255, 77, 61, 0.48);
  color: var(--red);
}

.community,
.cta-band {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.92), rgba(3, 3, 3, 0.68)),
    url("drive-brand-assets/bunker_games_logo_detalles.png") center / cover;
}

.community-copy {
  width: min(720px, 100%);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.terminal-list {
  display: grid;
  gap: 12px;
}

.terminal-list p {
  margin: 0;
  border: 1px solid rgba(240, 184, 8, 0.18);
  padding: 16px;
  background: rgba(0, 0, 0, 0.34);
}

.terminal-list span {
  margin-right: 10px;
  color: var(--green);
  font-weight: 950;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
  padding: clamp(36px, 5vw, 64px) clamp(18px, 4vw, 56px) clamp(70px, 8vw, 110px);
}

.filters-panel,
.cart-panel {
  position: sticky;
  top: 96px;
}

.shop-panel,
.cart-panel {
  display: grid;
  gap: 22px;
  background:
    linear-gradient(145deg, rgba(108, 230, 255, 0.06), transparent 36%),
    var(--panel);
}

.catalog-panel {
  min-width: 0;
}

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

.catalog-count {
  margin: 0;
  color: var(--yellow);
  font-weight: 950;
  text-transform: uppercase;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(240, 184, 8, 0.34);
  border-radius: 0;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.48);
  color: var(--text);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(240, 184, 8, 0.12);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tabs button {
  min-height: 38px;
  padding-inline: 12px;
  font-size: 12px;
}

.terminal-note {
  border: 1px solid rgba(124, 255, 158, 0.26);
  padding: 16px;
  background: rgba(0, 0, 0, 0.32);
}

.terminal-note span {
  color: var(--green);
  font-weight: 950;
  text-transform: uppercase;
}

.terminal-note p {
  margin: 8px 0 0;
  font-size: 14px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid rgba(240, 184, 8, 0.16);
  padding-bottom: 14px;
}

.cart-item h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.cart-item p {
  margin: 0;
  font-size: 13px;
}

.qty-control {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.qty-control button {
  min-height: 38px;
  border: 0;
  clip-path: none;
}

.qty-control strong {
  text-align: center;
}

.remove-item {
  min-height: 34px;
  border-color: rgba(255, 77, 61, 0.36);
  color: var(--red);
  font-size: 12px;
}

.cart-summary {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.cart-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cart-summary strong {
  color: var(--green);
  font-size: 22px;
}

.cart-summary small {
  color: var(--metal-dim);
  line-height: 1.45;
}

.empty-cart {
  border: 1px dashed rgba(240, 184, 8, 0.28);
  padding: 18px;
  background: rgba(0, 0, 0, 0.26);
}

.empty-state {
  grid-column: 1 / -1;
}

.footer {
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #030303;
}

.footer img {
  width: 82px;
  height: 54px;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .shop-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  }

  .cart-panel {
    position: static;
    grid-column: 1 / -1;
  }
}

@media (max-width: 1000px) {
  .service-grid,
  .service-grid.expanded,
  .product-grid,
  .workshop-grid,
  .feature-grid,
  .feature-grid.wide,
  .route-grid,
  .timeline,
  .stream-band,
  .community,
  .split-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .icon-button {
    display: none;
  }

  .hero {
    min-height: min(620px, calc(100svh - 124px));
    align-items: end;
  }

  .hero-media {
    background-position: center;
  }

  .page-hero {
    min-height: 420px;
    background-position: center;
  }

  .service-grid,
  .service-grid.expanded,
  .product-grid,
  .workshop-grid,
  .feature-grid,
  .feature-grid.wide,
  .route-grid,
  .timeline,
  .stream-band,
  .community,
  .split-section,
  .shop-layout,
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
  }

  .shop-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 14px;
  }

  .nav {
    gap: 18px;
    font-size: 12px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  h2 {
    font-size: clamp(28px, 12vw, 44px);
  }

  .product-image {
    min-height: 220px;
  }
}
