:root {
  --bg: #07060a;
  --bg-2: #0f0b09;
  --surface: #12131a;
  --surface-2: #181a24;
  --text: #d6cfc4;
  --text-muted: #9a8f80;
  --heading: #fff6e6;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.22);
  --radius: 14px;
  --radius-sm: 8px;

  /* Lich Party — Azul gelo */
  --lich-surface: #0d1520;
  --lich-surface-2: #132030;
  --lich-ice: #69ccf0;
  --lich-ice-2: #b8ecff;
  --lich-border: rgba(105, 204, 240, 0.16);
  --lich-border-strong: rgba(105, 204, 240, 0.36);
  --lich-glow: rgba(105, 204, 240, 0.32);

  /* Lorencia Party — Dourado (inspirado em lorenciaparty.css) */
  --lp-surface: #15100c;
  --lp-surface-2: #1d1610;
  --lp-gold: #f3c66b;
  --lp-gold-2: #ffe6a8;
  --lp-ember: #ff7a3d;
  --lp-border: rgba(243, 198, 107, 0.14);
  --lp-border-strong: rgba(243, 198, 107, 0.32);
  --lp-gold-glow: rgba(243, 198, 107, 0.35);

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg);
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 15% 0%, rgba(105, 204, 240, 0.12), transparent 70%),
    radial-gradient(900px 500px at 85% 0%, rgba(243, 198, 107, 0.14), transparent 70%),
    radial-gradient(800px 500px at 50% 100%, rgba(255, 122, 61, 0.05), transparent 70%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--lp-gold-2);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: #ffffff;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--lp-gold-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.reading-container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

/* ---------- Header & Navigation ---------- */

.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(7, 6, 10, 0.6));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
  border-radius: var(--radius-sm);
}

.brand-link img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
}

.header-nav-group {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nav-link {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link[aria-current="page"] {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.lang-link {
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.lang-link:hover {
  color: var(--heading);
}

.lang-link[aria-current="page"] {
  color: var(--lp-gold-2);
  font-weight: 800;
  background: rgba(243, 198, 107, 0.12);
}

.lang-sep {
  color: var(--text-muted);
  opacity: 0.6;
  user-select: none;
}

/* ---------- Main & Page Intro ---------- */

main.container {
  flex: 1;
  padding-top: 3rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 3.75rem;
}

.hero-section,
.page-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto 1.25rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.brand-subtitle,
.page-lead {
  max-width: 64ch;
  margin: 0 auto;
  font-size: clamp(1rem, 2.3vw, 1.15rem);
  color: var(--text-muted);
}

/* ---------- Server Cards (Home) ---------- */

.servers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.server-card {
  display: flex;
  flex-direction: column;
  padding: 2.25rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.85);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card-lich {
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(105, 204, 240, 0.12), transparent 70%),
    linear-gradient(180deg, var(--lich-surface-2), var(--lich-surface));
  border: 1px solid var(--lich-border);
}

.card-lich:hover {
  border-color: var(--lich-border-strong);
}

.card-lorencia {
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(243, 198, 107, 0.14), transparent 70%),
    linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
  border: 1px solid var(--lp-border);
}

.card-lorencia:hover {
  border-color: var(--lp-border-strong);
}

.card-header {
  margin-bottom: 1.5rem;
}

.game-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.card-lich .game-badge,
.detail-lich .game-badge {
  background: rgba(105, 204, 240, 0.1);
  border: 1px solid var(--lich-border-strong);
  color: var(--lich-ice-2);
}

.card-lorencia .game-badge,
.detail-lorencia .game-badge {
  background: rgba(243, 198, 107, 0.08);
  border: 1px solid var(--lp-border-strong);
  color: var(--lp-gold-2);
}

.server-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.card-lich .server-name,
.detail-lich .server-name {
  color: var(--lich-ice-2);
}

.card-lorencia .server-name,
.detail-lorencia .server-name {
  color: var(--lp-gold-2);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text);
  font-size: 0.98rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.card-lich .feature-list li::before,
.detail-lich .feature-list li::before {
  background-color: var(--lich-ice);
  box-shadow: 0 0 8px var(--lich-glow);
}

.card-lorencia .feature-list li::before,
.detail-lorencia .feature-list li::before {
  background-color: var(--lp-gold);
  box-shadow: 0 0 8px var(--lp-gold-glow);
}

/* ---------- Code / Highlight Boxes ---------- */

.realmlist-box {
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 6, 10, 0.65);
  border: 1px solid var(--lich-border);
}

.realmlist-box.box-lorencia {
  border-color: var(--lp-border);
}

.realmlist-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.realmlist-code {
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--lich-ice-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.box-lorencia .realmlist-code {
  color: var(--lp-gold-2);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--heading);
}

pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

/* ---------- Buttons & Focus ---------- */

.card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.card-more-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-more-link:hover {
  color: var(--heading);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-inline {
  width: auto;
}

.btn-lich {
  background: linear-gradient(180deg, var(--lich-ice-2), var(--lich-ice));
  color: #06131c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 8px 24px -8px var(--lich-glow);
}

.btn-lich:hover {
  background: linear-gradient(180deg, #ffffff, var(--lich-ice-2));
  color: #06131c;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 12px 32px -8px var(--lich-glow);
}

.btn-lich:focus-visible {
  outline: 3px solid var(--lich-ice-2);
  outline-offset: 3px;
}

.btn-lorencia {
  background: linear-gradient(180deg, var(--lp-gold-2), var(--lp-gold));
  color: #1c1004;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 8px 24px -8px var(--lp-gold-glow);
}

.btn-lorencia:hover {
  background: linear-gradient(180deg, #ffffff, var(--lp-gold-2));
  color: #1c1004;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 12px 32px -8px var(--lp-gold-glow);
}

.btn-lorencia:focus-visible {
  outline: 3px solid var(--lp-gold-2);
  outline-offset: 3px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--heading);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Fallback focus para navegadores antigos */
.btn:focus {
  outline: 3px solid var(--heading);
  outline-offset: 3px;
}

.btn:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- Como começar ---------- */

.steps-section {
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  color: var(--heading);
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.steps-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-number {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(243, 198, 107, 0.1);
  border: 1px solid var(--lp-border-strong);
  color: var(--lp-gold-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 0.1rem;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step-text {
  color: var(--heading);
  font-weight: 700;
  font-size: 1rem;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Faixa "Por que a gente faz isso" (Home) ---------- */

.why-banner {
  padding: 2.25rem;
  border-radius: var(--radius);
  background:
    radial-gradient(600px 220px at 0% 50%, rgba(105, 204, 240, 0.08), transparent 70%),
    radial-gradient(600px 220px at 100% 50%, rgba(243, 198, 107, 0.08), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}

.why-content {
  flex: 1 1 420px;
}

.why-content .section-title {
  margin-bottom: 0.6rem;
}

.why-content p {
  color: var(--text);
  max-width: 64ch;
}

.why-action {
  flex-shrink: 0;
}

/* ---------- Servers Page (Secções detalhadas) ---------- */

.server-detail {
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.85);
}

.detail-lich {
  background:
    radial-gradient(650px 300px at 50% 0%, rgba(105, 204, 240, 0.12), transparent 70%),
    linear-gradient(180deg, var(--lich-surface-2), var(--lich-surface));
  border: 1px solid var(--lich-border);
}

.detail-lorencia {
  background:
    radial-gradient(650px 300px at 50% 0%, rgba(243, 198, 107, 0.14), transparent 70%),
    linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
  border: 1px solid var(--lp-border);
}

.detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.detail-subtitle {
  color: var(--text-muted);
  margin-top: 0.4rem;
  max-width: 60ch;
}

.detail-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.detail-block {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 6, 10, 0.45);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-lich .detail-block {
  border-color: var(--lich-border);
}

.detail-lorencia .detail-block {
  border-color: var(--lp-border);
}

.detail-block.block-wide {
  grid-column: 1 / -1;
}

.block-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--heading);
  letter-spacing: 0.02em;
}

.detail-lich .block-title {
  color: var(--lich-ice-2);
}

.detail-lorencia .block-title {
  color: var(--lp-gold-2);
}

.detail-block p {
  font-size: 0.96rem;
  color: var(--text);
}

.detail-block .feature-list {
  margin-bottom: 0;
}

.detail-block .realmlist-box {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.detail-footer {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.detail-contact {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- About Page (Prose, Princípios, FAQ, Contato) ---------- */

.prose-section {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
}

.prose-section p + p {
  margin-top: 1rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.principle-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
}

.principle-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--lp-gold-2);
  margin-bottom: 0.5rem;
}

.principle-card p {
  font-size: 0.95rem;
  color: var(--text);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--lp-border-strong);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lp-gold-2);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
  background: rgba(243, 198, 107, 0.16);
}

.faq-answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--text);
  font-size: 0.96rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.9rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.contact-card.card-lich h3 {
  color: var(--lich-ice-2);
}

.contact-card.card-lorencia h3 {
  color: var(--lp-gold-2);
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--text);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer p {
  max-width: 75ch;
  margin: 0 auto;
}

/* ---------- Responsividade ---------- */

@media (max-width: 820px) {
  .servers-grid,
  .steps-list,
  .detail-blocks,
  .principles-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .header-nav-group {
    justify-content: center;
    width: 100%;
  }

  .why-banner {
    text-align: center;
    justify-content: center;
  }

  .why-action,
  .why-action .btn {
    width: 100%;
  }

  .detail-footer .btn-inline {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .site-header {
    padding: 1rem 0;
  }

  .brand-link img {
    width: 210px;
  }

  .nav-link {
    padding: 0.4rem 0.65rem;
    font-size: 0.88rem;
  }

  main.container {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    gap: 2.5rem;
  }

  .server-card,
  .server-detail,
  .prose-section,
  .why-banner {
    padding: 1.5rem 1.15rem;
  }

  .detail-block,
  .principle-card,
  .contact-card {
    padding: 1.2rem 1rem;
  }

  .step-item {
    padding: 1rem 1.15rem;
  }

  .faq-question {
    padding: 1rem 1.1rem;
    font-size: 0.96rem;
  }

  .faq-answer {
    padding: 0.85rem 1.1rem 1.1rem;
  }
}
