:root {
  --bg: #05070d;
  --panel: rgba(255,255,255,0.045);
  --panel-strong: rgba(0,0,0,0.38);
  --line: rgba(255,255,255,0.10);
  --text: #f7f7fb;
  --muted: #9aa4b2;
  --red: #dc2626;
  --red-soft: rgba(220,38,38,0.18);
  --blue: #60a5fa;
  --blue-soft: rgba(37,99,235,0.18);
  --gold: #fbbf24;
  --green: #34d399;
  --shadow: 0 24px 80px rgba(0,0,0,0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 48px 48px;
}

.background-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.42;
  z-index: -2;
}

.glow-red {
  top: -120px;
  left: -120px;
  background: rgba(127, 29, 29, 0.8);
}

.glow-blue {
  top: -80px;
  right: -130px;
  background: rgba(30, 64, 175, 0.55);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,0.46);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-content {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(220,38,38,0.75), rgba(59,130,246,0.55));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 12px 35px rgba(127,29,29,0.35);
  font-size: 20px;
}

.brand-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: #cbd5e1;
}

.main-nav a {
  transition: color .2s ease;
}

.main-nav a:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  color: white;
  background: var(--panel);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-red {
  background: var(--red);
  color: white;
  box-shadow: 0 16px 42px rgba(127,29,29,0.35);
}

.btn-red:hover {
  background: #ef4444;
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  border-color: var(--line);
  color: white;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
}

.btn-copy {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border-color: var(--line);
  color: white;
  margin-top: 18px;
}

.hero {
  padding: 88px 0 42px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 44px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--red-soft);
  border: 1px solid rgba(248,113,113,0.20);
  color: #fecaca;
}

.hero h1 {
  margin: 24px 0 0;
  font-size: clamp(48px, 7vw, 84px);
  line-height: .94;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: inline-block;
  background: linear-gradient(90deg, #fecaca, #fff, #bfdbfe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p,
.section-header p,
.guide-layout p,
.cta-card p {
  color: #cbd5e1;
  line-height: 1.72;
}

.hero p {
  font-size: 19px;
  max-width: 650px;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.server-panel,
.ranking-table,
.guide-card,
.cta-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.panel-visual {
  height: 265px;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(220,38,38,0.28), transparent 48%),
    linear-gradient(135deg, rgba(30,41,59,.9), rgba(7,10,18,.98));
}

.lightsaber {
  position: absolute;
  width: 235px;
  height: 4px;
  filter: blur(.1px);
  box-shadow: 0 0 16px currentColor, 0 0 34px currentColor;
}

.lightsaber.red {
  color: #f87171;
  background: #f87171;
  transform: rotate(45deg);
}

.lightsaber.blue {
  color: #93c5fd;
  background: #93c5fd;
  transform: rotate(-45deg);
}

.crest {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.035);
  font-size: 32px;
  font-weight: 950;
  letter-spacing: .12em;
}

.panel-body {
  padding: 24px;
}

.server-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

small {
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}

.online {
  color: var(--green);
  font-size: 26px;
}

.status-pill {
  border: 1px solid rgba(52,211,153,0.25);
  background: rgba(52,211,153,0.12);
  color: #bbf7d0;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.server-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.server-info-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
  border-radius: 18px;
}

code {
  color: white;
  font-family: "Consolas", "Courier New", monospace;
}

.copy-message {
  min-height: 20px;
  color: var(--green);
  font-size: 14px;
  text-align: center;
}

.stats {
  padding: 18px 0 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card,
.event-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(16px);
}

.stat-card span {
  font-size: 24px;
  margin-bottom: 12px;
  display: inline-block;
}

.stat-card strong {
  display: block;
  font-size: 30px;
}

.section {
  padding: 70px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 30px;
}

.section-header.simple {
  align-items: flex-start;
}

.section h2 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 16px 0 0;
}

.section-header p {
  max-width: 760px;
}

.red-text {
  color: #fecaca;
}

.blue-text {
  color: #bfdbfe;
  background: var(--blue-soft);
  border-color: rgba(147,197,253,0.22);
}

.ranking-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.tab {
  border: 0;
  color: white;
  background: transparent;
  border-radius: 13px;
  padding: 12px 16px;
  font-weight: 850;
  cursor: pointer;
}

.tab.active {
  background: var(--red);
}

.ranking-head,
.ranking-row {
  display: grid;
  grid-template-columns: 80px 1fr 120px 120px 120px 130px;
  gap: 16px;
  align-items: center;
}

.ranking-head {
  padding: 17px 22px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.ranking-row {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row:hover {
  background: rgba(255,255,255,0.035);
}

.rank-number {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  font-weight: 950;
}

.rank-number.gold {
  color: #fde68a;
  border-color: rgba(251,191,36,0.28);
  background: rgba(251,191,36,0.13);
}

.player-name {
  font-weight: 900;
  font-size: 18px;
}

.player-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
}

.badge.jedi {
  color: #bfdbfe;
  background: rgba(37,99,235,0.14);
  border-color: rgba(147,197,253,0.22);
}

.badge.sith {
  color: #fecaca;
  background: rgba(220,38,38,0.14);
  border-color: rgba(248,113,113,0.22);
}

.badge.merc {
  color: #fde68a;
  background: rgba(251,191,36,0.12);
  border-color: rgba(251,191,36,0.22);
}

.credits {
  color: #fde68a;
  font-weight: 900;
}

.loading,
.error {
  padding: 28px;
  color: var(--muted);
}

.error {
  color: #fecaca;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.event-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(147,197,253,0.22);
  background: rgba(37,99,235,0.16);
  font-size: 23px;
  margin-bottom: 18px;
}

.event-card h3 {
  margin: 0;
  font-size: 22px;
}

.event-card p {
  color: var(--muted);
  line-height: 1.65;
}

.reward {
  display: inline-block;
  color: #fde68a;
  border: 1px solid rgba(251,191,36,0.22);
  background: rgba(251,191,36,0.11);
  padding: 9px 12px;
  border-radius: 14px;
  font-weight: 850;
}

.guide-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 34px;
  align-items: start;
}

.guide-card {
  padding: 24px;
}

.guide-card ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: steps;
  display: grid;
  gap: 14px;
}

.guide-card li {
  counter-increment: steps;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 18px 62px;
  position: relative;
  color: #e2e8f0;
}

.guide-card li::before {
  content: counter(steps);
  position: absolute;
  left: 18px;
  top: 13px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--red-soft);
  border: 1px solid rgba(248,113,113,0.2);
  color: #fecaca;
  font-weight: 900;
}

.cta-card {
  padding: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  background:
    linear-gradient(135deg, rgba(127,29,29,0.34), rgba(0,0,0,0.42), rgba(30,64,175,0.25));
}

.cta-card h2 {
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  background: rgba(0,0,0,0.35);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-note {
  color: #64748b;
}

@media (max-width: 940px) {
  .header-discord {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(0,0,0,0.92);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 10px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
    border-radius: 14px;
  }

  .main-nav a:hover {
    background: rgba(255,255,255,0.06);
  }

  .hero,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .stats,
  .event-grid,
  .quest-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .ranking-head {
    display: none;
  }

  .ranking-row {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }

  .ranking-row > span:not(:first-child):not(.player-cell) {
    grid-column: 2;
  }

  .mobile-label {
    color: var(--muted);
    margin-right: 6px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    padding-top: 58px;
  }

  .stats,
  .event-grid,
  .quest-grid {
    grid-template-columns: 1fr;
  }

  .server-info-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .ranking-tabs,
  .cta-card {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .cta-card {
    padding: 24px;
  }
}


.gold-text {
  color: #fde68a;
  background: rgba(251,191,36,0.12);
  border-color: rgba(251,191,36,0.22);
}

.quest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.quest-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.quest-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--red));
  opacity: .85;
}

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

.quest-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quest-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  border: 1px solid rgba(251,191,36,0.22);
  background: rgba(251,191,36,0.12);
  font-size: 22px;
  flex: 0 0 auto;
}

.quest-card h3 {
  margin: 0;
  font-size: 22px;
}

.quest-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 12px 0 18px;
}

.quest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quest-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  font-size: 13px;
  font-weight: 850;
}

.status-chip.activa {
  color: #bbf7d0;
  background: rgba(52,211,153,0.12);
  border-color: rgba(52,211,153,0.22);
}

.status-chip.pruebas {
  color: #fde68a;
  background: rgba(251,191,36,0.12);
  border-color: rgba(251,191,36,0.22);
}

.status-chip.proximamente {
  color: #bfdbfe;
  background: rgba(37,99,235,0.14);
  border-color: rgba(147,197,253,0.22);
}


.ranking-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.ranking-sort-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.active-stat {
  color: #fde68a !important;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(251,191,36,0.18);
}

.tab {
  opacity: .78;
}

.tab.active {
  opacity: 1;
  box-shadow: 0 10px 30px rgba(220,38,38,0.26);
}

@media (max-width: 940px) {
  .ranking-tools {
    align-items: stretch;
    width: 100%;
  }

  .ranking-sort-note {
    text-align: center;
  }
}


.rank-profession-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profession-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 10px 26px rgba(0,0,0,0.32);
}

.profession-avatar.sith {
  border-color: rgba(248,113,113,0.52);
  box-shadow: 0 0 22px rgba(220,38,38,0.20);
}

.profession-avatar.jedi {
  border-color: rgba(147,197,253,0.52);
  box-shadow: 0 0 22px rgba(37,99,235,0.20);
}

.profession-avatar.merc {
  border-color: rgba(251,191,36,0.52);
  box-shadow: 0 0 22px rgba(251,191,36,0.16);
}

.profession-avatar.default {
  border-color: rgba(148,163,184,0.36);
}

@media (max-width: 940px) {
  .rank-profession-wrap {
    align-items: center;
  }

  .profession-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
}

@media (max-width: 620px) {
  .rank-profession-wrap {
    gap: 8px;
  }

  .profession-avatar {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }
}


.server-panel-live {
  overflow: hidden;
}

.map-preview {
  position: relative;
  height: 245px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
}

.map-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.04);
}

.map-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.68)),
    radial-gradient(circle at 18% 12%, rgba(220,38,38,0.25), transparent 42%),
    radial-gradient(circle at 82% 16%, rgba(37,99,235,0.22), transparent 42%);
  pointer-events: none;
}

.map-overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.map-overlay small {
  color: #cbd5e1;
  text-shadow: 0 2px 14px rgba(0,0,0,0.8);
}

.map-overlay strong {
  display: block;
  margin-top: 4px;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow: 0 3px 18px rgba(0,0,0,0.85);
}

.map-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(52,211,153,0.28);
  background: rgba(6,78,59,0.74);
  color: #bbf7d0;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.map-pill.offline,
.status-pill.offline {
  border-color: rgba(248,113,113,0.28);
  background: rgba(127,29,29,0.55);
  color: #fecaca;
}

.online.offline {
  color: #fca5a5;
}

.server-info-grid-live {
  grid-template-columns: 1fr 1fr;
}

.server-info-grid-live code {
  word-break: break-word;
}

@media (max-width: 620px) {
  .map-preview {
    height: 210px;
  }

  .map-overlay {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .map-overlay strong {
    font-size: 28px;
  }
}


/* Server panel clean v2 */
.map-preview {
  height: 265px;
}

.map-preview::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.00), rgba(0,0,0,0.42)),
    radial-gradient(circle at 18% 12%, rgba(220,38,38,0.12), transparent 42%),
    radial-gradient(circle at 82% 16%, rgba(37,99,235,0.14), transparent 42%);
}

.map-overlay {
  justify-content: flex-start;
}

.map-overlay strong {
  font-size: 42px;
}

.server-info-grid-live code {
  font-size: 15px;
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: anywhere;
}

#serverIp {
  font-size: 14px;
  letter-spacing: .02em;
}

.server-status-row {
  margin-bottom: 20px;
}

@media (max-width: 620px) {
  .map-preview {
    height: 230px;
  }

  .map-overlay strong {
    font-size: 34px;
  }

  .server-info-grid-live {
    grid-template-columns: 1fr 1fr;
  }

  #serverIp {
    font-size: 13px;
  }
}


/* Ranking top 10 */
.ranking-table::after {
  content: "Mostrando top 10 jugadores";
  display: block;
  padding: 14px 22px 18px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.018);
}


/* Guide accordion */
.guide-accordion-section {
  align-items: start;
}

.guide-accordion-section > div:first-child p {
  max-width: 470px;
}

.guide-accordion-card {
  padding: 24px;
}

.guide-intro {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 18px;
  color: white;
}

.guide-intro strong {
  font-size: 18px;
}

.guide-intro span {
  color: var(--muted);
  font-size: 14px;
}

.accordion {
  display: grid;
  gap: 14px;
}

.accordion-item {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.accordion-item.open {
  border-color: rgba(248,113,113,0.28);
  background: rgba(255,255,255,0.062);
  box-shadow: 0 18px 48px rgba(0,0,0,0.24);
}

.accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: white;
  display: grid;
  grid-template-columns: 46px 1fr 34px;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
}

.accordion-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(248,113,113,0.25);
  background: rgba(220,38,38,0.22);
  color: #fecaca;
  font-weight: 950;
}

.accordion-title {
  font-weight: 850;
  line-height: 1.35;
}

.accordion-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #cbd5e1;
  font-size: 20px;
  font-weight: 900;
  transition: transform .18s ease, color .18s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  color: #fecaca;
  border-color: rgba(248,113,113,0.25);
}

.accordion-content {
  display: none;
  padding: 0 22px 20px 78px;
  color: #cbd5e1;
  line-height: 1.65;
}

.accordion-item.open .accordion-content {
  display: block;
}

.accordion-content p {
  margin: 0 0 12px;
}

.accordion-content ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.accordion-content li {
  margin: 6px 0;
}

.guide-code {
  display: inline-flex;
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(147,197,253,0.22);
  background: rgba(37,99,235,0.12);
  color: #bfdbfe;
  font-size: 15px;
}

@media (max-width: 620px) {
  .guide-accordion-card {
    padding: 18px;
  }

  .accordion-trigger {
    grid-template-columns: 40px 1fr 28px;
    padding: 14px;
  }

  .accordion-content {
    padding: 0 16px 18px 16px;
  }
}


/* Launcher / descarga */
.header-download { white-space: nowrap; }
.btn-launcher-main { position: relative; overflow: hidden; }
.btn-launcher-main::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.25) 45%, transparent 70%);
  transform: translateX(-120%); animation: launcherShine 3.8s ease-in-out infinite;
}
@keyframes launcherShine {
  0%, 45% { transform: translateX(-120%); }
  65%, 100% { transform: translateX(120%); }
}
.launcher-mini-status { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.launcher-mini-status span {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.10); border-radius: 999px;
  color: #dbeafe; background: rgba(255,255,255,.055);
  font-size: 13px; font-weight: 700;
}
.launcher-section { padding-top: 34px; }
.launcher-card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch;
  padding: 30px; border: 1px solid rgba(251,191,36,.25); border-radius: 30px;
  background: radial-gradient(circle at top right, rgba(251,191,36,.16), transparent 36%),
              linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  box-shadow: var(--shadow); overflow: hidden;
}
.launcher-card h2 {
  margin: 18px 0 0; font-size: clamp(34px, 4vw, 54px);
  line-height: 1; letter-spacing: -0.05em;
}
.launcher-card p { color: #cbd5e1; line-height: 1.72; max-width: 680px; }
.launcher-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin: 24px 0;
}
.launcher-steps article {
  padding: 16px; border-radius: 20px; background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.09);
}
.launcher-steps strong {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 999px; color: #111827; background: var(--gold); margin-bottom: 10px;
}
.launcher-steps span {
  display: block; color: #e5e7eb; font-weight: 800; line-height: 1.35;
}
.launcher-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.launcher-card-panel { display: grid; place-items: center; }
.launcher-window {
  width: 100%; max-width: 390px; min-height: 320px; border-radius: 24px;
  border: 1px solid rgba(251,191,36,.35);
  background: linear-gradient(180deg, rgba(2,8,23,.92), rgba(2,6,23,.74)),
              radial-gradient(circle at center, rgba(220,38,38,.2), transparent 50%);
  box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden;
}
.launcher-window-top {
  height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.32);
}
.launcher-window-top span { width: 12px; height: 12px; border-radius: 999px; background: #ef4444; }
.launcher-window-top span:nth-child(2) { background: #f59e0b; }
.launcher-window-top span:nth-child(3) { background: #22c55e; }
.launcher-window-body { padding: 24px; }
.launcher-window-body h3 { margin: 0 0 8px; color: var(--gold); font-size: 24px; }
.launcher-window-body p { margin-top: 0; }
.launcher-window-body ul {
  padding-left: 0; list-style: none; display: grid; gap: 12px;
  color: #e5e7eb; font-weight: 700;
}
.final-download-cta .cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.final-download-cta h2 { margin-top: 14px; }
@media (max-width: 920px) {
  .header-download { display: none; }
  .launcher-card { grid-template-columns: 1fr; }
  .launcher-steps { grid-template-columns: repeat(2, 1fr); }
  .final-download-cta .cta-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .launcher-steps { grid-template-columns: 1fr; }
  .launcher-card { padding: 22px; }
}


/* Ajustes responsive y orden visual - mayo 2026 */
.refined-launcher-card {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: center;
}

.refined-launcher-card h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.2vw, 52px);
}

.refined-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.refined-steps article {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  background: rgba(4, 10, 22, 0.58);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
}

.refined-steps article h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.2;
}

.refined-steps article span {
  color: #cbd5e1;
  font-weight: 600;
  line-height: 1.55;
}

.refined-launcher-panel {
  width: 100%;
}

.simplified-window {
  max-width: 420px;
  min-height: auto;
}

.launcher-benefits {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.benefit-pill {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #e5e7eb;
  font-weight: 700;
  line-height: 1.45;
}

.guide-accordion-card {
  padding: 28px;
}

.accordion-trigger {
  min-height: 76px;
}

.accordion-content {
  padding: 0 22px 22px 78px;
}

@media (max-width: 980px) {
  .refined-launcher-card {
    grid-template-columns: 1fr;
  }

  .simplified-window {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .refined-steps {
    grid-template-columns: 1fr;
  }

  .launcher-card h2 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .guide-accordion-card {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .launcher-section {
    padding-top: 18px;
  }

  .launcher-card {
    padding: 20px;
    border-radius: 24px;
  }

  .launcher-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .launcher-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .launcher-mini-status {
    gap: 8px;
  }

  .launcher-mini-status span {
    width: 100%;
    justify-content: center;
  }

  .accordion-trigger {
    grid-template-columns: 36px 1fr 26px;
    gap: 10px;
    padding: 14px;
    min-height: 68px;
  }

  .accordion-number {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .accordion-title {
    font-size: 15px;
  }

  .accordion-content {
    padding: 0 14px 18px 14px;
  }
}


/* === Mejora visual épica estilo launcher === */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(180deg, rgba(2,4,10,.82), rgba(2,4,10,.94)),
    url("assets/epic-bg-hero.png") center/cover no-repeat;
  transform: scale(1.03);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: radial-gradient(circle at 50% 20%, rgba(251,191,36,.08), transparent 35%);
  pointer-events: none;
}

.background-grid {
  opacity: .04;
}

.site-header {
  background: rgba(1, 4, 12, 0.72);
}

.brand {
  gap: 14px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(251,191,36,.3);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.header-download {
  box-shadow: 0 10px 30px rgba(220,38,38,.25);
}

.hero-cinematic {
  position: relative;
  gap: 28px;
}

.hero-panel {
  position: relative;
  padding: 36px;
  border-radius: 34px;
  border: 1px solid rgba(251,191,36,.18);
  background: linear-gradient(180deg, rgba(4,10,22,.78), rgba(3,7,18,.58));
  box-shadow: 0 24px 60px rgba(0,0,0,.38);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220,38,38,.08), transparent 35%, rgba(59,130,246,.06));
  pointer-events: none;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(46px, 7vw, 82px);
}

.hero-actions .btn {
  min-width: 190px;
}

.server-panel-live {
  background: linear-gradient(180deg, rgba(4,10,22,.82), rgba(3,7,18,.76));
  border-color: rgba(251,191,36,.18);
}

.map-preview {
  min-height: 240px;
}

.map-preview img {
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.launcher-card {
  background:
    linear-gradient(180deg, rgba(4,10,22,.82), rgba(3,7,18,.72)),
    url("assets/epic-bg-section.png") center/cover no-repeat;
  border-color: rgba(251,191,36,.18);
}

.launcher-card-copy,
.launcher-card-panel {
  position: relative;
  z-index: 1;
}

.launcher-window-visual {
  background: rgba(3,7,18,.82);
  border: 1px solid rgba(251,191,36,.18);
}

.launcher-preview-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(251,191,36,.16);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  margin-bottom: 16px;
}

.launcher-preview-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.refined-steps article,
.benefit-pill,
.stat-card,
.ranking-table,
.guide-card,
.cta-card,
.server-panel,
.launcher-window {
  backdrop-filter: blur(18px);
}

.section-header h2,
.launcher-card h2,
.guide-header h2,
.cta-card h2 {
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
}

/* Hero mobile and menu polish */
@media (max-width: 980px) {
  .hero-panel {
    padding: 28px;
  }

  .main-nav {
    background: rgba(2, 6, 15, 0.96);
    border-color: rgba(251,191,36,.14);
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
  }
}

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

  .brand-title {
    font-size: 12px;
    letter-spacing: .16em;
  }

  .hero {
    padding-top: 42px;
    gap: 22px;
  }

  .hero-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .hero h1 {
    margin-top: 18px;
    line-height: .98;
  }

  .hero p {
    font-size: 17px;
    margin-top: 18px;
  }

  .server-panel-live {
    border-radius: 24px;
  }

  .refined-steps article {
    min-height: unset;
  }
}

@media (max-width: 560px) {
  .header-content {
    min-height: 70px;
  }

  .header-download {
    display: none;
  }

  .menu-toggle {
    border-color: rgba(251,191,36,.18);
  }

  .main-nav {
    inset: 70px 16px auto 16px;
    border-radius: 18px;
    padding: 18px;
  }

  .hero-actions .btn {
    min-width: 100%;
  }

  .map-preview {
    min-height: 180px;
  }

  .launcher-preview-wrap {
    margin-bottom: 14px;
  }
}


/* ================================
   Download page fix estilo launcher
================================ */
.download-body {
  min-height: 100vh;
  background: #030712;
}

.download-launcher-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 20px;
}

.download-launcher-card {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 30px;
  align-items: center;
  padding: clamp(24px, 4vw, 46px);
  border-radius: 34px;
  border: 1px solid rgba(251,191,36,.22);
  background:
    linear-gradient(135deg, rgba(80, 10, 18, .38), rgba(4, 10, 25, .88)),
    url("assets/epic-bg-hero.png") center/cover no-repeat;
  box-shadow: 0 30px 100px rgba(0,0,0,.62);
  overflow: hidden;
  position: relative;
}

.download-launcher-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(220,38,38,.18), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(59,130,246,.16), transparent 30%),
    linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.72));
  pointer-events: none;
}

.download-left,
.download-right {
  position: relative;
  z-index: 1;
}

.download-left h1 {
  margin: 24px 0 16px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: .94;
  letter-spacing: -0.06em;
}

.download-left p {
  color: #dbe3ef;
  line-height: 1.75;
  max-width: 560px;
  font-size: 18px;
}

.download-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.download-note {
  margin-top: 22px;
  color: #aeb7c4;
  line-height: 1.6;
  font-size: 14px;
  max-width: 560px;
}

.download-steps-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(2, 6, 15, .76);
  border: 1px solid rgba(251,191,36,.18);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
  backdrop-filter: blur(18px);
}

.download-steps-card h2 {
  margin: 0 0 20px;
  color: #f8fafc;
  font-size: clamp(26px, 4vw, 38px);
}

.download-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.download-step:first-of-type {
  border-top: 0;
}

.download-step strong {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(220,38,38,.28);
  border: 1px solid rgba(248,113,113,.28);
  color: #fecaca;
  font-weight: 950;
}

.download-step h3 {
  margin: 0 0 5px;
  color: #f8fafc;
  font-size: 17px;
}

.download-step p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.55;
}

/* Guía actualizada al flujo del launcher */
.guide-inline-btn {
  margin-top: 12px;
}

.guide-accordion-section {
  position: relative;
  isolation: isolate;
}

.guide-accordion-section::before {
  content: "";
  position: absolute;
  inset: -20px -40px;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3,7,18,.82), rgba(3,7,18,.38)),
    url("assets/epic-bg-section.png") center/cover no-repeat;
  opacity: .34;
  border-radius: 34px;
  pointer-events: none;
}

@media (max-width: 900px) {
  .download-launcher-card {
    grid-template-columns: 1fr;
  }

  .download-left h1 {
    font-size: clamp(42px, 12vw, 66px);
  }

  .download-actions .btn {
    flex: 1 1 220px;
  }
}

@media (max-width: 560px) {
  .download-launcher-page {
    padding: 24px 14px;
  }

  .download-launcher-card {
    padding: 22px;
    border-radius: 26px;
  }

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

  .download-actions .btn {
    width: 100%;
  }

  .download-steps-card {
    padding: 20px;
  }

  .download-step {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .download-step strong {
    width: 34px;
    height: 34px;
  }
}


/* Sprint Comunidad v1 */
.explore-section,.professions-section,.discord-section{position:relative;isolation:isolate}.explore-section::before,.professions-section::before,.discord-section::before{content:"";position:absolute;inset:-20px -40px;z-index:-1;border-radius:36px;background:radial-gradient(circle at 18% 20%,rgba(220,38,38,.11),transparent 30%),radial-gradient(circle at 82% 80%,rgba(59,130,246,.10),transparent 30%);pointer-events:none}.explore-grid{display:grid;grid-template-columns:1.15fr .85fr .85fr;grid-auto-rows:260px;gap:18px}.explore-card{position:relative;overflow:hidden;border-radius:26px;border:1px solid rgba(251,191,36,.18);background:rgba(4,10,22,.72);box-shadow:0 22px 70px rgba(0,0,0,.38)}.explore-card.large{grid-row:span 2}.explore-card img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.02);filter:saturate(1.08) contrast(1.05);transition:transform .35s ease,filter .35s ease}.explore-card:hover img{transform:scale(1.08);filter:saturate(1.22) contrast(1.08)}.explore-card::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 20%,rgba(0,0,0,.84) 100%),radial-gradient(circle at top right,rgba(251,191,36,.16),transparent 38%)}.explore-overlay{position:absolute;inset:auto 0 0 0;z-index:1;padding:22px}.explore-overlay span{display:inline-flex;margin-bottom:10px;color:#fde68a;font-weight:900;font-size:13px;letter-spacing:.08em;text-transform:uppercase}.explore-overlay h3{margin:0 0 8px;font-size:clamp(22px,3vw,34px);line-height:1;color:#fff}.explore-overlay p{margin:0;color:#dbe3ef;line-height:1.55;max-width:520px}.profession-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.profession-card{position:relative;padding:28px;border-radius:28px;border:1px solid rgba(255,255,255,.10);background:linear-gradient(180deg,rgba(4,10,22,.84),rgba(3,7,18,.72));box-shadow:0 20px 64px rgba(0,0,0,.34);overflow:hidden}.profession-card::before{content:"";position:absolute;inset:0;opacity:.28;background:radial-gradient(circle at 50% 0%,rgba(255,255,255,.20),transparent 42%);pointer-events:none}.profession-card.jedi{border-color:rgba(96,165,250,.24)}.profession-card.sith{border-color:rgba(248,113,113,.28)}.profession-card.merc{border-color:rgba(251,191,36,.28)}.profession-icon{width:74px;height:74px;display:grid;place-items:center;border-radius:22px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.10);margin-bottom:18px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.25)}.profession-icon img{width:100%;height:100%;object-fit:cover;display:block}.profession-card h3{margin:0 0 12px;font-size:34px;color:#fff}.profession-card p{color:#cbd5e1;line-height:1.65;min-height:132px}.profession-card ul{list-style:none;padding:0;margin:20px 0 0;display:grid;gap:10px}.profession-card li{color:#e5e7eb;font-weight:800;padding:11px 13px;border-radius:999px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07)}.discord-card{display:grid;grid-template-columns:1.3fr .7fr;gap:28px;align-items:center;padding:clamp(26px,4vw,42px);border-radius:34px;border:1px solid rgba(96,165,250,.20);background:linear-gradient(135deg,rgba(4,10,22,.88),rgba(3,7,18,.76)),url("assets/epic-bg-section.png") center/cover no-repeat;box-shadow:0 28px 90px rgba(0,0,0,.46);overflow:hidden}.discord-copy h2{margin:18px 0 0;font-size:clamp(36px,5vw,68px);line-height:.98;letter-spacing:-.055em}.discord-copy p{color:#dbe3ef;line-height:1.72;max-width:700px}.discord-pills{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 26px}.discord-pills span{padding:10px 13px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.05);color:#e5e7eb;font-weight:800;font-size:14px}.btn-discord{min-width:210px}.discord-panel{display:grid;place-items:center;text-align:center;min-height:260px;padding:28px;border-radius:28px;border:1px solid rgba(251,191,36,.18);background:rgba(2,6,15,.66);backdrop-filter:blur(18px)}.discord-orb{width:94px;height:94px;display:grid;place-items:center;border-radius:999px;background:radial-gradient(circle,rgba(96,165,250,.34),rgba(220,38,38,.18));border:1px solid rgba(255,255,255,.14);font-size:44px;margin-bottom:18px}.discord-panel h3{margin:0 0 8px;color:#fff;font-size:26px}.discord-panel p{margin:0;color:#cbd5e1;line-height:1.55}@media(max-width:960px){.explore-grid{grid-template-columns:1fr 1fr;grid-auto-rows:250px}.explore-card.large{grid-column:span 2;grid-row:span 1}.profession-grid,.discord-card{grid-template-columns:1fr}.discord-panel{min-height:220px}}@media(max-width:620px){.explore-grid{grid-template-columns:1fr;grid-auto-rows:280px;gap:16px}.explore-card.large{grid-column:span 1}.explore-overlay{padding:18px}.explore-overlay h3{font-size:25px}.profession-card{padding:22px;border-radius:24px}.profession-card h3{font-size:30px}.profession-card p{min-height:auto}.discord-card{padding:24px;border-radius:28px}.discord-copy h2{font-size:clamp(34px,10vw,48px)}.btn-discord{width:100%}}


/* =====================================================
   FIX FUERTE MOBILE - QUESTS ACTIVAS / MISIONES
   Evita tarjetas angostas, apretadas o cortadas.
===================================================== */

#quests {
  overflow: visible;
}

#quests .quest-grid,
.quest-grid {
  width: 100%;
  min-width: 0;
}

.quest-card,
.quest-item,
.quest,
.quest-grid > article,
.quest-grid > div {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.quest-card *,
.quest-item *,
.quest *,
.quest-grid > article *,
.quest-grid > div * {
  min-width: 0;
  max-width: 100%;
}

/* Celular y tablets pequeñas */
@media (max-width: 820px) {
  #quests .section-header {
    display: block;
  }

  #quests .section-header h2 {
    font-size: clamp(30px, 9vw, 44px);
    line-height: 1;
  }

  #quests .section-header p {
    font-size: 16px;
    line-height: 1.65;
  }

  #quests .quest-grid,
  .quest-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
  }

  .quest-card,
  .quest-item,
  .quest,
  .quest-grid > article,
  .quest-grid > div {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    padding: 22px !important;
    border-radius: 24px !important;
  }

  .quest-card h3,
  .quest-item h3,
  .quest h3,
  .quest-grid > article h3,
  .quest-grid > div h3 {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.08 !important;
    margin: 10px 0 12px !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .quest-card p,
  .quest-item p,
  .quest p,
  .quest-grid > article p,
  .quest-grid > div p {
    font-size: 16px !important;
    line-height: 1.65 !important;
    margin-bottom: 16px !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .quest-card .reward,
  .quest-item .reward,
  .quest .reward,
  .quest-meta,
  .quest-tags,
  .quest-rewards,
  .quest-badges,
  .quest-grid .reward,
  .quest-grid [class*="tag"],
  .quest-grid [class*="badge"],
  .quest-grid [class*="reward"],
  .quest-grid [class*="meta"] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .quest-card .reward,
  .quest-item .reward,
  .quest .reward,
  .quest-meta span,
  .quest-tags span,
  .quest-rewards span,
  .quest-badges span,
  .quest-grid .reward,
  .quest-grid [class*="tag"] span,
  .quest-grid [class*="badge"] span,
  .quest-grid [class*="reward"] span,
  .quest-grid [class*="meta"] span {
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    font-size: 14px !important;
    padding: 10px 13px !important;
  }
}

/* Celulares angostos */
@media (max-width: 520px) {
  #quests {
    padding-left: 0;
    padding-right: 0;
  }

  #quests.container {
    width: min(100% - 24px, 1180px);
  }

  #quests .quest-grid,
  .quest-grid {
    gap: 16px !important;
  }

  .quest-card,
  .quest-item,
  .quest,
  .quest-grid > article,
  .quest-grid > div {
    padding: 20px !important;
    border-radius: 22px !important;
  }

  .quest-card h3,
  .quest-item h3,
  .quest h3,
  .quest-grid > article h3,
  .quest-grid > div h3 {
    font-size: 25px !important;
  }

  .quest-card p,
  .quest-item p,
  .quest p,
  .quest-grid > article p,
  .quest-grid > div p {
    font-size: 15.5px !important;
  }
}

/* Ultra angostos */
@media (max-width: 380px) {
  #quests.container {
    width: min(100% - 18px, 1180px);
  }

  .quest-card,
  .quest-item,
  .quest,
  .quest-grid > article,
  .quest-grid > div {
    padding: 18px !important;
  }

  .quest-card h3,
  .quest-item h3,
  .quest h3,
  .quest-grid > article h3,
  .quest-grid > div h3 {
    font-size: 22px !important;
  }
}



/* =====================================================
   FIX MOBILE DOWNLOAD PAGE
   Corrige botón gigante y texto cortado en celular
===================================================== */

.download-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.download-body .download-launcher-page,
.download-launcher-page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 16px;
}

.download-body .download-launcher-card,
.download-launcher-card {
  width: min(1120px, 100%);
  max-width: 100%;
  overflow: hidden;
}

.download-body .download-left,
.download-body .download-right,
.download-left,
.download-right {
  min-width: 0;
  max-width: 100%;
}

.download-body .download-left h1,
.download-left h1 {
  overflow-wrap: anywhere;
}

.download-body .download-left p,
.download-left p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.download-body .download-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.download-body .download-actions .btn,
.download-actions .btn {
  min-height: 54px;
  padding: 0 24px;
  width: auto;
  max-width: 100%;
}

/* Tablets */
@media (max-width: 900px) {
  .download-body .download-launcher-card,
  .download-launcher-card {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .download-body .download-left h1,
  .download-left h1 {
    font-size: clamp(42px, 11vw, 66px) !important;
    line-height: .98 !important;
    letter-spacing: -0.055em;
  }
}

/* Celular */
@media (max-width: 560px) {
  .download-body .download-launcher-page,
  .download-launcher-page {
    display: block !important;
    padding: 22px 14px !important;
    min-height: auto;
  }

  .download-body .download-launcher-card,
  .download-launcher-card {
    display: block !important;
    width: 100% !important;
    padding: 22px !important;
    border-radius: 24px !important;
  }

  .download-body .download-left h1,
  .download-left h1 {
    font-size: clamp(38px, 13vw, 54px) !important;
    line-height: 1 !important;
    margin: 20px 0 16px !important;
  }

  .download-body .download-left p,
  .download-left p {
    font-size: 17px !important;
    line-height: 1.62 !important;
    margin-bottom: 20px !important;
  }

  .download-body .download-actions,
  .download-actions {
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 22px !important;
  }

  .download-body .download-actions .btn,
  .download-actions .btn {
    width: 100% !important;
    min-height: 56px !important;
    max-height: none !important;
    padding: 0 18px !important;
    border-radius: 18px !important;
    font-size: 16px !important;
    text-align: center !important;
  }

  .download-body .download-note,
  .download-note {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin-top: 18px !important;
  }

  .download-body .download-right,
  .download-right {
    margin-top: 24px !important;
  }

  .download-body .download-steps-card,
  .download-steps-card {
    padding: 20px !important;
    border-radius: 22px !important;
  }

  .download-body .download-steps-card h2,
  .download-steps-card h2 {
    font-size: 27px !important;
    line-height: 1.08 !important;
    margin-bottom: 16px !important;
  }

  .download-body .download-step,
  .download-step {
    grid-template-columns: 38px 1fr !important;
    gap: 12px !important;
    padding: 14px 0 !important;
  }

  .download-body .download-step strong,
  .download-step strong {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
  }

  .download-body .download-step h3,
  .download-step h3 {
    font-size: 16px !important;
  }

  .download-body .download-step p,
  .download-step p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

/* Celulares muy angostos */
@media (max-width: 380px) {
  .download-body .download-launcher-page,
  .download-launcher-page {
    padding: 18px 10px !important;
  }

  .download-body .download-launcher-card,
  .download-launcher-card {
    padding: 18px !important;
  }

  .download-body .download-left h1,
  .download-left h1 {
    font-size: 36px !important;
  }
}



/* =====================================================
   Registro Web de Cuentas Lugormod
===================================================== */
.register-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.register-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 20px;
}

.register-card {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 30px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 46px);
  border-radius: 34px;
  border: 1px solid rgba(251,191,36,.22);
  background:
    linear-gradient(135deg, rgba(80, 10, 18, .38), rgba(4, 10, 25, .88)),
    url("assets/epic-bg-hero.png") center/cover no-repeat;
  box-shadow: 0 30px 100px rgba(0,0,0,.62);
  overflow: hidden;
  position: relative;
}

.register-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(220,38,38,.18), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(59,130,246,.16), transparent 30%),
    linear-gradient(90deg, rgba(0,0,0,.20), rgba(0,0,0,.72));
  pointer-events: none;
}

.register-copy,
.register-form-wrap {
  position: relative;
  z-index: 1;
}

.register-copy h1 {
  margin: 24px 0 16px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: .94;
  letter-spacing: -0.06em;
}

.register-copy p {
  color: #dbe3ef;
  line-height: 1.75;
  max-width: 560px;
  font-size: 18px;
}

.register-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.register-benefits span {
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: #e5e7eb;
  font-weight: 800;
  font-size: 14px;
}

.register-form,
.register-success {
  padding: 28px;
  border-radius: 28px;
  background: rgba(2, 6, 15, .78);
  border: 1px solid rgba(251,191,36,.18);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
  backdrop-filter: blur(18px);
}

.register-form h2,
.register-success h2 {
  margin: 0 0 20px;
  color: #f8fafc;
  font-size: clamp(26px, 4vw, 38px);
}

.register-form label {
  display: grid;
  gap: 8px;
  color: #f8fafc;
  font-weight: 800;
  margin-bottom: 16px;
}

.register-form input[type="text"],
.register-form input[type="password"] {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color: #fff;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}

.register-form input:focus {
  border-color: rgba(251,191,36,.46);
  box-shadow: 0 0 0 4px rgba(251,191,36,.08);
}

.register-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

.profession-picker {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.profession-picker > span {
  color: #fde68a;
  font-weight: 900;
}

.profession-option {
  display: grid !important;
  grid-template-columns: 24px 1fr;
  gap: 12px !important;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  cursor: pointer;
  margin-bottom: 0 !important;
}

.profession-option input {
  margin-top: 5px;
}

.profession-option strong {
  display: block;
  color: #fff;
  font-size: 17px;
}

.profession-option small {
  display: block;
  color: #cbd5e1;
  line-height: 1.45;
  margin-top: 4px;
}

.register-submit {
  width: 100%;
  margin-top: 8px;
}

.register-note {
  color: #aeb7c4;
  line-height: 1.55;
  font-size: 14px;
  margin: 16px 0 0;
}

.register-errors {
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid rgba(248,113,113,.35);
  background: rgba(127,29,29,.22);
}

.register-errors p {
  margin: 6px 0;
  color: #fecaca;
  line-height: 1.45;
}

.register-success p {
  color: #dbe3ef;
  line-height: 1.65;
}

.register-created-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.register-created-box span {
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(52,211,153,.10);
  border: 1px solid rgba(52,211,153,.22);
  color: #bbf7d0;
  font-weight: 900;
}

.register-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

@media (max-width: 900px) {
  .register-card {
    grid-template-columns: 1fr;
  }

  .register-copy h1 {
    font-size: clamp(42px, 11vw, 66px);
  }
}

@media (max-width: 560px) {
  .register-page {
    display: block;
    padding: 22px 14px;
    min-height: auto;
  }

  .register-card {
    display: block;
    padding: 22px;
    border-radius: 24px;
  }

  .register-copy h1 {
    font-size: clamp(38px, 13vw, 54px);
    line-height: 1;
    margin: 20px 0 16px;
  }

  .register-copy p {
    font-size: 17px;
    line-height: 1.62;
  }

  .register-form-wrap {
    margin-top: 24px;
  }

  .register-form,
  .register-success {
    padding: 20px;
    border-radius: 22px;
  }

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

  .register-actions .btn {
    width: 100%;
  }
}


/* =====================================================
   Perfil web seguro / Dashboard jugador
===================================================== */

.account-page {
  min-height: 100vh;
  padding: 42px 20px;
}

.account-dashboard {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.account-header-card,
.account-shop-placeholder {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 32px;
  border: 1px solid rgba(251,191,36,.22);
  background:
    linear-gradient(135deg, rgba(80, 10, 18, .36), rgba(4, 10, 25, .86)),
    url("assets/epic-bg-hero.png") center/cover no-repeat;
  box-shadow: 0 30px 100px rgba(0,0,0,.50);
  overflow: hidden;
}

.account-header-card h1 {
  margin: 20px 0 12px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .95;
  letter-spacing: -0.06em;
}

.account-header-card p,
.account-shop-placeholder p {
  color: #dbe3ef;
  line-height: 1.72;
  max-width: 720px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.account-stat-grid article {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(2, 6, 15, .76);
  box-shadow: 0 18px 54px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}

.account-stat-grid small {
  display: block;
  color: #9aa4b2;
  margin-bottom: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.account-stat-grid strong {
  display: block;
  color: #fff;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
}

.account-shop-placeholder {
  background:
    linear-gradient(135deg, rgba(4, 10, 25, .86), rgba(80, 10, 18, .30)),
    url("assets/epic-bg-section.png") center/cover no-repeat;
}

.account-shop-placeholder h2 {
  margin: 18px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.shop-lock {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(251,191,36,.22);
  background: rgba(0,0,0,.28);
  font-size: 46px;
}

@media (max-width: 900px) {
  .account-header-card,
  .account-shop-placeholder {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .account-actions {
    width: 100%;
  }

  .account-actions .btn {
    flex: 1 1 180px;
  }
}

@media (max-width: 560px) {
  .account-page {
    padding: 22px 14px;
  }

  .account-header-card,
  .account-shop-placeholder {
    padding: 22px;
    border-radius: 24px;
  }

  .account-header-card h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .account-stat-grid {
    grid-template-columns: 1fr;
  }

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

  .account-actions .btn {
    width: 100%;
  }

  .shop-lock {
    width: 78px;
    height: 78px;
    font-size: 34px;
  }
}


/* =====================================================
   FIX AUTH PAGES - login/account/register layout
===================================================== */

body.register-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #030712;
}

body.register-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(180deg, rgba(2,4,10,.84), rgba(2,4,10,.96)),
    url("assets/epic-bg-hero.png") center/cover no-repeat;
}

body.register-body .register-page {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 42px 20px;
}

body.register-body .register-card {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 30px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 46px);
  border-radius: 34px;
  border: 1px solid rgba(251,191,36,.22);
  background:
    linear-gradient(135deg, rgba(80, 10, 18, .42), rgba(4, 10, 25, .88));
  box-shadow: 0 30px 100px rgba(0,0,0,.62);
  overflow: hidden;
  position: relative;
}

body.register-body .register-copy,
body.register-body .register-form-wrap {
  min-width: 0;
  position: relative;
  z-index: 1;
}

body.register-body .register-copy h1 {
  margin: 24px 0 16px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: .94;
  letter-spacing: -0.06em;
}

body.register-body .register-copy p {
  color: #dbe3ef;
  line-height: 1.75;
  max-width: 560px;
  font-size: 18px;
}

body.register-body .register-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

body.register-body .register-benefits span {
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: #e5e7eb;
  font-weight: 800;
  font-size: 14px;
}

body.register-body .register-form,
body.register-body .register-success {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(2, 6, 15, .82);
  border: 1px solid rgba(251,191,36,.18);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
  backdrop-filter: blur(18px);
}

body.register-body .register-form h2,
body.register-body .register-success h2 {
  margin: 0 0 4px;
  color: #f8fafc;
  font-size: clamp(26px, 4vw, 38px);
}

body.register-body .register-form label {
  display: grid;
  gap: 8px;
  color: #f8fafc;
  font-weight: 800;
  margin: 0;
}

body.register-body .register-form input[type="text"],
body.register-body .register-form input[type="password"] {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.32);
  color: #fff;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}

body.register-body .register-form input[type="text"]:focus,
body.register-body .register-form input[type="password"]:focus {
  border-color: rgba(251,191,36,.46);
  box-shadow: 0 0 0 4px rgba(251,191,36,.08);
}

body.register-body .register-submit {
  width: 100%;
}

body.register-body .register-note {
  color: #aeb7c4;
  line-height: 1.55;
  font-size: 14px;
  margin: 0;
}

body.register-body .register-errors {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(248,113,113,.35);
  background: rgba(127,29,29,.22);
}

body.register-body .register-errors p {
  margin: 6px 0;
  color: #fecaca;
  line-height: 1.45;
}

/* Account page */
body.register-body .account-page {
  min-height: 100vh;
  padding: 42px 20px;
}

body.register-body .account-dashboard {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

body.register-body .account-header-card,
body.register-body .account-shop-placeholder {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 32px;
  border: 1px solid rgba(251,191,36,.22);
  background:
    linear-gradient(135deg, rgba(80, 10, 18, .36), rgba(4, 10, 25, .86));
  box-shadow: 0 30px 100px rgba(0,0,0,.50);
  overflow: hidden;
}

body.register-body .account-header-card h1 {
  margin: 20px 0 12px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .95;
  letter-spacing: -0.06em;
}

body.register-body .account-header-card p,
body.register-body .account-shop-placeholder p {
  color: #dbe3ef;
  line-height: 1.72;
  max-width: 720px;
}

body.register-body .account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.register-body .account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

body.register-body .account-stat-grid article {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(2, 6, 15, .76);
  box-shadow: 0 18px 54px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}

body.register-body .account-stat-grid small {
  display: block;
  color: #9aa4b2;
  margin-bottom: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

body.register-body .account-stat-grid strong {
  display: block;
  color: #fff;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
}

body.register-body .shop-lock {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(251,191,36,.22);
  background: rgba(0,0,0,.28);
  font-size: 46px;
}

@media (max-width: 900px) {
  body.register-body .register-card {
    grid-template-columns: 1fr;
  }

  body.register-body .account-header-card,
  body.register-body .account-shop-placeholder {
    flex-direction: column;
    align-items: flex-start;
  }

  body.register-body .account-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.register-body .account-actions {
    width: 100%;
  }

  body.register-body .account-actions .btn {
    flex: 1 1 180px;
  }
}

@media (max-width: 560px) {
  body.register-body .register-page,
  body.register-body .account-page {
    display: block;
    padding: 22px 14px;
    min-height: auto;
  }

  body.register-body .register-card {
    display: block;
    padding: 22px;
    border-radius: 24px;
  }

  body.register-body .register-copy h1,
  body.register-body .account-header-card h1 {
    font-size: clamp(36px, 12vw, 54px);
    line-height: 1;
  }

  body.register-body .register-form-wrap {
    margin-top: 24px;
  }

  body.register-body .register-form,
  body.register-body .register-success,
  body.register-body .account-header-card,
  body.register-body .account-shop-placeholder {
    padding: 20px;
    border-radius: 22px;
  }

  body.register-body .account-stat-grid {
    grid-template-columns: 1fr;
  }

  body.register-body .account-actions {
    flex-direction: column;
  }

  body.register-body .account-actions .btn {
    width: 100%;
  }

  body.register-body .shop-lock {
    width: 78px;
    height: 78px;
    font-size: 34px;
  }
}



/* =====================================================
   ACCOUNT PANEL V2 - Knight of Chile
===================================================== */

body.account-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #030712;
  color: #fff;
}

body.account-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(180deg, rgba(2,4,10,.82), rgba(2,4,10,.96)),
    url("assets/epic-bg-hero.png") center/cover no-repeat;
  transform: scale(1.02);
}

.player-panel-page {
  min-height: 100vh;
  padding: 42px 20px;
}

.player-panel-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.player-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 26px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 34px;
  border: 1px solid rgba(251,191,36,.22);
  background:
    linear-gradient(135deg, rgba(80, 10, 18, .42), rgba(4, 10, 25, .88)),
    url("assets/epic-bg-section.png") center/cover no-repeat;
  box-shadow: 0 30px 100px rgba(0,0,0,.52);
  overflow: hidden;
  position: relative;
}

.player-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(220,38,38,.18), transparent 30%),
    radial-gradient(circle at 92% 90%, rgba(96,165,250,.14), transparent 34%);
  pointer-events: none;
}

.player-hero-copy,
.player-actions {
  position: relative;
  z-index: 1;
}

.player-hero-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .94;
  letter-spacing: -0.06em;
  word-break: break-word;
}

.player-hero-copy p {
  color: #dbe3ef;
  line-height: 1.72;
  max-width: 760px;
  font-size: 18px;
}

.player-tags,
.shop-preview-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.player-tags span,
.shop-preview-pills span {
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: #e5e7eb;
  font-weight: 850;
  font-size: 14px;
}

.player-actions {
  display: grid;
  gap: 12px;
  min-width: 210px;
}

.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.player-stat-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(4,10,22,.82), rgba(3,7,18,.72));
  box-shadow: 0 20px 60px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
  overflow: hidden;
  position: relative;
}

.player-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background: radial-gradient(circle at 80% 0%, rgba(251,191,36,.40), transparent 38%);
  pointer-events: none;
}

.player-stat-card span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 23px;
}

.player-stat-card small {
  display: block;
  color: #9aa4b2;
  margin-bottom: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.player-stat-card strong {
  display: block;
  color: #fff;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
  word-break: break-word;
}

.player-stat-card.credits {
  border-color: rgba(251,191,36,.26);
}

.player-stat-card.level {
  border-color: rgba(96,165,250,.22);
}

.player-stat-card.kills {
  border-color: rgba(248,113,113,.26);
}

.player-lower-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 18px;
}

.player-progress-card,
.player-shop-card {
  padding: clamp(24px, 4vw, 34px);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(2, 6, 15, .78);
  box-shadow: 0 22px 70px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
}

.player-progress-card h2,
.player-shop-card h2 {
  margin: 18px 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
}

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

.progress-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.progress-list span {
  color: #cbd5e1;
  font-weight: 750;
}

.progress-list strong {
  color: #fff;
  font-size: 20px;
}

.player-shop-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(4,10,22,.84), rgba(80,10,18,.30)),
    url("assets/epic-bg-section.png") center/cover no-repeat;
}

.shop-lock-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(251,191,36,.22);
  background: rgba(0,0,0,.30);
  font-size: 38px;
}

.player-shop-card p {
  color: #dbe3ef;
  line-height: 1.68;
  max-width: 740px;
}

@media (max-width: 980px) {
  .player-hero-card,
  .player-lower-grid,
  .player-shop-card {
    grid-template-columns: 1fr;
  }

  .player-actions {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
  }

  .player-actions .btn {
    flex: 1 1 190px;
  }

  .player-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-lock-icon {
    width: 72px;
    height: 72px;
    font-size: 32px;
  }
}

@media (max-width: 560px) {
  .player-panel-page {
    padding: 22px 14px;
  }

  .player-hero-card,
  .player-progress-card,
  .player-shop-card {
    padding: 22px;
    border-radius: 24px;
  }

  .player-hero-copy h1 {
    font-size: clamp(34px, 12vw, 52px);
    line-height: 1;
  }

  .player-hero-copy p {
    font-size: 16px;
  }

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

  .player-actions .btn {
    width: 100%;
  }

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

  .player-stat-card {
    min-height: auto;
  }

  .progress-list div {
    flex-direction: column;
    gap: 6px;
  }
}


/* ACCOUNT PANEL V3 - icon polish + shop bg */
.player-stat-card .stat-icon {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 0 18px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
}

.player-stat-card span { display:none; }

.player-stat-card {
  background: linear-gradient(180deg, rgba(3,10,24,.88), rgba(2,7,18,.76));
}

.player-stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251,191,36,.02), transparent 30%);
  pointer-events: none;
}

.player-shop-card {
  background:
    linear-gradient(135deg, rgba(4,10,22,.90), rgba(90,14,14,.46)),
    url("assets/account-shop-bg.png") center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.player-shop-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 80%, rgba(34,197,94,.16), transparent 28%),
              linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.22));
  pointer-events: none;
}
.player-shop-card > * { position: relative; z-index: 1; }

.shop-lock-icon {
  border-color: rgba(251,191,36,.32);
  background: rgba(5,8,18,.48);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 16px 40px rgba(0,0,0,.35);
}


/* RCON test admin */
.rcon-test-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.rcon-test-form label {
  display: grid;
  gap: 8px;
  color: #f8fafc;
  font-weight: 800;
}

.rcon-test-form input[type="password"] {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.32);
  color: #fff;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}

.rcon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rcon-result {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(251,191,36,.22);
  background: rgba(0,0,0,.30);
}

.rcon-result h3 {
  margin: 0 0 8px;
}

.rcon-result pre {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 420px;
  overflow: auto;
  color: #dbe3ef;
  background: rgba(0,0,0,.24);
  border-radius: 12px;
  padding: 14px;
}

@media (max-width: 560px) {
  .rcon-actions {
    flex-direction: column;
  }

  .rcon-actions .btn {
    width: 100%;
  }
}


/* RCON level probe */
.rcon-probe-group {
  margin-top: 20px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.20);
}

.rcon-probe-group h3 {
  margin: 0 0 12px;
  color: #fde68a;
}

.rcon-test-form input[type="text"],
.rcon-test-form input[type="number"] {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.32);
  color: #fff;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}

.rcon-actions .btn {
  min-width: 170px;
}


/* RCON level probe fixed */
.rcon-probe-group {
  margin-top: 20px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.20);
}

.rcon-probe-group h3 {
  margin: 0 0 12px;
  color: #fde68a;
}

.rcon-test-form input[type="text"],
.rcon-test-form input[type="number"] {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.32);
  color: #fff;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}

.rcon-actions .btn {
  min-width: 170px;
}


/* SHOP ONLINE V3 */
.shop-message {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(2,6,15,.72);
  box-shadow: 0 16px 46px rgba(0,0,0,.24);
}

.shop-message p {
  margin: 6px 0;
  color: #e5e7eb;
  font-weight: 800;
}

.shop-message.success {
  border-color: rgba(52,211,153,.30);
  background: rgba(6,78,59,.24);
}

.shop-message.error {
  border-color: rgba(248,113,113,.35);
  background: rgba(127,29,29,.24);
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.shop-item-card,
.shop-safety-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 30px;
  border: 1px solid rgba(251,191,36,.18);
  background:
    linear-gradient(135deg, rgba(4,10,22,.88), rgba(3,7,18,.76)),
    url("assets/epic-bg-section.png") center/cover no-repeat;
  box-shadow: 0 22px 70px rgba(0,0,0,.38);
}

.shop-item-card::before,
.shop-safety-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(251,191,36,.12), transparent 32%),
    radial-gradient(circle at 90% 85%, rgba(220,38,38,.12), transparent 34%);
  pointer-events: none;
}

.shop-item-card > *,
.shop-safety-card > * {
  position: relative;
  z-index: 1;
}

.shop-item-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  font-size: 32px;
  margin-bottom: 18px;
}

.shop-item-card h2,
.shop-safety-card h2 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.shop-item-card p,
.shop-safety-card p {
  color: #dbe3ef;
  line-height: 1.68;
}

.shop-buy-form {
  margin-top: 22px;
}

.shop-buy-form .btn {
  width: 100%;
}

.shop-warning {
  color: #fecaca !important;
  font-weight: 850;
}

.shop-ok {
  color: #bbf7d0 !important;
  font-weight: 850;
}

.disabled-shop {
  opacity: .82;
}

.shop-safety-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 22px;
  align-items: center;
}

.shop-safety-card .shop-lock-icon {
  width: 84px;
  height: 84px;
}

button[disabled],
.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
}

@media (max-width: 820px) {
  .shop-grid,
  .shop-safety-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shop-item-card,
  .shop-safety-card {
    padding: 22px;
    border-radius: 24px;
  }

  .shop-item-card .btn,
  .shop-safety-card .btn {
    width: 100%;
  }
}


/* SKILLS VIEWER V1 */
.skills-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skills-summary-grid article,
.skills-note-card,
.skill-group-card {
  border-radius: 28px;
  border: 1px solid rgba(251,191,36,.16);
  background: rgba(2, 6, 15, .78);
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
}

.skills-summary-grid article {
  padding: 22px;
}

.skills-summary-grid small {
  display: block;
  color: #9aa4b2;
  margin-bottom: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.skills-summary-grid strong {
  display: block;
  color: #fff;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.skills-note-card {
  padding: clamp(22px, 4vw, 32px);
}

.skills-note-card h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.skills-note-card p {
  color: #dbe3ef;
  line-height: 1.68;
}

.skills-note-card.warning {
  border-color: rgba(248,113,113,.26);
  background: rgba(127,29,29,.18);
}

.skill-group-card {
  padding: clamp(22px, 4vw, 32px);
  overflow: hidden;
  position: relative;
}

.skill-group-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(220,38,38,.12), transparent 32%),
    radial-gradient(circle at 95% 90%, rgba(251,191,36,.10), transparent 32%);
  pointer-events: none;
}

.skill-group-card > * {
  position: relative;
  z-index: 1;
}

.skill-group-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.skill-group-head h2 {
  margin: 14px 0 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.skill-group-used {
  min-width: 130px;
  padding: 16px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.skill-group-used span {
  display: block;
  color: #fff;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.skill-group-used small {
  display: block;
  color: #cbd5e1;
  margin-top: 6px;
  font-weight: 800;
}

.skill-list {
  display: grid;
  gap: 14px;
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 220px 190px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
}

.skill-main h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.skill-main p {
  margin: 0 0 10px;
  color: #cbd5e1;
  line-height: 1.5;
}

.skill-main code {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.30);
  color: #fde68a;
  font-size: 12px;
}

.skill-meter {
  display: grid;
  gap: 10px;
}

.skill-level strong {
  font-size: 34px;
  line-height: 1;
}

.skill-level span {
  color: #94a3b8;
  font-weight: 900;
  margin-left: 3px;
}

.skill-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.skill-bars span {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.07);
}

.skill-bars span.active {
  background: linear-gradient(90deg, rgba(251,191,36,.95), rgba(220,38,38,.80));
  border-color: rgba(251,191,36,.40);
}

.skill-cost {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.skill-cost strong {
  color: #fff;
  font-size: 22px;
}

.skill-cost small {
  color: #cbd5e1;
  font-weight: 800;
}

.skill-cost .btn {
  width: 100%;
  margin-top: 6px;
}

@media (max-width: 980px) {
  .skills-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-row {
    grid-template-columns: 1fr;
  }

  .skill-meter {
    max-width: 320px;
  }

  .skill-cost {
    max-width: 320px;
  }
}

@media (max-width: 560px) {
  .skills-summary-grid {
    grid-template-columns: 1fr;
  }

  .skill-group-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .skill-group-used {
    width: 100%;
  }

  .skill-row {
    padding: 16px;
  }

  .skill-meter,
  .skill-cost {
    max-width: 100%;
  }
}


/* SKILLS VIEWER V2 - paths */
.skills-note-card.path-note {
  border-color: rgba(96,165,250,.22);
  background: rgba(30,64,175,.16);
}

.skill-path-sith {
  border-color: rgba(248,113,113,.24);
}

.skill-path-jedi {
  border-color: rgba(96,165,250,.26);
}

.skill-path-merc {
  border-color: rgba(251,191,36,.26);
}

.skill-path-force {
  border-color: rgba(45,212,191,.22);
}

.skill-path-saber {
  border-color: rgba(203,213,225,.18);
}


/* SKILLS VIEWER V3 - blocked branches */
.skill-path-neutral {
  border-color: rgba(45,212,191,.22);
}

.skill-group-blocked {
  opacity: .74;
  border-color: rgba(248,113,113,.24);
  filter: grayscale(.2);
}

.blocked-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(248,113,113,.35);
  background: rgba(127,29,29,.26);
  color: #fecaca;
  font-weight: 950;
}

.blocked-panel {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(248,113,113,.22);
  background: rgba(127,29,29,.18);
}

.blocked-panel strong {
  display: block;
  color: #fecaca;
  font-size: 22px;
  margin-bottom: 8px;
}

.blocked-panel p {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.62;
}


/* SKILLS VIEWER V4 - real Lugormod names */
.skill-main h3 {
  letter-spacing: -0.02em;
}

.skill-main code {
  opacity: .86;
}


/* SKILLS VIEWER V5 - image backgrounds per skill */
.skill-row {
  position: relative;
  overflow: hidden;
}

.skill-row.has-skill-bg {
  background:
    linear-gradient(90deg, rgba(2,6,15,.78) 0%, rgba(2,6,15,.58) 42%, rgba(2,6,15,.38) 100%),
    var(--skill-bg) center/cover no-repeat;
  border-color: rgba(251,191,36,.18);
}

.skill-row.has-skill-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(251,191,36,.10), transparent 30%),
    radial-gradient(circle at 82% 42%, rgba(220,38,38,.12), transparent 38%);
  pointer-events: none;
  z-index: 0;
}

.skill-row.has-skill-bg > * {
  position: relative;
  z-index: 1;
}

.skill-row.has-skill-bg .skill-main p,
.skill-row.has-skill-bg .skill-cost small {
  text-shadow: 0 2px 10px rgba(0,0,0,.85);
}

.skill-row.has-skill-bg .skill-main h3,
.skill-row.has-skill-bg .skill-level strong,
.skill-row.has-skill-bg .skill-cost strong {
  text-shadow: 0 3px 14px rgba(0,0,0,.95);
}

@media (max-width: 560px) {
  .skill-row.has-skill-bg {
    background:
      linear-gradient(180deg, rgba(2,6,15,.82) 0%, rgba(2,6,15,.66) 54%, rgba(2,6,15,.52) 100%),
      var(--skill-bg) center/cover no-repeat;
  }
}


/* SKILLS VIEWER V6 - Jedi generated backgrounds */
.skill-path-jedi .skill-row.has-skill-bg {
  border-color: rgba(96, 165, 250, .28);
}


/* SKILLS VIEWER V7 - Sith + Neutral generated backgrounds */
.skill-path-neutral .skill-row.has-skill-bg {
  border-color: rgba(45, 212, 191, .30);
}

.skill-path-sith .skill-row.has-skill-bg {
  border-color: rgba(248, 113, 113, .32);
}

.skill-path-neutral .skill-row.has-skill-bg::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(45,212,191,.14), transparent 32%),
    radial-gradient(circle at 82% 42%, rgba(96,165,250,.12), transparent 38%);
}

.skill-path-sith .skill-row.has-skill-bg::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(248,113,113,.18), transparent 32%),
    radial-gradient(circle at 82% 42%, rgba(127,29,29,.18), transparent 38%);
}


/* SKILLS VIEWER V9 - Mercenary generated backgrounds */
.skill-path-merc .skill-row.has-skill-bg {
  border-color: rgba(251, 191, 36, .34);
}

.skill-path-merc .skill-row.has-skill-bg::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(251,191,36,.15), transparent 32%),
    radial-gradient(circle at 82% 42%, rgba(249,115,22,.18), transparent 38%);
}


/* SKILLS BUY V1 */
.skill-buy-form {
  width: 100%;
  margin: 0;
}

.skill-buy-form .btn {
  width: 100%;
}

.skills-note-card.success {
  border-color: rgba(34, 197, 94, .45);
  background: linear-gradient(135deg, rgba(8, 48, 30, .82), rgba(4, 12, 20, .92));
}

.skills-note-card.success h2 {
  color: #86efac;
}

.skills-note-card.danger {
  border-color: rgba(248, 113, 113, .55);
  background: linear-gradient(135deg, rgba(80, 16, 16, .84), rgba(4, 12, 20, .94));
}

.skills-note-card.danger h2 {
  color: #fecaca;
}

.skill-cost .btn[disabled] {
  opacity: .65;
  cursor: not-allowed;
}


/* KOC SHOP VISUAL IDENTITY V2 - fondos por función */
.player-hero-card.shop-hero-card {
  background:
    linear-gradient(90deg, rgba(6, 3, 8, .92) 0%, rgba(45, 8, 14, .78) 45%, rgba(3, 8, 20, .86) 100%),
    radial-gradient(circle at 18% 20%, rgba(251,191,36,.16), transparent 32%),
    url("assets/shop/hero-shop.jpg") center/cover no-repeat;
  border-color: rgba(251,191,36,.30);
}

.player-hero-card.shop-hero-card::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(251,191,36,.16), transparent 28%),
    radial-gradient(circle at 82% 86%, rgba(220,38,38,.18), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.28));
}

.shop-item-card.shop-card-level-force {
  background:
    linear-gradient(135deg, rgba(2, 6, 18, .91), rgba(23, 37, 84, .58)),
    radial-gradient(circle at 22% 18%, rgba(96,165,250,.20), transparent 34%),
    url("assets/shop/level-force.jpg") center/cover no-repeat;
  border-color: rgba(96,165,250,.24);
}

.shop-item-card.shop-card-level-force::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(96,165,250,.20), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(251,191,36,.12), transparent 32%),
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.30));
}

.shop-item-card.shop-card-level-merc {
  background:
    linear-gradient(135deg, rgba(7, 10, 18, .92), rgba(58, 36, 8, .66)),
    radial-gradient(circle at 20% 18%, rgba(251,191,36,.18), transparent 36%),
    url("assets/shop/level-merc.jpg") center/cover no-repeat;
  border-color: rgba(251,191,36,.26);
}

.shop-item-card.shop-card-level-merc::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(251,191,36,.18), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(34,197,94,.10), transparent 32%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.34));
}

.shop-item-card.shop-card-skills-force {
  background:
    linear-gradient(135deg, rgba(13, 5, 14, .91), rgba(66, 9, 16, .60)),
    radial-gradient(circle at 25% 22%, rgba(220,38,38,.20), transparent 35%),
    url("assets/shop/skills-force.jpg") center/cover no-repeat;
  border-color: rgba(248,113,113,.24);
}

.shop-item-card.shop-card-skills-force::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(248,113,113,.18), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(96,165,250,.16), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.34));
}

.shop-item-card.shop-card-skills-merc {
  background:
    linear-gradient(135deg, rgba(4, 10, 22, .92), rgba(74, 48, 12, .62)),
    radial-gradient(circle at 22% 18%, rgba(251,191,36,.18), transparent 35%),
    url("assets/shop/skills-merc.jpg") center/cover no-repeat;
  border-color: rgba(251,191,36,.26);
}

.shop-item-card.shop-card-skills-merc::before {
  background:
    radial-gradient(circle at 20% 14%, rgba(251,191,36,.18), transparent 32%),
    radial-gradient(circle at 90% 84%, rgba(34,197,94,.12), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.36));
}

.shop-safety-card.shop-card-security-force {
  background:
    linear-gradient(135deg, rgba(2, 6, 15, .92), rgba(9, 32, 54, .60)),
    radial-gradient(circle at 18% 20%, rgba(34,197,94,.13), transparent 34%),
    url("assets/shop/security-lab.jpg") center/cover no-repeat;
  border-color: rgba(34,197,94,.20);
}

.shop-safety-card.shop-card-security-force::before {
  background:
    radial-gradient(circle at 14% 24%, rgba(34,197,94,.15), transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.40));
}

.shop-safety-card.shop-card-security-merc {
  background:
    linear-gradient(135deg, rgba(6, 10, 16, .92), rgba(42, 30, 8, .66)),
    radial-gradient(circle at 18% 20%, rgba(251,191,36,.14), transparent 34%),
    url("assets/shop/security-lab.jpg") center/cover no-repeat;
  border-color: rgba(251,191,36,.24);
}

.shop-safety-card.shop-card-security-merc::before {
  background:
    radial-gradient(circle at 14% 24%, rgba(251,191,36,.14), transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,.20), rgba(0,0,0,.44));
}

.shop-item-card h2,
.shop-safety-card h2,
.player-hero-copy h1 {
  text-shadow: 0 8px 28px rgba(0,0,0,.58);
}

.shop-item-card p,
.shop-safety-card p,
.player-hero-copy p {
  text-shadow: 0 4px 18px rgba(0,0,0,.42);
}

/* KOC SKILLS VISUAL IDENTITY V2 - fondos personalizados por profesión y rama */
.player-hero-card.skills-hero-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(251,191,36,.24);
  background:
    linear-gradient(90deg, rgba(3,7,18,.94) 0%, rgba(15,23,42,.72) 52%, rgba(3,7,18,.88) 100%),
    url("assets/shop/skills-force.jpg") center/cover no-repeat;
}

.player-hero-card.skills-hero-card::before {
  background:
    radial-gradient(circle at 14% 18%, rgba(96,165,250,.18), transparent 32%),
    radial-gradient(circle at 86% 82%, rgba(220,38,38,.16), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.30));
}

.player-hero-card.skills-hero-merc {
  background:
    linear-gradient(90deg, rgba(3,7,18,.94) 0%, rgba(42,30,8,.66) 52%, rgba(3,7,18,.90) 100%),
    url("assets/shop/skills-merc.jpg") center/cover no-repeat;
  border-color: rgba(251,191,36,.30);
}

.player-hero-card.skills-hero-jedi {
  background:
    linear-gradient(90deg, rgba(3,7,18,.94) 0%, rgba(30,64,175,.55) 52%, rgba(3,7,18,.90) 100%),
    url("assets/shop/level-force.jpg") center/cover no-repeat;
  border-color: rgba(96,165,250,.30);
}

.player-hero-card.skills-hero-sith {
  background:
    linear-gradient(90deg, rgba(3,7,18,.94) 0%, rgba(127,29,29,.56) 52%, rgba(3,7,18,.90) 100%),
    url("assets/shop/skills-force.jpg") center/cover no-repeat;
  border-color: rgba(248,113,113,.32);
}

.skill-group-card.skill-path-neutral,
.skill-group-card.skill-path-jedi,
.skill-group-card.skill-path-sith,
.skill-group-card.skill-path-saber,
.skill-group-card.skill-path-merc {
  background:
    linear-gradient(135deg, rgba(2,6,15,.90), rgba(2,6,15,.74)),
    var(--group-bg) center/cover no-repeat;
}

.skill-group-card.skill-path-neutral { --group-bg: url("assets/skills/neutral/push-bg.png"); }
.skill-group-card.skill-path-jedi { --group-bg: url("assets/shop/level-force.jpg"); }
.skill-group-card.skill-path-sith { --group-bg: url("assets/shop/skills-force.jpg"); }
.skill-group-card.skill-path-saber { --group-bg: url("assets/skills/saber/attack-bg.png"); }
.skill-group-card.skill-path-merc { --group-bg: url("assets/shop/skills-merc.jpg"); }

.skill-group-card.skill-path-neutral::before,
.skill-group-card.skill-path-jedi::before,
.skill-group-card.skill-path-sith::before,
.skill-group-card.skill-path-saber::before,
.skill-group-card.skill-path-merc::before {
  background:
    radial-gradient(circle at 12% 8%, rgba(251,191,36,.10), transparent 32%),
    radial-gradient(circle at 92% 86%, rgba(0,0,0,.34), transparent 44%),
    linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.46));
}

.skill-path-jedi .section-kicker,
.skill-path-neutral .section-kicker,
.skill-path-saber .section-kicker {
  color: #bfdbfe !important;
}

.skill-path-sith .section-kicker {
  color: #fecaca !important;
}

.skill-path-merc .section-kicker {
  color: #fde68a !important;
}

.skill-row.has-skill-bg {
  min-height: 210px;
  background:
    linear-gradient(90deg, rgba(2,6,15,.86) 0%, rgba(2,6,15,.64) 44%, rgba(2,6,15,.32) 100%),
    var(--skill-bg) center/cover no-repeat;
}

.skill-row.has-skill-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.20));
  pointer-events: none;
  z-index: 0;
}

.skill-row.has-skill-bg > * {
  z-index: 2;
}

.skill-path-jedi .skill-bars span.active,
.skill-path-neutral .skill-bars span.active,
.skill-path-saber .skill-bars span.active {
  background: linear-gradient(90deg, rgba(96,165,250,.95), rgba(34,197,94,.86));
  border-color: rgba(147,197,253,.45);
}

.skill-path-sith .skill-bars span.active {
  background: linear-gradient(90deg, rgba(248,113,113,.96), rgba(127,29,29,.90));
  border-color: rgba(248,113,113,.50);
}

.skill-path-merc .skill-bars span.active {
  background: linear-gradient(90deg, rgba(251,191,36,.96), rgba(249,115,22,.86));
  border-color: rgba(251,191,36,.50);
}

.skills-note-card.warning p {
  color: #e5e7eb;
}

@media (max-width: 560px) {
  .skill-row.has-skill-bg {
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(2,6,15,.90) 0%, rgba(2,6,15,.72) 58%, rgba(2,6,15,.58) 100%),
      var(--skill-bg) center/cover no-repeat;
  }
}


/* =====================================================
   SKILLS HEADER + COST RULE V4
===================================================== */

.player-hero-card.skills-hero-card {
  min-height: 310px;
  background:
    linear-gradient(90deg, rgba(3,7,18,.94) 0%, rgba(15,23,42,.64) 52%, rgba(3,7,18,.90) 100%),
    url("assets/skills/headers/skills-hero-general.jpg") center/cover no-repeat;
  border-color: rgba(251,191,36,.28);
}

.player-hero-card.skills-hero-jedi {
  background:
    linear-gradient(90deg, rgba(3,7,18,.94) 0%, rgba(30,64,175,.50) 52%, rgba(3,7,18,.90) 100%),
    url("assets/skills/headers/skills-hero-jedi.jpg") center/cover no-repeat;
  border-color: rgba(96,165,250,.32);
}

.player-hero-card.skills-hero-sith {
  background:
    linear-gradient(90deg, rgba(3,7,18,.94) 0%, rgba(127,29,29,.52) 52%, rgba(3,7,18,.90) 100%),
    url("assets/skills/headers/skills-hero-sith.jpg") center/cover no-repeat;
  border-color: rgba(248,113,113,.34);
}

.player-hero-card.skills-hero-merc {
  background:
    linear-gradient(90deg, rgba(3,7,18,.94) 0%, rgba(58,36,8,.54) 52%, rgba(3,7,18,.90) 100%),
    url("assets/skills/headers/skills-hero-merc.jpg") center/cover no-repeat;
  border-color: rgba(251,191,36,.32);
}

.player-hero-card.skills-hero-undecided,
.player-hero-card.skills-hero-none {
  background:
    linear-gradient(90deg, rgba(3,7,18,.94) 0%, rgba(30,41,59,.62) 52%, rgba(3,7,18,.90) 100%),
    url("assets/skills/headers/skills-hero-general.jpg") center/cover no-repeat;
}

.skills-cost-rule-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 30px;
  border: 1px solid rgba(251,191,36,.24);
  background:
    linear-gradient(135deg, rgba(2,6,15,.92), rgba(8,13,24,.76)),
    radial-gradient(circle at 12% 20%, rgba(251,191,36,.12), transparent 34%),
    url("assets/skills/headers/skills-hero-general.jpg") center/cover no-repeat;
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
}

.skills-cost-rule-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.48)),
    radial-gradient(circle at 90% 12%, rgba(96,165,250,.10), transparent 30%);
  pointer-events: none;
}

.skills-cost-rule-card > * {
  position: relative;
  z-index: 1;
}

.cost-rule-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.cost-rule-head h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.055em;
  line-height: 1;
  text-shadow: 0 8px 28px rgba(0,0,0,.55);
}

.cost-rule-head p,
.cost-rule-tip {
  max-width: 820px;
  color: #dbe3ef;
  line-height: 1.7;
  margin: 0;
}

.cost-rule-max {
  min-width: 112px;
  min-height: 96px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(251,191,36,.25);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.cost-rule-max strong {
  display: block;
  color: #fff;
  font-size: 42px;
  line-height: .9;
}

.cost-rule-max small {
  display: block;
  margin-top: 6px;
  color: #cbd5e1;
  font-weight: 850;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .06em;
}

.cost-rule-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 18px;
}

.cost-step {
  padding: 16px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  box-shadow: 0 14px 40px rgba(0,0,0,.26);
}

.cost-step span {
  display: block;
  margin-bottom: 8px;
  color: #93c5fd;
  font-weight: 950;
  letter-spacing: .04em;
}

.cost-step strong {
  display: block;
  color: #fde68a;
  font-size: 20px;
}

.cost-rule-tip {
  padding-top: 6px;
  color: #e5e7eb;
}

.cost-rule-tip strong {
  color: #bbf7d0;
}

@media (max-width: 900px) {
  .cost-rule-head {
    flex-direction: column;
  }

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

@media (max-width: 520px) {
  .cost-rule-steps {
    grid-template-columns: 1fr;
  }
}


/* KOC SKILLS CLEAN UI - ocultar identificadores internos de campos */
.skill-code,
.skill-field,
.skill-key,
.skill-id,
.skill-row code {
  display: none !important;
}


/* KOC pending purchase auto refresh */
.koc-pending-refresh-note {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: min(720px, calc(100vw - 28px));
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.35);
  background: rgba(2, 20, 14, .92);
  color: #bbf7d0;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
}


/* KOC pending lightweight status */
.koc-pending-refresh-note {
  pointer-events: none;
  font-size: 14px;
}


/* KOC bottom toast purchase messages */
.koc-message-collapsed {
  display: none !important;
}

.koc-bottom-toast {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 125%);
  z-index: 10000;
  width: min(760px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(135deg, rgba(2,6,15,.96), rgba(6,18,28,.94));
  color: #e5e7eb;
  box-shadow: 0 -18px 80px rgba(0,0,0,.58);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
}

.koc-bottom-toast.show {
  animation: kocToastRise .48s cubic-bezier(.2,.9,.25,1) forwards;
}

.koc-bottom-toast.hide {
  animation: kocToastDrop .55s cubic-bezier(.55,0,.3,1) forwards;
}

.koc-bottom-toast.is-success {
  border-color: rgba(34,197,94,.42);
  background:
    radial-gradient(circle at 12% 0%, rgba(34,197,94,.18), transparent 34%),
    linear-gradient(135deg, rgba(2,20,14,.97), rgba(3,10,18,.94));
}

.koc-bottom-toast.is-pending {
  border-color: rgba(251,191,36,.42);
  background:
    radial-gradient(circle at 12% 0%, rgba(251,191,36,.18), transparent 34%),
    linear-gradient(135deg, rgba(28,20,4,.97), rgba(3,10,18,.94));
}

.koc-bottom-toast.is-error {
  border-color: rgba(248,113,113,.48);
  background:
    radial-gradient(circle at 12% 0%, rgba(248,113,113,.18), transparent 34%),
    linear-gradient(135deg, rgba(34,4,10,.97), rgba(3,10,18,.94));
}

.koc-bottom-toast-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  font-size: 26px;
  font-weight: 950;
}

.koc-bottom-toast.is-success .koc-bottom-toast-icon {
  color: #86efac;
  border-color: rgba(34,197,94,.42);
}

.koc-bottom-toast.is-pending .koc-bottom-toast-icon {
  color: #fde68a;
  border-color: rgba(251,191,36,.42);
}

.koc-bottom-toast.is-error .koc-bottom-toast-icon {
  color: #fecaca;
  border-color: rgba(248,113,113,.42);
}

.koc-bottom-toast-body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.koc-bottom-toast-body strong {
  display: block;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.03em;
}

.koc-bottom-toast-body span {
  display: block;
  color: #dbe3ef;
  line-height: 1.45;
  font-weight: 650;
}

@keyframes kocToastRise {
  from {
    transform: translate(-50%, 125%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes kocToastDrop {
  from {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, 125%);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .koc-bottom-toast {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    padding: 14px 14px;
    border-radius: 20px 20px 0 0;
  }

  .koc-bottom-toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 22px;
  }
}


/* KOC toast v2: ocultar tarjetas grandes de estado de compra */
.koc-message-collapsed,
.koc-message-collapsed * {
  display: none !important;
}


/* KOC toast v3: bandeja animada desde abajo */
.koc-bottom-toast {
  bottom: 0 !important;
  transform: translate3d(-50%, calc(100% + 34px), 0) scale(.985) !important;
  opacity: 0 !important;
  transition:
    transform .62s cubic-bezier(.16, 1, .3, 1),
    opacity .42s ease,
    box-shadow .42s ease !important;
  will-change: transform, opacity;
}

.koc-bottom-toast.is-visible {
  transform: translate3d(-50%, 0, 0) scale(1) !important;
  opacity: 1 !important;
}

.koc-bottom-toast.is-leaving {
  transform: translate3d(-50%, calc(100% + 38px), 0) scale(.985) !important;
  opacity: 0 !important;
}

.koc-bottom-toast.is-confirmed {
  box-shadow: 0 -18px 90px rgba(34,197,94,.22), 0 -18px 80px rgba(0,0,0,.58) !important;
}

.koc-toast-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 7px;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
}

.koc-toast-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #fde68a, transparent);
  animation: kocToastWaitingBar 1.35s ease-in-out infinite;
}

@keyframes kocToastWaitingBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(300%); }
}

/* Desactivar animaciones viejas si estaban cargadas */
.koc-bottom-toast.show,
.koc-bottom-toast.hide {
  animation: none !important;
}


/* KOC toast v4 strict message sizing */
.koc-bottom-toast-body span {
  max-height: 3.2em;
  overflow: hidden;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


.reset-limit-note {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,.68);
  max-width: 240px;
}

button[disabled].btn,
button[disabled].btn-ghost {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.25);
}


.skills-note-card.info {
  border-color: rgba(96,165,250,0.28);
  background: linear-gradient(180deg, rgba(10,18,36,0.92), rgba(6,14,28,0.96));
}

.skills-note-card.info h2 {
  color: #eaf2ff;
}

.skills-note-card.info p strong {
  color: var(--blue);
}

.skill-cost .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.92;
}
