body {
  font-family: sans-serif;
  margin: 0;
  background: #1a1a1a;
  color: white;
}

header {
  background: #000;
  padding: 20px;
  text-align: left;
}

.title-left {
  font-size: 1.5rem;
  font-weight: normal;
}

.title-bold {
  font-weight: bold;
}

.title-secondary {
  font-weight: normal;
}

.title-note {
  font-size: 0.8rem;
  color: #ccc;
  margin-left: 8px;
}

.armor-section {
  display: flex;
  flex-direction: column;
  margin: 2rem 0 2rem 2rem;
  background-color: #222;
  border-left: 12.5px solid;
  border-top: 4px solid #333;
  border-bottom: 4px solid #333;
  border-right: 4px solid #333;
  padding: 0.5rem 1rem 0.5rem 1rem;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  min-height: 48px;
}

.armor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.armor-card {
  background: #2a2a2a;
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  width: 480px;
  min-height: 180px;
  box-sizing: border-box;
}

.armor-img {
  max-width: 140px;
  max-height: 200px;
  border-radius: 8px;
  cursor: zoom-in;
}

.armor-details {
  text-align: left;
  flex: 1;
}

/* ---------- Armor page: CCG card layout (1024×1536 art; slot % from 667×1000 grid mockup) ---------- */
.armor-card.armor-card--ccg {
  container-type: inline-size;
  width: min(320px, 94vw);
  max-width: 320px;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  border: none;
  display: block;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center top;
}

.armor-card-ccg {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 1536;
  color: #f2f2f2;
  font-family: inherit;
}

/* Title — mockup rect (100,30) 463×55 → ~14.99% 3% 69.42%×5.5% */
.armor-card-ccg__title {
  position: absolute;
  left: 14.99%;
  top: 3%;
  width: 69.42%;
  height: 5.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(0.55rem, 3.6cqw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.08;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2%;
  box-sizing: border-box;
  color: #fff;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.9);
  z-index: 2;
  pointer-events: none;
}

/* Protection — (582,30) 55×55; inner span shifts digit (flex padding was ineffective) */
.armor-card-ccg__protection {
  position: absolute;
  left: 87.26%;
  top: 3%;
  width: 8.246%;
  height: 5.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: clamp(1rem, 6.8cqw, 1.75rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 2;
}

.armor-card-ccg__protection-value {
  display: inline-block;
  line-height: 1;
  transform: translateY(3px);
}

/* Rarity / location — centered in block; nudged up 5px */
.armor-card-ccg__meta {
  position: absolute;
  left: 16.49%;
  top: 14.9%;
  width: 66.72%;
  height: 7.7%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.2em;
  font-size: clamp(0.56rem, 3.15cqw, 0.84rem);
  line-height: 1.2;
  box-sizing: border-box;
  padding: 0 2%;
  transform: translateY(-6px);
  pointer-events: none;
  z-index: 1;
}

.armor-card-ccg__meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 0.45em;
  align-items: baseline;
  justify-content: center;
  width: 100%;
}

.armor-card-ccg__meta-label {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
}

.armor-card-ccg__meta-value {
  color: #fff;
  word-break: break-word;
}

/* Main armor image — (40,272) 585×415 → ~6% 27.2% 87.71%×41.5% */
.armor-card-ccg__thumb-wrap {
  position: absolute;
  left: 6%;
  top: 27.2%;
  width: 87.71%;
  height: 41.5%;
  display: block;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 1;
}

.armor-card-ccg__thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.armor-card-ccg__thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Type — (75,725) 510×35 → ~11.24% 72.5% 76.46%×3.5% */
.armor-card-ccg__type {
  position: absolute;
  left: 11.24%;
  top: 72.5%;
  width: 76.46%;
  height: 3.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(0.5rem, 2.75cqw, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #f4f4f4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2%;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 4;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 1),
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 0 1px rgba(0, 0, 0, 1);
}

/* Equipment — (72,805) 518×135 → ~10.79% 80.5% 77.66%×13.5%; strip art 794×208, hotspots are % of fitted image */
.armor-card-ccg__equipment {
  position: absolute;
  left: 10.79%;
  top: 80.5%;
  width: 77.66%;
  height: 13.5%;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shrink-wrap to the letterboxed image so hotspot % match visible pixels */
.armor-card-ccg__equipment-inner {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  flex: 0 1 auto;
  line-height: 0;
}

.armor-card-ccg__equipment-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.armor-card-ccg__equipment-hits {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.armor-card-ccg__hotspot {
  position: absolute;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: help;
  box-sizing: border-box;
}

.armor-card-ccg__hotspot:focus {
  outline: 2px solid rgba(255, 80, 80, 0.85);
  outline-offset: 1px;
}

.armor-card-ccg__hotspot:focus:not(:focus-visible) {
  outline: none;
}

/* Collected — ~95.75% anchor, then +5px down */
.armor-card.armor-card--ccg > .armor-card-ccg__collected-dot {
  top: calc(95.75% + 5px);
  right: auto;
  left: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  z-index: 6;
}

.rarity-value-Common { color: #ffffff; }
.rarity-value-Uncommon { color: #00ff00; }
.rarity-value-Rare { color: #3399ff; }
.rarity-value-Epic { color: #9966ff; }
.rarity-value-Legendary { color: #ffcc00; }
.rarity-value-Mythic { color: #ff3300; }
.rarity-value-Relic { color: #ff66cc; }
.rarity-value-None { color: #aaaaaa; }

.bar-Common { border-left: 12.5px solid #ffffff; }
.bar-Uncommon { border-left: 12.5px solid #00ff00; }
.bar-Rare { border-left: 12.5px solid #3399ff; }
.bar-Epic { border-left: 12.5px solid #9966ff; }
.bar-Legendary { border-left: 12.5px solid #ffcc00; }
.bar-Mythic { border-left: 12.5px solid #ff3300; }
.bar-Relic { border-left: 12.5px solid #ff66cc; }
.bar-None { border-left: 12.5px solid #aaaaaa; }

h2 {
  margin-bottom: 0.5rem;
}

.section-toggle {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: #ccc;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10;
}
.section-toggle:hover {
  color: white;
}
.armor-grid.collapsed {
  max-height: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Header/NavBar Styling */
header.navbar {
  --collect-accent: #79d8d2;
  background: #000;
  display: flex;
  align-items: center;
  padding: 0.5rem 2rem;
  border-bottom: 2px solid #333;
}

.logo-brand {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  margin-right: 2rem;
}

.logo {
  background: url("../images/empirez_logo.png") no-repeat center center;
  background-size: contain;
  width: 120px;
  height: 40px;
  background-color: #222;
}

.site-version {
  font-size: 0.8rem;
  font-weight: 600;
  color: #c8c8c8;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 2px 6px;
  white-space: nowrap;
  border: 1px solid #444;
  border-radius: 4px;
  background: #1a1a1a;
}


.navbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  align-items: center;
}

/* Nav pills: Collectables-style HUD strip + red accent bar (::before) on hover/active */
.navbar nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffe6e6;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.36rem 0.75rem 0.36rem 0.55rem;
  border: 1px solid rgba(255, 66, 66, 0.7);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(28, 10, 12, 0.95) 0%, rgba(12, 5, 8, 0.98) 100%);
  box-shadow:
    0 0 14px rgba(255, 42, 42, 0.22),
    inset 0 0 16px rgba(255, 42, 42, 0.17),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 0 2px rgba(0, 0, 0, 0.5);
  clip-path: polygon(
    8px 0%,
    calc(100% - 8px) 0%,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    0% calc(100% - 8px),
    0% 8px
  );
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.navbar nav a::before {
  content: "";
  flex-shrink: 0;
  width: 0;
  height: 26px;
  border-radius: 1px;
  background: linear-gradient(180deg, rgba(255, 112, 112, 0.95), rgba(255, 46, 46, 0.44));
  box-shadow: 0 0 10px rgba(255, 70, 70, 0.52);
  opacity: 0;
  transition: width 0.2s ease, opacity 0.2s ease;
}

.navbar nav a:hover::before,
.navbar nav a.active::before,
.navbar nav a:focus-visible::before {
  width: 5px;
  opacity: 1;
}

.navbar nav a:hover {
  border-color: rgba(255, 100, 100, 0.85);
  box-shadow:
    0 0 18px rgba(255, 60, 60, 0.3),
    inset 0 0 18px rgba(255, 42, 42, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 2px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.navbar nav a.active {
  background: linear-gradient(180deg, rgba(40, 12, 16, 0.98) 0%, rgba(18, 6, 9, 0.98) 100%);
  border-color: rgba(255, 110, 110, 0.88);
  color: #fff;
  box-shadow:
    0 0 20px rgba(255, 56, 56, 0.35),
    inset 0 0 18px rgba(255, 42, 42, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 2px rgba(0, 0, 0, 0.55);
}

/* Fade Page Transition */
.page {
  display: none;
  animation: fadein 0.5s ease forwards;
}

.page.active {
  display: block;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Coming Soon Pages */
.page-coming {
  color: #999;
  text-align: center;
  padding: 5rem 2rem;
  font-size: 2rem;
}

/* Armor page search / filters */
.armor-page-controls {
  padding: 1rem 2rem;
}

.armor-page-controls--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding: 0;
  margin: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.armor-page-controls--inline .armor-control-select {
  margin-left: 0;
}

.armor-search-input {
  padding: 0.5rem;
  width: min(250px, 100%);
}

.armor-control-select {
  margin-left: 1rem;
  padding: 0.5rem;
}

/* Shared content rows (collectables, weapons, bases, POI, tips) */
.armor-section-container {
  border-left: 4px solid #888;
}

.armor-section-container--muted {
  border-left-color: #aaa;
}

.weapons-section-melee {
  margin-top: 50px;
}

.poi-section-heading {
  padding: 0.5rem 1rem 0.5rem 2rem;
  margin-top: 2rem;
  background-color: #000;
}

.helm-grid {
  display: grid;
  grid-template-columns: repeat(10, 141px);
  grid-template-rows: repeat(22, 143px);
  gap: 1px;
  box-sizing: border-box;
  background-color: #0c0a0a;
  padding: 1rem;
  border: 1px solid rgba(255, 64, 64, 0.35);
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.65),
    0 0 24px rgba(255, 30, 30, 0.06);
}

/* Helm Collection — compact archive cards (main site only) */
#page-helm .helm-card {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: #e8dcd8;
  cursor: pointer;
  outline: none;
  transition: z-index 0s linear 0.2s;
}

#page-helm .helm-card:hover,
#page-helm .helm-card:focus-visible {
  z-index: 8;
  transition-delay: 0s;
}

#page-helm .helm-card__inner {
  --helm-red: rgba(255, 72, 72, 0.55);
  --helm-red-glow: rgba(255, 48, 48, 0.22);

  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 3px 4px 4px;
  gap: 3px;

  background:
    linear-gradient(165deg, rgba(28, 10, 12, 0.55) 0%, transparent 42%),
    linear-gradient(180deg, rgba(6, 4, 5, 0.98) 0%, rgba(10, 6, 8, 0.99) 100%);
  border: 1px solid var(--helm-red);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.75) inset,
    0 0 14px var(--helm-red-glow) inset,
    0 0 10px rgba(255, 32, 32, 0.12);

  clip-path: polygon(
    5px 0%,
    calc(100% - 5px) 0%,
    100% 5px,
    100% calc(100% - 5px),
    calc(100% - 5px) 100%,
    5px 100%,
    0% calc(100% - 5px),
    0% 5px
  );

  transform: translateY(0) scale(1);
  transform-origin: center center;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

#page-helm .helm-card:hover .helm-card__inner,
#page-helm .helm-card:focus-visible .helm-card__inner {
  --helm-red: rgba(255, 92, 92, 0.78);
  --helm-red-glow: rgba(255, 56, 56, 0.32);

  transform: translateY(-3px) scale(1.035);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8) inset,
    0 0 22px rgba(255, 40, 40, 0.28) inset,
    0 6px 18px rgba(0, 0, 0, 0.55),
    0 0 16px rgba(255, 45, 45, 0.28);
}

#page-helm .helm-card__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(40, 14, 18, 0.35), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.72) 100%);
  border: 1px solid rgba(255, 52, 52, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.85) inset,
    0 2px 8px rgba(0, 0, 0, 0.45);
}

#page-helm .helm-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.04) 2px,
    rgba(255, 255, 255, 0.04) 3px
  );
  mix-blend-mode: overlay;
}

#page-helm .helm-card .helm-thumb {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: min(128px, 100%);
  max-height: min(112px, 100%);
  object-fit: contain;
  object-position: center;
  border: none;
  box-sizing: border-box;
  display: block;
  transition: filter 0.22s ease, transform 0.22s ease;
}

#page-helm .helm-card:hover .helm-thumb,
#page-helm .helm-card:focus-visible .helm-thumb {
  filter: brightness(1.1) contrast(1.03);
  transform: scale(1.04);
}

#page-helm .helm-card__hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  text-align: center;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(4, 2, 3, 0.82) 55%,
    rgba(6, 2, 4, 0.92) 100%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
}

#page-helm .helm-card:hover .helm-card__hover,
#page-helm .helm-card:focus-visible .helm-card__hover {
  opacity: 1;
}

#page-helm .helm-card__hover-name {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.25;
  color: #f0e4e4;
  text-shadow:
    0 0 12px rgba(255, 60, 60, 0.45),
    0 0 1px rgba(0, 0, 0, 0.9);
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

#page-helm .helm-card__title {
  flex: 0 0 auto;
  min-height: 1.15rem;
  padding: 1px 2px 0;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  color: rgba(232, 210, 210, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid rgba(255, 48, 48, 0.15);
}

#page-helm .helm-card__collected-dot {
  top: 7px;
  left: 7px;
  z-index: 4;
}

@media (prefers-reduced-motion: reduce) {
  #page-helm .helm-card__inner,
  #page-helm .helm-card .helm-thumb,
  #page-helm .helm-card__hover {
    transition-duration: 0.01ms;
  }

  #page-helm .helm-card:hover .helm-card__inner,
  #page-helm .helm-card:focus-visible .helm-card__inner,
  #page-helm .helm-card:hover .helm-thumb,
  #page-helm .helm-card:focus-visible .helm-thumb {
    transform: none;
  }
}

#base-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 1rem 2rem;
}

#base-row .base-img {
  width: 313px;
  height: 175px;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.hidden {
  display: none;
}

/* Lightsabers Section */

#page-lightsabers {
  --collect-accent: #79d8d2;
  background:
    radial-gradient(circle at 50% 20%, rgba(100, 130, 255, 0.14), transparent 40%),
    radial-gradient(circle at 50% 88%, rgba(0, 230, 255, 0.08), transparent 45%),
    #000;
  padding-bottom: 2rem;
}

.saber-carousel-shell {
  position: relative;
  margin: 1rem auto 0;
  max-width: 1180px;
  padding: 0 58px;
}

.saber-carousel-stage {
  /* Swap background art: set to url("../images/your-file.png") or none */
  --saber-stage-bg-image: url("../images/saber-background.png");
  --active-blade-color: #66e9ff;
  position: relative;
  height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #030304;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.75),
    0 0 20px rgba(0, 0, 0, 0.45);
}

/* Cinematic overlays above optional BG image (sabers/nav sit above this) */
.saber-carousel-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--active-blade-color) 32%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.55) 0%, rgba(9, 10, 15, 0.65) 60%, rgba(3, 3, 4, 0.75) 100%);
}

.saber-stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #050507;
  background-image: var(--saber-stage-bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.saber-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 68px;
  border: 1px solid rgba(145, 180, 255, 0.5);
  background: rgba(10, 16, 28, 0.82);
  color: #dff1ff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  z-index: 40;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.saber-nav-left { left: 8px; }
.saber-nav-right { right: 8px; }

.saber-nav:hover {
  background: rgba(36, 62, 110, 0.88);
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 0 12px rgba(138, 190, 255, 0.35);
}

.saber-card {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 170px;
  height: 340px;
  transform-origin: center bottom;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    filter 0.35s ease;
  cursor: pointer;
  opacity: 0;
  filter: blur(1px);
  pointer-events: none;
  z-index: var(--saber-order, 50);
}

.saber-card.is-active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

.saber-card.is-near-left {
  transform: translate(calc(-50% - 175px), -50%) scale(0.86) rotateY(20deg);
  opacity: 0.82;
  filter: brightness(0.84);
  pointer-events: auto;
}

.saber-card.is-near-right {
  transform: translate(calc(-50% + 175px), -50%) scale(0.86) rotateY(-20deg);
  opacity: 0.82;
  filter: brightness(0.84);
  pointer-events: auto;
}

.saber-card.is-far-left {
  transform: translate(calc(-50% - 315px), -50%) scale(0.7) rotateY(28deg);
  opacity: 0.45;
  filter: brightness(0.66);
  pointer-events: auto;
}

.saber-card.is-far-right {
  transform: translate(calc(-50% + 315px), -50%) scale(0.7) rotateY(-28deg);
  opacity: 0.45;
  filter: brightness(0.66);
  pointer-events: auto;
}

.saber-card.is-hidden {
  transform: translate(-50%, -50%) scale(0.55);
  opacity: 0;
  pointer-events: none;
}

.saber-card.saber-ignited.is-active {
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--active-blade-color) 40%, transparent));
}

.saber-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100px;
  height: 240px;
}

.saber-wrapper img {
  margin-top: 0;
}

.saber-img {
  max-height: 210px;
  width: auto;
  max-width: 100%;
  z-index: 3;
}

.saber-info-panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.95rem 1.25rem;
  border: 1px solid rgba(120, 170, 255, 0.24);
  border-top: none;
  background: rgba(6, 9, 18, 0.92);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.58);
  text-align: center;
}

.saber-info-inner {
  max-width: 100%;
  margin: 0 auto;
}

.saber-info-title {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.saber-info-meta {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.saber-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.23rem 0.55rem;
  font-size: 0.78rem;
  border: 1px solid rgba(145, 190, 255, 0.35);
  color: #cfe6ff;
  background: rgba(30, 56, 98, 0.22);
}

@media (max-width: 1024px) {
  .saber-carousel-shell {
    padding: 0 46px;
  }

  .saber-card.is-near-left {
    transform: translate(calc(-50% - 145px), -50%) scale(0.82) rotateY(18deg);
  }

  .saber-card.is-near-right {
    transform: translate(calc(-50% + 145px), -50%) scale(0.82) rotateY(-18deg);
  }

  .saber-card.is-far-left {
    transform: translate(calc(-50% - 255px), -50%) scale(0.64) rotateY(24deg);
    opacity: 0.28;
  }

  .saber-card.is-far-right {
    transform: translate(calc(-50% + 255px), -50%) scale(0.64) rotateY(-24deg);
    opacity: 0.28;
  }
}

@media (max-width: 740px) {
  .saber-carousel-shell {
    padding: 0 36px;
  }

  .saber-carousel-stage {
    height: 460px;
  }

  .saber-nav {
    width: 34px;
    height: 58px;
    font-size: 1.35rem;
  }

  .saber-card {
    width: 138px;
    height: 300px;
  }

  .saber-card.is-near-left {
    transform: translate(calc(-50% - 108px), -50%) scale(0.74) rotateY(16deg);
    opacity: 0.72;
  }

  .saber-card.is-near-right {
    transform: translate(calc(-50% + 108px), -50%) scale(0.74) rotateY(-16deg);
    opacity: 0.72;
  }

  .saber-card.is-far-left,
  .saber-card.is-far-right {
    opacity: 0;
    pointer-events: none;
  }
}

@keyframes bladePulse {
  0%, 100% {
    box-shadow:
      0 0 3px 0.5px var(--blade-color),
      0 0 6px 1px var(--blade-color);
  }
  50% {
    box-shadow:
      0 0 4px 1px var(--blade-color),
      0 0 8px 2px var(--blade-color);
  }
}



@keyframes bladeFlicker {
  0%, 100% { opacity: 1; }
  40% { opacity: 0.97; }
  50% { opacity: 0.9; }
  60% { opacity: 0.95; }
  70% { opacity: 0.98; }
}



.blade {
  position: absolute;
  bottom: 100%;
  width: 10px;
  height: 0;
  background-color: var(--blade-color, #0ff);
  border-radius: 0;
  z-index: 2;
  opacity: 0;
  transition: height 0.3s ease-out;
}

.blade.active {
  height: 210px;
  opacity: 1;
  box-shadow:
    0 0 3px 1px var(--blade-color),
    0 0 6px 2px var(--blade-color),
    0 0 12px 3px var(--blade-color);
  animation:
    bladePulse 1.6s ease-in-out infinite,
    bladeFlicker 0.15s infinite;
}

.blade.rotated {
  transform: rotate(var(--blade-rotation));
}

.blade.rotated.active {
  transform: rotate(var(--blade-rotation)) scaleY(1);
}

.blade.angled {
  transform: rotate(var(--blade-angle)) scaleY(0);
  transform-origin: bottom;
}

.blade.angled.active {
  transform: rotate(var(--blade-angle)) scaleY(1);
}

/* Crossguard side blades */
.blade.crossguard-blade {
  position: absolute;
  width: 40px;
  height: 4px;
  top: 4%;
  opacity: 0;
  transform: scaleX(0);
  z-index: 2;
  background-color: var(--blade-color, #0ff);
  transition: transform 0.3s ease-out, opacity 0.2s ease-in;
}


.blade.crossguard-blade.active {
  opacity: 1;
  transform: scaleX(1);
  box-shadow:
    0 0 2px 1px var(--blade-color),
    0 0 4px 2px var(--blade-color),
    0 0 8px 3px var(--blade-color);
  animation:
    bladePulse 1.6s ease-in-out infinite,
    bladeFlicker 0.15s infinite;
}

.left-blade {
  left: -26px;
  transform-origin: right;
}

.right-blade {
  right: -26px;
  transform-origin: left;
}

.custom-blade {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: scaleY(0);
  transition: opacity 0.3s ease, transform 0.4s ease;
  height: 140px;
  width: auto;
}

.custom-blade.top {
  bottom: 100%;
  left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) scaleY(0);
}

.custom-blade.bottom {
  top: 100%;
  left: 50%;
  transform-origin: top center;
  transform: translateX(-50%) scaleY(0);
}

.custom-blade.active {
  opacity: 1;
  transform: translateX(-50%) scaleY(1);
}


.hilt-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: auto;
}

.blade.bottom-blade {
  position: absolute;
  transform-origin: top;
  transform: scaleY(0) translateX(-50%);
  left: 50%;
  top: auto;
  opacity: 0;
  transition: height 0.3s ease-out, opacity 0.3s;
  z-index: 2;
}

.blade.bottom-blade.active {
  height: 210px;
  opacity: 1;
  transform: scaleY(1) translateX(-50%);
  box-shadow:
    0 0 3px 1px var(--blade-color),
    0 0 6px 2px var(--blade-color),
    0 0 12px 3px var(--blade-color);
  animation:
    bladePulse 1.6s ease-in-out infinite,
    bladeFlicker 0.15s infinite;
}

.blade.darksaber-blade {
  width: 12px;
  background-color: black;
  border: 1px solid white;
  clip-path: polygon(
    45% 0%,
    55% 0%,
    100% 20%,
    100% 100%,
    0% 100%,
    0% 20%
  );
  opacity: 0;
  transition: height 0.3s ease-out, opacity 0.3s;
}

.blade.darksaber-blade.active {
  height: 210px;
  opacity: 1;
  animation: bladeFlicker 0.2s infinite;
}



/* Tooltip UNDER saber */
.saber-card .saber-wrapper::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 105%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

.saber-card .saber-wrapper:hover::after {
  opacity: 1;
}

#poi-row,
#poi-row-main {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 1rem 2rem;
}

#poi-row .armor-card,
#poi-row-main .armor-card {
  background: #2a2a2a;
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  width: 480px;
  min-height: 180px;
  box-sizing: border-box;
}

#poi-row .base-img,
#poi-row-main .base-img {
  max-width: 140px;
  max-height: 200px;
  border-radius: 8px;
  cursor: zoom-in;
}

#backpack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  padding: 1rem 2rem;
  align-items: flex-start;
}

/* ---------- Backpacks page: card layout (1536×1024 backpack_cardback.png; % in backpack-card-layout.json) ---------- */
.backpack-card.backpack-card--ccg {
  /* Design reference width 540px; scale down ~30% so frame + %-layout stay locked (same aspect ratio). */
  --bp-card-design-width: 540px;
  --bp-card-scale: 0.7;
  --bp-card-max-width: calc(var(--bp-card-design-width) * var(--bp-card-scale));
  container-type: inline-size;
  width: min(var(--bp-card-max-width), 94vw);
  max-width: var(--bp-card-max-width);
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background-color: #030508;
  box-shadow: none;
  border: none;
  display: block;
  /* Same box as .backpack-card-ccg (1536:1024); stretch to match %-positioned overlays */
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

.backpack-card-ccg {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  color: #eaf6ff;
  font-family: inherit;
}

.backpack-card-ccg__thumb {
  position: absolute;
  box-sizing: border-box;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: clamp(3px, 1.35cqw, 6px);
  border: 1px solid rgba(100, 210, 255, 0.55);
  background:
    linear-gradient(145deg, rgba(0, 24, 40, 0.5) 0%, rgba(0, 8, 16, 0.75) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.85) inset,
    0 0 14px rgba(0, 200, 255, 0.18) inset,
    0 0 20px rgba(0, 160, 255, 0.22),
    0 0 1px rgba(120, 230, 255, 0.4);
  --bp-thumb-cut: clamp(3px, 1.15cqw, 6px);
  clip-path: polygon(
    var(--bp-thumb-cut) 0%,
    calc(100% - var(--bp-thumb-cut)) 0%,
    100% var(--bp-thumb-cut),
    100% calc(100% - var(--bp-thumb-cut)),
    calc(100% - var(--bp-thumb-cut)) 100%,
    var(--bp-thumb-cut) 100%,
    0% calc(100% - var(--bp-thumb-cut)),
    0% var(--bp-thumb-cut)
  );
}

.backpack-card-ccg__lg {
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.backpack-card-ccg__lg > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  cursor: zoom-in;
}

.backpack-card-ccg__thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.backpack-card-ccg__title {
  position: absolute;
  box-sizing: border-box;
  display: block;
  text-align: left;
  font-size: clamp(0.52rem, 3.5cqw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.14;
  overflow: hidden;
  padding: 0.2em 3% 0.12em 0;
  word-break: break-word;
  color: #fff;
  text-shadow:
    0 0 10px rgba(0, 40, 80, 0.9),
    0 0 16px rgba(0, 200, 255, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.95);
  z-index: 1;
  pointer-events: none;
}

.backpack-card-ccg__slots {
  position: absolute;
  box-sizing: border-box;
  display: block;
  text-align: left;
  font-size: clamp(0.5rem, 3.2cqw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: rgba(220, 245, 255, 0.95);
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.95),
    0 0 12px rgba(0, 180, 255, 0.25);
  padding: 0.1em 3% 0 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.backpack-card-ccg__strap-slot {
  position: absolute;
  box-sizing: border-box;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1px, 0.55cqw, 3px);
  border: 1px solid rgba(80, 200, 255, 0.22);
  background: rgba(0, 8, 18, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65) inset,
    0 0 10px rgba(0, 160, 255, 0.08) inset;
}

.backpack-card-ccg__strap-icon {
  max-width: 92%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 4px rgba(0, 200, 255, 0.35));
}


.collected-dot {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 10px;
  height: 10px;
  background-color: #00ff00;
  border-radius: 50%;
  z-index: 3;
  border: 1px solid #000;
  box-shadow: 0 0 3px #0f0;
}

/* Flags — CCG-style cards (835×1056 cardback mockup → %) */
#page-flags #flag-grid.flag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 0.85rem 1rem;
  justify-items: center;
  padding: 0.5rem 2rem 2rem;
  box-sizing: border-box;
}

#page-flags .flag-card {
  container-type: inline-size;
  position: relative;
  display: block;
  width: min(280px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: #f2f2f2;
  cursor: pointer;
  outline: none;
}

#page-flags .flag-card__shell {
  position: relative;
  width: 100%;
  aspect-ratio: 835 / 1056;
  background-color: #0a0a0a;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center top;
  box-sizing: border-box;
}

/* Title — layout mockup 795×991 (red band y37–110, x56–740) */
#page-flags .flag-card__title {
  position: absolute;
  left: 7.044%;
  top: 3.7336%;
  width: 86.1635%;
  height: auto;
  bottom: calc(100% - 3.7336% - 7.4672%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding: 0 2%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: clamp(0.52rem, 3.4cqw, 0.88rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 2;
}

/* Thumbnail — mockup (red band y194–800, x52–742) */
#page-flags .flag-card__thumb-wrap {
  position: absolute;
  left: 6.5409%;
  top: 19.5762%;
  width: 86.9182%;
  height: auto;
  bottom: calc(100% - 19.5762% - 61.2513%);
  box-sizing: border-box;
  overflow: hidden;
  z-index: 1;
}

#page-flags .flag-card__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Faction subtitle — mockup (red band y864–902, x173–618) */
#page-flags .flag-card__faction {
  position: absolute;
  left: 21.761%;
  top: 87.1847%;
  width: 56.1006%;
  height: auto;
  bottom: calc(100% - 87.1847% - 3.9354%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding: 0 2%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: clamp(0.45rem, 2.65cqw, 0.72rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #f0f0f0;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.88);
  pointer-events: none;
  z-index: 2;
}

#page-flags .flag-card > .flag-card__collected-dot {
  top: 2.6%;
  left: auto;
  right: 3.8%;
  width: 7px;
  height: 7px;
  border-width: 1px;
  box-shadow: 0 0 2px rgba(0, 255, 0, 0.85);
  z-index: 4;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.contributors {
  font-size: 0.9rem;
  color: #ccc;
  white-space: nowrap;
}

.discord-btn img {
  width: 120px;
  height: 40px;
  display: block;
  filter: brightness(0) invert(1); /* Makes icon white on dark backgrounds */
  transition: transform 0.2s ease;
}

.discord-btn img:hover {
  transform: scale(1.1);
}

/* === Interactive Map Styles === */
.interactive-map-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.interactive-map-content {
  position: relative;
  width: 90%;
  height: 90%;
  background: #111;
  padding: 10px;
  border: 2px solid #666;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.interactive-map-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: #222;
  color: #fff;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.interactive-map-scroll {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  position: relative;
}

.draggable-map {
  transform-origin: top left;
  transition: transform 0.1s ease;
  will-change: transform;
  user-select: none;
  pointer-events: all;
}

.map-hotspot {
  position: absolute;
  border: 2px solid transparent;
  box-sizing: border-box;
  pointer-events: auto;
  transition: border 0.2s ease-in-out;
}

.map-hotspot:hover {
  border: 4px solid rgba(255, 255, 0, 0.8);
  animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 10px 6px rgba(255, 255, 0, 0.3);
  }
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.95);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid #ccc;
  box-shadow: 0 0 10px #000;
}

.tip-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid #444;
  border-radius: 6px;
  background: #111;
  margin: 20px 0;
  padding: 20px;
  flex-wrap: nowrap;
}

.tip-content {
  width: 28%;
  margin-right: 20px;
}

.tip-content h3 {
  margin: 0;
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #fff;
}

.tip-content p {
  margin: 0.5rem 0 0 0;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tip-gallery {
  width: 72%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.tip-gallery img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #444;
}

.tip-gallery img:hover {
  outline: 2px solid #aaa;
}

.zoom-container {
  position: relative;
  display: inline-block;
}

.zoom-container img {
  display: block;
  max-width: none;
}

.weapon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

.weapon-card {
  background-color: #1c1c1c;
  border-radius: 12px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.5);
  padding: 20px;
  width: 380px;
  color: white;
  display: flex;
  flex-direction: column;
}

.weapon-header {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap; /* Allows name and ammo to break gracefully */
}

.weapon-thumb img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border: 2px solid #444;
  border-radius: 6px;
  margin-bottom: 15px;
}

.weapon-slots {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.weapon-slots img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border: 1px solid #444;
}

.weapon-accessories {
  margin-bottom: 10px;
  font-size: 14px;
  padding-left: 20px;
  margin: 5px 0;
  line-height: 1.3;
}

.mag-label {
  margin-top: 12px;
  font-weight: bold;
}

.weapon-magazines {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mag-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mag-block img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.mag-name {
  font-size: 13px;
  margin-top: 4px;
}

#weapons-row-main,
#weapons-row-melee {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch; /* NEW: makes all cards same height */
}


.weapon-section-title {
  font-size: 1.5em;
  color: white;
  margin: 30px 0 10px;
  border-left: 4px solid #888;
  padding-left: 10px;
  width: 100%;
}

/* ========== Collectables-style HUD shell (shared page chrome) ========== */

#page-collectables,
#page-armor,
#page-helm,
#page-backpacks,
#page-vehicles,
#page-weapons,
#page-flags,
#page-bases,
#page-vendors,
#page-poi,
#page-servertips {
  background: #050505;
  --collect-accent: #79d8d2;
}

#page-collectables .collectables-master-header,
#page-armor .collectables-master-header,
#page-helm .collectables-master-header,
#page-lightsabers .collectables-master-header,
#page-backpacks .collectables-master-header,
#page-vehicles .collectables-master-header,
#page-weapons .collectables-master-header,
#page-flags .collectables-master-header,
#page-bases .collectables-master-header,
#page-vendors .collectables-master-header,
#page-poi .collectables-master-header,
#page-servertips .collectables-master-header {
  margin: 0.7rem 2rem 0.15rem;
  padding: 0.5rem 0.9rem 0.62rem;
  border: 1px solid rgba(255, 64, 64, 0.6);
  background:
    linear-gradient(180deg, rgba(20, 8, 10, 0.95) 0%, rgba(10, 4, 6, 0.96) 100%);
  box-shadow:
    0 0 16px rgba(255, 52, 52, 0.16),
    inset 0 0 16px rgba(255, 40, 40, 0.14),
    inset 0 0 0 1px rgba(0, 0, 0, 0.6);
  clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0% calc(100% - 10px), 0% 10px);
}

#page-armor .armor-sets-master-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  width: 100%;
}

#page-armor .armor-sets-master-row .collectables-master-inner {
  flex: 1 1 200px;
  min-width: 0;
}

#page-armor #armor-sections {
  padding: 0.35rem 2rem 2rem;
  box-sizing: border-box;
}

#page-collectables .collectables-master-inner,
#page-armor .collectables-master-inner,
#page-helm .collectables-master-inner,
#page-lightsabers .collectables-master-inner,
#page-backpacks .collectables-master-inner,
#page-vehicles .collectables-master-inner,
#page-weapons .collectables-master-inner,
#page-flags .collectables-master-inner,
#page-bases .collectables-master-inner,
#page-vendors .collectables-master-inner,
#page-poi .collectables-master-inner,
#page-servertips .collectables-master-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

#page-collectables .collectables-master-kicker,
#page-armor .collectables-master-kicker,
#page-helm .collectables-master-kicker,
#page-lightsabers .collectables-master-kicker,
#page-backpacks .collectables-master-kicker,
#page-vehicles .collectables-master-kicker,
#page-weapons .collectables-master-kicker,
#page-flags .collectables-master-kicker,
#page-bases .collectables-master-kicker,
#page-vendors .collectables-master-kicker,
#page-poi .collectables-master-kicker,
#page-servertips .collectables-master-kicker {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--collect-accent);
  border: 1px solid color-mix(in srgb, var(--collect-accent) 42%, transparent);
  background: rgba(20, 44, 44, 0.18);
  padding: 0.14rem 0.42rem;
}

#page-collectables .collectables-master-header .title-bold,
#page-armor .collectables-master-header .title-bold,
#page-helm .collectables-master-header .title-bold,
#page-lightsabers .collectables-master-header .title-bold,
#page-backpacks .collectables-master-header .title-bold,
#page-vehicles .collectables-master-header .title-bold,
#page-weapons .collectables-master-header .title-bold,
#page-flags .collectables-master-header .title-bold,
#page-bases .collectables-master-header .title-bold,
#page-vendors .collectables-master-header .title-bold,
#page-poi .collectables-master-header .title-bold,
#page-servertips .collectables-master-header .title-bold {
  font-size: 1.6rem;
  letter-spacing: 0.03em;
}

#page-collectables .collectables-master-header .title-secondary,
#page-armor .collectables-master-header .title-secondary,
#page-helm .collectables-master-header .title-secondary,
#page-lightsabers .collectables-master-header .title-secondary,
#page-backpacks .collectables-master-header .title-secondary,
#page-vehicles .collectables-master-header .title-secondary,
#page-weapons .collectables-master-header .title-secondary,
#page-flags .collectables-master-header .title-secondary,
#page-bases .collectables-master-header .title-secondary,
#page-vendors .collectables-master-header .title-secondary,
#page-poi .collectables-master-header .title-secondary,
#page-servertips .collectables-master-header .title-secondary {
  margin: 0;
  color: #dfcbcb;
  font-size: 0.92rem;
  line-height: 1.35;
  max-width: 980px;
}

#page-collectables #collectable-row.armor-section-container {
  border-left: none;
}

#page-collectables #collectable-row {
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  padding: 1rem 2rem 2rem;
  box-sizing: border-box;
}

#page-collectables .collectable-section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
}

#page-collectables .collectable-section + .collectable-section {
  margin-top: 1.1rem;
}

#page-collectables .collectable-section-grid {
  display: grid;
  /* Fixed-width columns: cards stay 560px; leftover space on the right; wrap to next row */
  grid-template-columns: repeat(auto-fill, 560px);
  justify-content: start;
  gap: 1rem 1.25rem;
  align-items: start;
  box-sizing: border-box;
}

#page-collectables .collectable-section--collapsed .collectable-section-grid {
  display: none;
}

#page-collectables .collectable-section-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  margin-top: 0.1rem;
  min-height: 42px;
  padding: 0.34rem 0.86rem;
  box-sizing: border-box;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 66, 66, 0.7);
  background:
    linear-gradient(180deg, rgba(28, 10, 12, 0.95) 0%, rgba(12, 5, 8, 0.98) 100%);
  box-shadow:
    0 0 14px rgba(255, 42, 42, 0.22),
    inset 0 0 16px rgba(255, 42, 42, 0.17),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 0 2px rgba(0, 0, 0, 0.5);
  clip-path: polygon(
    8px 0%,
    calc(100% - 8px) 0%,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    0% calc(100% - 8px),
    0% 8px
  );
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

#page-collectables .collectable-section-header:hover {
  border-color: rgba(255, 100, 100, 0.85);
  box-shadow:
    0 0 18px rgba(255, 60, 60, 0.3),
    inset 0 0 18px rgba(255, 42, 42, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 2px rgba(0, 0, 0, 0.5);
}

#page-collectables .collectable-section-header:focus {
  outline: none;
}

#page-collectables .collectable-section-header:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--collect-accent) 75%, #fff 25%);
  outline-offset: 3px;
}

#page-collectables .collectable-section-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 200, 200, 0.88);
  transition: transform 0.22s ease;
}

#page-collectables .collectable-section-chevron svg {
  display: block;
}

#page-collectables .collectable-section--collapsed .collectable-section-chevron {
  transform: rotate(-90deg);
}

#page-collectables .collectable-section-accent {
  width: 5px;
  height: 28px;
  background: linear-gradient(180deg, rgba(255, 112, 112, 0.95), rgba(255, 46, 46, 0.44));
  box-shadow: 0 0 10px rgba(255, 70, 70, 0.52);
}

#page-collectables .collectable-section-main {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

#page-collectables .collectable-section-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--collect-accent) 70%, #ff8a8a 30%);
  filter: drop-shadow(0 0 5px rgba(95, 210, 205, 0.4));
}

#page-collectables .collectable-section-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#page-collectables .collectable-section-title {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffe6e6;
  text-shadow: 0 0 6px rgba(255, 86, 86, 0.24);
}

#page-collectables .collectable-section-line {
  flex: 1;
  height: 1px;
  margin-left: 0.35rem;
  background: linear-gradient(
    90deg,
    rgba(255, 72, 72, 0.78) 0%,
    color-mix(in srgb, var(--collect-accent) 50%, transparent) 35%,
    rgba(255, 72, 72, 0.08) 100%
  );
}

#page-collectables .collectable-card-glow {
  width: 560px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  filter: drop-shadow(0 0 4px rgba(255, 42, 42, 0.25));
  transition: filter 0.25s ease;
}

#page-collectables .collectable-card-glow:hover {
  filter: drop-shadow(0 0 8px rgba(255, 60, 60, 0.45));
}

#page-collectables .collectable-card {
  --hud-red: #ff2a2a;
  --hud-red-dim: rgba(255, 42, 42, 0.45);

  display: flex;
  flex-direction: row;
  align-items: flex-start;
  min-height: 200px;
  height: auto;
  box-sizing: border-box;

  /* Push thumb + text into the “safe” HUD area; room for bottom art */
  padding-top: 2.15rem;
  padding-bottom: 1.55rem;
  padding-right: 8px;

  /* Full 1200×400 art visible; letterbox uses background-color */
  background-color: #070506;
  background-image:
    linear-gradient(145deg, rgba(40, 8, 12, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.15) 100%),
    url("../images/panelbg01.png");
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: 1px solid var(--hud-red-dim);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6) inset,
    0 0 24px rgba(255, 30, 30, 0.12) inset,
    0 1px 0 rgba(255, 80, 80, 0.15);

  clip-path: polygon(
    8px 0%,
    calc(100% - 8px) 0%,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    0% calc(100% - 8px),
    0% 8px
  );
}

#page-collectables .collectable-card--collected {
  border-color: rgba(80, 220, 120, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6) inset,
    0 0 28px rgba(0, 80, 40, 0.18) inset,
    0 0 12px rgba(50, 200, 100, 0.12);
}

#page-collectables .collectable-card--collected.collectable-card {
  background-color: #070506;
  background-image:
    linear-gradient(145deg, rgba(40, 8, 12, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.15) 100%),
    url("../images/panelbg01.png");
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

#page-collectables .collectable-thumb-frame {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  /* Clear left HUD border artwork */
  margin: 0 0 8px 26px;
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 42, 42, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.9) inset,
    0 0 12px rgba(255, 40, 40, 0.15) inset;
}

#page-collectables .collectable-card--collected .collectable-thumb-frame {
  border-color: rgba(255, 90, 90, 0.65);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.9) inset,
    0 0 18px rgba(255, 50, 50, 0.35) inset,
    0 0 10px rgba(255, 60, 60, 0.2);
}

#page-collectables .collectable-lightbox-link {
  display: block;
  line-height: 0;
  cursor: zoom-in;
}

#page-collectables .collectable-thumb {
  display: block;
  /* ~25% smaller than before for better HUD alignment */
  width: min(130px, 24vw);
  height: min(130px, 24vw);
  max-width: 145px;
  max-height: 145px;
  object-fit: contain;
  background: #050508;
}

#page-collectables .collectable-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 12px 8px 8px;
  gap: 0;
}

#page-collectables .collectable-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 42, 42, 0.22);
}

#page-collectables .collectable-card--collected .collectable-header {
  border-bottom-color: rgba(60, 200, 120, 0.22);
}

#page-collectables .collectable-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f2f2f2;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

#page-collectables .collectable-collected-dot {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.32em;
  width: 10px;
  height: 10px;
  background-color: #00ff00;
  border-radius: 50%;
  border: 1px solid #000;
  box-shadow: 0 0 3px #0f0;
}

#page-collectables .collectable-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  margin-top: -2px;
}

#page-collectables .collectable-data-row {
  display: grid;
  grid-template-columns: minmax(80px, 100px) 1fr;
  gap: 6px 10px;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#page-collectables .collectable-data-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#page-collectables .collectable-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7a7e;
  line-height: 1.25;
}

#page-collectables .collectable-value {
  font-size: 0.8rem;
  color: #ececec;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ========== Vehicles page (database + collapsible sections) ========== */

#page-vehicles {
  --vehicle-red: #ff2e2e;
  --vehicle-red-dim: rgba(255, 46, 46, 0.5);
  --collect-accent: #ff9a9a;
}

#page-vehicles #vehicle-row.armor-section-container {
  border-left: none;
}

#page-vehicles #vehicle-row {
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  padding: 1rem 2rem 2rem;
  box-sizing: border-box;
}

#page-vehicles .vehicle-section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
}

#page-vehicles .vehicle-section + .vehicle-section {
  margin-top: 1.1rem;
}

#page-vehicles .vehicle-section-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

#page-vehicles .vehicle-section--collapsed .vehicle-section-grid {
  display: none;
}

#page-vehicles .vehicle-section-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  margin-top: 0.1rem;
  min-height: 40px;
  padding: 0.42rem 0.9rem;
  box-sizing: border-box;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, #b01018 0%, #7c0d14 48%, #5a0a10 100%);
  box-shadow:
    0 1px 0 rgba(255, 120, 120, 0.22) inset,
    0 -1px 0 rgba(0, 0, 0, 0.35) inset;
  transition:
    filter 0.2s ease,
    background 0.2s ease;
}

#page-vehicles .vehicle-section-header:hover {
  filter: brightness(1.08);
}

#page-vehicles .vehicle-section-header:focus {
  outline: none;
}

#page-vehicles .vehicle-section-header:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--collect-accent) 75%, #fff 25%);
  outline-offset: 3px;
}

#page-vehicles .vehicle-section-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  transition: transform 0.22s ease;
}

#page-vehicles .vehicle-section-chevron svg {
  display: block;
}

#page-vehicles .vehicle-section--collapsed .vehicle-section-chevron {
  transform: rotate(-90deg);
}

#page-vehicles .vehicle-section-accent {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

#page-vehicles .vehicle-section-main {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

#page-vehicles .vehicle-section-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  filter: none;
}

#page-vehicles .vehicle-section-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#page-vehicles .vehicle-section-title {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: none;
}

#page-vehicles .vehicle-section-line {
  flex: 1;
  height: 1px;
  margin-left: 0.35rem;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
}

#page-vehicles .vehicle-card-glow {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 0 6px rgba(255, 40, 45, 0.12);
  transition: box-shadow 0.25s ease;
}

#page-vehicles .vehicle-card-glow:hover {
  box-shadow: 0 0 10px rgba(255, 55, 60, 0.2);
}

#page-vehicles .vehicle-card {
  --vehicle-corner: 22px;
  --vehicle-corner-th: 2px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  min-height: 168px;
  box-sizing: border-box;
  padding: 1.05rem 1rem 1rem 1.05rem;
  isolation: isolate;
  background-color: #121316;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.018) 3px,
      rgba(255, 255, 255, 0.018) 4px
    ),
    linear-gradient(180deg, #1a1b20 0%, #111114 42%, #15151a 100%);
  background-repeat: repeat, no-repeat;
  border: 1px solid rgba(110, 108, 118, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.75) inset,
    0 0 28px rgba(255, 35, 40, 0.06) inset;
}

#page-vehicles .vehicle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 52, 58, 0.98), rgba(255, 130, 120, 0.45)) left top /
      var(--vehicle-corner) var(--vehicle-corner-th) no-repeat,
    linear-gradient(180deg, rgba(255, 52, 58, 0.98), rgba(255, 130, 120, 0.45)) left top /
      var(--vehicle-corner-th) var(--vehicle-corner) no-repeat,
    linear-gradient(270deg, rgba(255, 52, 58, 0.98), rgba(255, 130, 120, 0.45)) right top /
      var(--vehicle-corner) var(--vehicle-corner-th) no-repeat,
    linear-gradient(180deg, rgba(255, 52, 58, 0.98), rgba(255, 130, 120, 0.45)) right top /
      var(--vehicle-corner-th) var(--vehicle-corner) no-repeat,
    linear-gradient(90deg, rgba(255, 52, 58, 0.98), rgba(255, 130, 120, 0.45)) left bottom /
      var(--vehicle-corner) var(--vehicle-corner-th) no-repeat,
    linear-gradient(0deg, rgba(255, 52, 58, 0.98), rgba(255, 130, 120, 0.45)) left bottom /
      var(--vehicle-corner-th) var(--vehicle-corner) no-repeat,
    linear-gradient(270deg, rgba(255, 52, 58, 0.98), rgba(255, 130, 120, 0.45)) right bottom /
      var(--vehicle-corner) var(--vehicle-corner-th) no-repeat,
    linear-gradient(0deg, rgba(255, 52, 58, 0.98), rgba(255, 130, 120, 0.45)) right bottom /
      var(--vehicle-corner-th) var(--vehicle-corner) no-repeat;
  opacity: 0.8;
}

#page-vehicles .vehicle-thumb-wrap {
  position: relative;
  z-index: 1;
  flex: 0 0 clamp(176px, 31%, 300px);
  max-width: 320px;
  align-self: center;
  padding: 5px;
  margin-right: 6px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(95, 94, 102, 0.65);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.75) inset,
    0 0 16px rgba(255, 45, 50, 0.1),
    0 0 12px rgba(255, 40, 45, 0.08) inset;
}

#page-vehicles .vehicle-thumb-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050508;
  overflow: hidden;
}

#page-vehicles .vehicle-lightbox-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  cursor: zoom-in;
}

#page-vehicles .vehicle-gallery {
  width: 100%;
  height: 100%;
}

#page-vehicles .vehicle-gallery-slide {
  display: none;
}

#page-vehicles .vehicle-gallery-slide.vehicle-gallery-slide--trigger {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  cursor: zoom-in;
}

#page-vehicles .vehicle-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.vehicle-gallery-modal .lg-sub-html {
  text-align: right;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 100%);
  padding: 0.5rem 0.7rem 0.55rem;
}

.vehicle-gallery-modal .vehicle-gallery-overlay {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #f3f3f3;
  background: rgba(5, 5, 8, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.45rem;
}

#page-vehicles .vehicle-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.15rem 0.25rem 0.15rem 0.65rem;
}

#page-vehicles .vehicle-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #f4f4f5;
  line-height: 1.2;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.42rem;
}

#page-vehicles .vehicle-desc {
  margin: 0;
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #b8aeb2;
  text-align: left;
}

#page-vehicles .vehicle-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  margin-top: auto;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#page-vehicles .vehicle-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
}

#page-vehicles .vehicle-meta-icon {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: rgba(220, 222, 230, 0.9);
}

#page-vehicles .vehicle-meta-svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#page-vehicles .vehicle-meta-value {
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #eeecec;
  letter-spacing: 0.02em;
}

#page-vehicles .vehicle-page-error {
  margin: 1rem 2rem;
  color: #ffb4b4;
  font-size: 0.95rem;
}

@media (max-width: 620px) {
  #page-collectables .collectables-master-header,
  #page-armor .collectables-master-header,
  #page-helm .collectables-master-header,
  #page-lightsabers .collectables-master-header,
  #page-backpacks .collectables-master-header,
  #page-vehicles .collectables-master-header,
  #page-weapons .collectables-master-header,
  #page-flags .collectables-master-header,
  #page-bases .collectables-master-header,
  #page-vendors .collectables-master-header,
  #page-poi .collectables-master-header,
  #page-servertips .collectables-master-header {
    margin: 0.55rem 1rem 0.15rem;
    padding: 0.45rem 0.68rem 0.56rem;
  }

  #page-collectables .collectables-master-header .title-bold,
  #page-armor .collectables-master-header .title-bold,
  #page-helm .collectables-master-header .title-bold,
  #page-lightsabers .collectables-master-header .title-bold,
  #page-backpacks .collectables-master-header .title-bold,
  #page-vehicles .collectables-master-header .title-bold,
  #page-weapons .collectables-master-header .title-bold,
  #page-flags .collectables-master-header .title-bold,
  #page-bases .collectables-master-header .title-bold,
  #page-vendors .collectables-master-header .title-bold,
  #page-poi .collectables-master-header .title-bold,
  #page-servertips .collectables-master-header .title-bold {
    font-size: 1.3rem;
  }

  #page-collectables .collectables-master-header .title-secondary,
  #page-helm .collectables-master-header .title-secondary,
  #page-lightsabers .collectables-master-header .title-secondary,
  #page-backpacks .collectables-master-header .title-secondary,
  #page-vehicles .collectables-master-header .title-secondary,
  #page-weapons .collectables-master-header .title-secondary,
  #page-flags .collectables-master-header .title-secondary,
  #page-bases .collectables-master-header .title-secondary,
  #page-vendors .collectables-master-header .title-secondary,
  #page-poi .collectables-master-header .title-secondary,
  #page-servertips .collectables-master-header .title-secondary {
    font-size: 0.84rem;
  }

  #page-armor .armor-sets-master-row {
    flex-direction: column;
    align-items: stretch;
  }

  #page-armor .armor-page-controls--inline {
    justify-content: flex-start;
  }

  #page-collectables #collectable-row {
    padding: 0.75rem 1rem 1.5rem;
    gap: 1.15rem;
  }

  #page-collectables .collectable-section-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  #page-collectables .collectable-section-header {
    min-height: 38px;
    padding: 0.3rem 0.65rem;
    gap: 0.45rem;
  }

  #page-collectables .collectable-section-title {
    font-size: 0.76rem;
    letter-spacing: 0.11em;
  }

  #page-collectables .collectable-card-glow {
    width: 100%;
    max-width: 560px;
  }

  #page-collectables .collectable-card {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-top: 2.25rem;
    padding-bottom: 1rem;
  }

  #page-collectables .collectable-thumb-frame {
    margin: 0 auto 10px;
    align-self: center;
  }

  #page-collectables .collectable-thumb {
    width: min(135px, 52vw);
    height: min(135px, 52vw);
    max-width: 150px;
    max-height: 150px;
  }

  #page-collectables .collectable-data-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #page-vehicles #vehicle-row {
    padding: 0.75rem 1rem 1.5rem;
    gap: 1.15rem;
  }

  #page-vehicles .vehicle-section-header {
    min-height: 38px;
    padding: 0.3rem 0.65rem;
    gap: 0.45rem;
  }

  #page-vehicles .vehicle-section-title {
    font-size: 0.76rem;
    letter-spacing: 0.11em;
  }

  #page-vehicles .vehicle-card {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 1rem 0.75rem 1.1rem;
  }

  #page-vehicles .vehicle-thumb-wrap {
    flex: 0 0 auto;
    align-self: center;
    max-width: none;
    width: min(100%, 320px);
    margin: 0 auto 0.35rem;
  }
}


