: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);
  --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;
}

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.6;
  overflow-x: hidden;
}

.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;
}

/* ---------- Header ---------- */

.site-header {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.brand-title {
  margin: 0 auto 0.75rem;
  line-height: 1.1;
  color: var(--heading);
}

.brand-title img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}

.brand-subtitle {
  max-width: 600px;
  margin: 0 auto;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
}

/* ---------- Main ---------- */

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

/* ---------- Server Cards ---------- */

.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 {
  background: rgba(105, 204, 240, 0.1);
  border: 1px solid var(--lich-border-strong);
  color: var(--lich-ice-2);
}

.card-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 {
  color: var(--lich-ice-2);
}

.card-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 {
  background-color: var(--lich-ice);
  box-shadow: 0 0 8px var(--lich-glow);
}

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

/* ---------- Realmlist Code Box ---------- */

.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-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;
}

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

.card-footer {
  margin-top: auto;
}

.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;
}

.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));
  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));
  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;
}

/* 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.05em;
  margin-bottom: 1.75rem;
}

.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: center;
  gap: 1rem;
  padding: 1.25rem 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;
}

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

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

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

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

@media (max-width: 820px) {
  .servers-grid {
    grid-template-columns: 1fr;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }
}

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

  .site-header {
    padding: 2.5rem 0 2rem;
  }

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

  .server-card {
    padding: 1.5rem 1.25rem;
  }

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