:root {
  --bg: #0b1220;
  --surface: #111827;
  --surface-soft: #1f2937;
  --text: #e5e7eb;
  --accent: #fbbf24;
  --accent-strong: #f59e0b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #090b10 0%, #121827 100%);
}

header.hero {
  padding: 4rem 1.5rem;
  text-align: center;
  background: radial-gradient(circle at top, rgba(251,191,36,.22), transparent 45%), #0a1327;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
}

.hero p {
  max-width: 40rem;
  margin: 0 auto 2rem;
  color: #d1d5db;
  line-height: 1.7;
}

nav {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  background: rgba(251,113,133,.18);
  border: 1px solid rgba(251,113,133,.45);
  padding: 1rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

nav a:hover {
  background: rgba(251,113,133,.32);
  border-color: rgba(251,113,133,.75);
  transform: translateY(-1px);
}

.language-switcher {
  margin-top: 3rem;
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  background: rgba(251,113,133,.12);
  border: 1px solid rgba(251,113,133,.35);
  border-radius: 999px;
}

.language-switcher span {
  font-size: 0.95rem;
}

.language-buttons {
  display: inline-flex;
  gap: 0.5rem;
}

.language-switcher button {
  appearance: none;
  border: 1px solid transparent;
  background: #fb7185;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.language-switcher button:hover,
.language-switcher button:focus {
  background: #fda4af;
  outline: none;
}

.language-switcher button.active {
  background: #fcd34d;
  color: #111827;
  border-color: rgba(20,20,20,.2);
}

.section {
  padding: 4rem 1.5rem;
}

.section-light {
  background: #0d1324;
}

.section-dark {
  background: #090d1b;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.section article {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem;
}

.section article h3 {
  margin-top: 0;
}

.chart-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem;
}

.chart-wrapper {
  margin-top: 1rem;
  width: 100%;
  overflow-x: hidden;
}

.chart-wrapper svg {
  width: 100%;
  min-height: 280px;
  max-height: 420px;
  display: block;
}

.chart-note {
  margin-top: 1rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.compact-list {
  margin-top: 1rem;
  padding-left: 1.25rem;
  color: #d1d5db;
}

.compact-list li {
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.compact-list code {
  font-size: 0.95rem;
}

.level-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
  grid-template-columns: 1fr;
}

.level-card {
  position: relative;
  padding: 1.5rem 1.5rem 1.75rem;
  background-color: rgba(15,23,42,.88);
  background-image: none;
  background-repeat: no-repeat;
  background-size: none;
  background-position: none;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1rem;
  overflow: hidden;
}

.level-image {
  margin: 1.25rem 0 0;
  text-align: center;
}

.level-image img {
  max-width: 120px;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,.2);
}

.level-card::before {
  content: '🎖️';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.4rem;
  color: rgba(251,191,36,.22);
  pointer-events: none;
}

.level-card h3 {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.level-card h3 a {
  color: #fb7185;
  text-decoration: none;
}

.level-card h3 a:hover,
.level-card h3 a:focus {
  color: #fde68a;
}

.gallery-placeholder {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-card {
  padding: 1.5rem;
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(251,191,36,.5);
  border-radius: 1rem;
}

code {
  background: rgba(255,255,255,.08);
  padding: 0.2rem 0.4rem;
  border-radius: 0.35rem;
}

.level-bullets {
  margin: 0.75rem 0 0 1rem;
  padding-left: 1rem;
  color: #d1d5db;
}

.level-bullets li {
  margin-bottom: 0.5rem;
}

.level-bullets .action-subnote {
  display: block;
  margin-top: 0.35rem;
  color: #9ca3af;
  font-size: 0.9em;
  line-height: 1.45;
  font-weight: 400;
}

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.95rem;
  color: #9ca3af;
}

@media (max-width: 640px) {
  nav {
    flex-direction: column;
  }
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: #fbbf24;
  color: #111827;
  border-radius: 999px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
  text-decoration: none;
  font-size: 1.25rem;
  z-index: 50;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.24);
}

.span-attributo {
  font-weight: bold;
  margin-right: 2%;
  font-style: normal;
}

.font-italic {
  /* font-style: italic; */
}

.margin-left {
  margin-left: 4%;
}

.center-img {
  text-align: center;
}

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

th, td {
border: 1px solid #ccc;
padding: 6px;
text-align: center;
}

th {
  background: #0e4187;
}

.best-option {
    color: yellow;
}

.skill {
    font-weight: bold;
  margin-right: 1%;
}

.expurgar {
    background-image: url("assets/images/expurgar.png");
}

.sidequest {
  background-color: #293d34;
}

.sidequest::before {
  content: '🪖' !important;
}
