@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #090c16;
  --bg-soft: #0d1122;
  --panel: #12162c;
  --panel-2: #1a2040;
  --text: #eef0fa;
  --muted: #97a0c3;
  --muted-dim: #6b7396;
  --accent: #b98eff;
  --accent-2: #7c9eff;
  --gold: #f5c15c;
  --rose: #ff8fb5;
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.05);
  --aurora: linear-gradient(135deg, #7c9eff 0%, #b98eff 60%, #d29bff 100%);

  /* Apelidos usados pelo CSS do fórum e do perfil.
     Aqueles arquivos foram escritos com outros nomes de variável e com cores
     de fallback do mockup. Mapeando aqui, eles passam a usar a paleta real do
     site sem precisar editar 1.700 linhas de CSS. */
  --surface: var(--panel);
  --surface-2: var(--bg-soft);
  --danger: var(--rose);
  --accent-1: var(--accent);
  --font-display: "Fraunces", serif;
  --font-body: "Manrope", "Segoe UI", Roboto, sans-serif;
  --font-mono: "Space Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), 
    url('../img/Background/Ryza-fundo.webp');
  background-size: cover;
  background-position: center -10%;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Campo de estrelas fixo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 27% 62%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
    radial-gradient(2px 2px at 41% 27%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 78%, rgba(255, 255, 255, 0.35) 50%, transparent 51%),
    radial-gradient(2px 2px at 73% 15%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 52%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 93% 85%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 88%, rgba(255, 255, 255, 0.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 65% 40%, rgba(255, 255, 255, 0.3) 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  top: -10%;
  left: 55%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(124, 158, 255, 0.14), transparent 70%);
  filter: blur(10px);
}
@keyframes twinkle {
  from { opacity: 0.7; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

.topbar, .page, .footer, main, header, footer {
  position: relative;
  z-index: 1;
}

h1, h2, h3, .journal__title, .quest h3, .step-card h3, .formula__step h3,
.release-info h2, .section-head-center h2 {
  font-family: var(--font-display);
}

/* =========================================
   TOPBAR & NAVEGAÇÃO
   ========================================= */
.topbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2.2rem;
  padding: 1rem 1.5rem;
  background: rgba(9, 12, 22, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 20;
  flex-wrap: nowrap;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 1.02rem;
  order: 1;
  flex-shrink: 0;
}

.topbar__avatar {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 0 18px rgba(124, 158, 255, 0.25);
}

.topbar__drawer {
  order: 2;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar__nav a,
.topbar__dropdown-toggle {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.topbar__nav a[aria-current="page"] {
  color: var(--text);
  position: relative;
}
.topbar__nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: -0.3rem;
  height: 2px;
  background: var(--aurora);
  border-radius: 2px;
}

.topbar__nav a:hover,
.topbar__dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.topbar__dropdown-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
  flex-shrink: 0;
}

.topbar__dropdown {
  position: relative;
}

.topbar__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.45rem;
  border-radius: 0.85rem;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  overflow: hidden;
}

.topbar__dropdown:hover .topbar__dropdown-menu,
.topbar__dropdown:focus-within .topbar__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.topbar__dropdown-menu a {
  display: block;
  border-radius: 0.65rem;
  padding: 0.5rem 0.7rem;
}

.topbar__dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.topbar__search {
  position: relative;
  margin-left: auto;
  order: 3;
  flex-shrink: 0;
}

.topbar__search-input {
  width: 220px;
  padding: 8px 44px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}

.topbar__search-input::placeholder {
  color: var(--muted-dim);
}

.topbar__search-input:focus {
  outline: none;
  border-color: rgba(124, 158, 255, 0.7);
}

.topbar__search-button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--aurora);
  color: #0b0e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  z-index: 50;
}

.search-results.hidden {
  display: none;
}

.search-results__heading {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  margin: 0 0 10px 4px;
}

.search-results__empty {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 4px;
}

.search-result {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.search-result:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-result__cover {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  background-color: var(--panel-2);
  background-size: cover;
  background-position: center;
}

.search-result__info h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result__info p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 20px;
  height: 16px;
  flex-shrink: 0;
}

.topbar__hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* =========================================
   MENU MOBILE
   ========================================= */
@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .topbar__hamburger {
    display: flex;
  }

  .topbar__brand[aria-expanded="true"] .topbar__hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .topbar__brand[aria-expanded="true"] .topbar__hamburger span:nth-child(2) {
    opacity: 0;
  }
  .topbar__brand[aria-expanded="true"] .topbar__hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .topbar__drawer {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    background: var(--panel);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
    transition: max-height 0.4s ease, opacity 0.25s ease, transform 0.2s ease;
    z-index: 60;
  }

  .topbar__drawer.is-open {
    max-height: 700px;
    opacity: 1;
    transform: translateY(0);
  }

  .topbar__drawer .topbar__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 1rem;
    width: 100%;
  }

  .topbar__drawer .topbar__nav a,
  .topbar__drawer .topbar__dropdown-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
  }

  .topbar__drawer .topbar__nav a[aria-current="page"] {
    background: rgba(124, 158, 255, 0.12);
  }
  .topbar__drawer .topbar__nav a[aria-current="page"]::after {
    display: none;
  }

  .topbar__drawer .topbar__dropdown {
    width: 100%;
  }

  .topbar__drawer .topbar__dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    color: var(--text) !important;
    background: transparent;
    border: none;
    font: inherit;
    cursor: pointer;
  }

  .topbar__drawer .topbar__dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .topbar__drawer .topbar__dropdown-toggle::after {
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .topbar__drawer .topbar__dropdown.is-open .topbar__dropdown-toggle::after {
    transform: rotate(-135deg);
  }

  .topbar__drawer .topbar__dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    margin-top: 0.4rem;
    box-shadow: none;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0.4rem;
  }

  .topbar__drawer .topbar__dropdown.is-open .topbar__dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  .topbar__drawer .topbar__dropdown-menu a {
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
  }

  .topbar__drawer .topbar__dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .topbar__search-input {
    width: 100%;
  }
  .topbar__search {
    order: 3;
    flex: 1 1 auto;
    min-width: 140px;
  }
}


/* =========================================
   ESTRUTURA GERAL DA PÁGINA (CONTAINER CENTRAL)
   ========================================= */
.page {
  width: min(1260px, 100%);
  margin: 0 auto;
  padding: 2rem 2.5rem 4rem;
  flex: 1;
  background: #0d1122;
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.hidden {
  display: none !important;
}

.footer {
  padding: 2rem 1.25rem;
  text-align: center;
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.82rem;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
  background: rgba(9, 12, 22, 0.95);
}
.footer p {
  margin: 0.2rem 0;
}

.eyebrow {
  margin: 0 0 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-2);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 0 8px rgba(124, 158, 255, 0.7);
}
.section-head-center .eyebrow {
  justify-content: center;
}

h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}


/* =========================================
   SLIDER DE IMAGENS
   ========================================= */
.slider {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slider__image.is-active {
  opacity: 1;
  transform: scale(1);
}

.slider__dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 5;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.65);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  padding: 0;
}
.slider__dot:hover {
  transform: scale(1.1);
}
.slider__dot.is-active {
  background: var(--accent-2);
  transform: scale(1.15);
}


/* =========================================
   HOME: DESIGN UNIFICADO (COM ESPAÇAMENTO INFERIOR)
   ========================================= */
.home-hero-modern {
  width: min(1180px, 100%);
  margin: 0 auto 3rem auto; /* <-- Adicionado espaço aqui embaixo */
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.home-hero-modern::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(124, 158, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.hero-content h1 em {
  font-style: italic;
  font-weight: 500;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 48ch;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.2rem;
  font-family: var(--font-mono);
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-size: 1.35rem;
  color: var(--text);
}
.hero-stats div span {
  font-size: 0.7rem;
  color: var(--muted-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-size: 0.92rem;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--aurora);
  color: #0b0e1a;
  border: none;
  box-shadow: 0 10px 30px rgba(124, 158, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(124, 158, 255, 0.4);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  background: linear-gradient(135deg, #f5c15c, #f0a34a);
  color: #241505;
  box-shadow: 0 10px 26px rgba(245, 193, 92, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(245, 193, 92, 0.35);
}

.latest-release-modern {
  width: min(1180px, 100%);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.latest-release-modern::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(245, 193, 92, 0.1), transparent 70%);
  pointer-events: none;
}
.release-info .tag {
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.release-info .tag::before {
  content: "\2713";
}
.release-info h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 1rem;
}
.release-info p {
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 44ch;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.process-section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-soft);
  position: relative;
}
.section-head-center {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head-center h2 {
  font-weight: 600;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.step-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1.8rem 1.7rem;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.step-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
  display: block;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.step-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.step-icon svg {
  width: 22px;
  height: 22px;
}
.step-card h3 {
  color: var(--text);
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  position: relative;
}
.step-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  position: relative;
}


/* =========================================
   PÁGINA DE PROJETOS & GRID DE JOGOS
   ========================================= */
.library {
  width: min(1100px, 100%);
  margin: 0 auto;
}
.library__header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.library__header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
}
.filter-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.5rem 1.2rem;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  font-weight: 600;
  text-transform: uppercase;
}
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.filter-btn.active {
  background: rgba(124, 158, 255, 0.15);
  border-color: var(--accent-2);
  color: var(--text);
  box-shadow: 0 0 10px rgba(124, 158, 255, 0.2);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.game-card:hover {
  border-color: rgba(124, 158, 255, 0.35);
  transform: translateY(-4px);
}

.game-card--highlight {
  outline: 3px solid #f2c94c;
  outline-offset: 4px;
  border-radius: 12px;
  transition: outline 0.3s ease;
}

.cover {
  height: 270px;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.cover__tag {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.95), rgba(14, 165, 233, 0.95));
  color: #07131f;
  font-weight: 700;
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.28);
}
.cover__tag--active {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.9), rgba(239, 68, 68, 0.9));
  color: #fff7f7;
  box-shadow: 0 4px 14px rgba(248, 113, 113, 0.24);
}
.cover__tag--complete {
  background: linear-gradient(90deg, rgba(134, 239, 172, 0.95), rgba(74, 222, 128, 0.95));
  color: #083b18;
  box-shadow: 0 4px 14px rgba(74, 222, 128, 0.22);
}
.cover__tag--review {
  background: linear-gradient(90deg, rgba(216, 180, 254, 0.95), rgba(192, 132, 252, 0.95));
  color: #2e1065;
  box-shadow: 0 4px 14px rgba(192, 132, 252, 0.24);
}

.game-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}
.game-info h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  min-height: 4.2rem;
}

.stat {
  margin-bottom: 0.3rem;
}
.stat__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.progress-bar {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.1rem;
}
.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.download-actions {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.download-actions__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.download-actions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.download-actions--single .download-actions__grid {
  grid-template-columns: 1fr;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.62rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.download-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}
.download-btn:hover {
  transform: translateY(-2px);
}
.download-btn:hover svg {
  opacity: 1;
}
.download-btn--info:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(239, 68, 68, 0.06));
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pagination__btn--active {
  background: var(--aurora);
  color: #0b0e1a;
  border-color: transparent;
}
.pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}


/* =========================================
   PÁGINA DETALHES DO PROJETO (projeto.html)
   ========================================= */
.project-detail-page {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.project-content-container {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.project-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 5;
}
.project-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  transform: rotate(90deg);
}

.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--accent-2);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.project-head {
  padding: 0.5rem 0 2rem;
}
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge--done {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.project-head h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.meta-row {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.meta-row strong {
  color: var(--text);
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 4rem;
}

.project-main {
  min-width: 0;
}
.viewer {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  width: 100%;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}
.viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
.viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 6px;
  width: 100%;
  min-width: 0;
}
.thumbs::-webkit-scrollbar {
  height: 6px;
}
.thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
}
.thumb {
  flex: 0 0 110px;
  aspect-ratio: 16/10;
  border-radius: 8px;
  background: rgba(0,0,0,0.5);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb:hover {
  opacity: 1;
}
.thumb.active {
  border-color: var(--accent-2);
  opacity: 1;
}

.content-block {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
.block-tag {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  display: block;
  margin-bottom: 0.8rem;
}
.content-block p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.author-note {
  border-left: 3px solid var(--accent-2);
  background: rgba(18, 22, 44, 0.6);
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.author-who {
  font-style: normal;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.9rem;
}

.content-block--history .block-tag {
  color: #fbbf24;
}
.content-block--history p {
  border-left: 3px solid #fbbf24;
  background: rgba(18, 22, 44, 0.6);
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.content-block--note .block-tag {
  color: #76ec48;
}
#authorsContainer .author-note + .author-note {
  margin-top: 1rem;
}

.project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 90px;
}
.sidebar-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}
.share-copied {
  background: rgba(34, 197, 94, 0.25) !important;
  border-color: rgba(34, 197, 94, 0.6) !important;
  color: #22c55e !important;
}
.sidebar-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
}
.sidebar-card__head h3 {
  margin: 0;
}
.size-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.size-badge {
  display: inline-flex;
  align-items: center;
  text-transform: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.size-badge--pc {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.size-badge--switch {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.size-badge--neutral {
  background: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.sidebar-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin: 0 0 1.2rem;
}

.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.dl-btn:last-of-type {
  margin-bottom: 0;
}
.dl-btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}
.dl-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}
.dl-btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}
.dl-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.dl-btn--switch {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}
.dl-btn--switch:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.25);
}

.credit-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.credit-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.credit-role {
  color: var(--muted);
}
.credit-name {
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.steam-banner-card {
  display: flex;
  align-items: center;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(124, 158, 255, 0.3);
  background: var(--panel);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.steam-banner__capsule {
  width: 150px;
  height: 100%;
  flex-shrink: 0;
  background: #000;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.steam-banner__capsule img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.steam-banner__bg {
  flex: 1;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
.steam-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 22, 44, 0.9) 0%, rgba(18, 22, 44, 0.45) 50%, rgba(18, 22, 44, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.5rem;
}
.steam-banner__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 158, 255, 0.6);
  background: linear-gradient(135deg, rgba(124, 158, 255, 0.25), rgba(185, 142, 255, 0.12));
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}
.steam-banner__action-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(124, 158, 255, 0.45), rgba(185, 142, 255, 0.3));
  border-color: rgba(124, 158, 255, 0.95);
  color: #ffffff;
}


/* =========================================
   EQUIPE & PARCEIROS
   ========================================= */
.team {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  column-gap: 2rem;
  row-gap: 0.4rem;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: left;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.profile-card--blue::before { background: linear-gradient(180deg, #38bdf8, #6366f1); }
.profile-card--red::before { background: linear-gradient(180deg, #f87171, #dc2626); }
.profile-card--yellow::before { background: linear-gradient(180deg, #fbbf24, #d97706); }
.profile-card--purple::before { background: linear-gradient(180deg, #a78bfa, #7c3aed); }

.profile-card__photo {
  grid-column: 1;
  grid-row: 1 / -1;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.profile-card h2,
.profile-card__name {
  grid-column: 2;
  margin: 0 0 0.2rem;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
}

.profile-card h4,
.profile-card__nick {
  grid-column: 2;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-card p,
.profile-card__bio {
  grid-column: 2;
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.profile-card__socials {
  grid-column: 2;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.2rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.25rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-btn img,
.social-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.partners-projects {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-soft);
}
.partners-projects .section-head-center {
  text-align: left;
}
.partners-projects .section-head-center .eyebrow {
  justify-content: flex-start;
}
.partners-projects h2 {
  margin: 0.5rem 0 0;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}
.partner-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.partner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 158, 255, 0.35);
}
.partner-card__cover {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.partner-card__info {
  padding: 1.1rem 1.2rem 1.3rem;
}
.partner-card__info h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.partner-card__group {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* =========================================
   WALLPAPERS ESPECÍFICOS & RESPONSIVIDADE
   ========================================= */
body.page-phantasie {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), 
    url('../img/Background/Phantasie.webp');
}

body.page-phantasie::after {
  background: radial-gradient(circle, rgba(185, 142, 255, 0.16), transparent 70%);
}

@media (max-width: 900px) {
  .page {
    padding: 2rem 1.25rem 3rem;
    border-left: none;
    border-right: none;
  }
  .home-hero-modern, .latest-release-modern {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .project-layout {
    grid-template-columns: 1fr;
  }
  .project-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .profile-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 1.5rem;
  }
  .profile-card__photo {
    grid-column: 1;
    grid-row: auto;
  }
  .profile-card h2,
  .profile-card__name,
  .profile-card h4,
  .profile-card__nick,
  .profile-card p,
  .profile-card__bio,
  .profile-card__socials {
    grid-column: 1;
  }
  .profile-card__socials {
    justify-content: center;
  }
}

/* =========================================
   NOVO FOOTER ESTILO STEAM
   ========================================= */
.footer-steam {
  background: rgba(7, 10, 18, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3.5rem 2rem 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-steam__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.footer-steam__brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-steam__logos {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-steam__logo-img {
  height: 32px;
  object-fit: contain;
  opacity: 0.9;
}

.footer-steam__legal {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted-dim);
}

.footer-steam__socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-steam__social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  transition: all 0.2s ease;
}

.footer-steam__social-icon:hover {
  background: rgba(124, 158, 255, 0.2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
  color: #fff;
}

.footer-steam__col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-steam__heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.footer-steam__col a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.footer-steam__col a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Responsivo para celulares/tablets */
@media (max-width: 992px) {
  .footer-steam__container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-steam__brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .footer-steam__container {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   ESTILOS COMPACTOS DA PÁGINA DE DOWNLOADS
   ========================================= */
.download-page-section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 1rem 0;
}

.download-container-compact {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.8rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.download-info-compact h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.download-desc {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1.8rem;
}

.download-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 340px;
}

/* Botão personalizado do Linux em tom de rosa alinhado com a identidade do site */
.dl-btn--linux {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.25), rgba(219, 39, 119, 0.35));
  border: 1px solid rgba(244, 114, 182, 0.5);
  color: #fce7f3;
  box-shadow: 0 4px 15px rgba(219, 39, 119, 0.2);
}
.dl-btn--linux:hover {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.4), rgba(219, 39, 119, 0.5));
  border-color: rgba(244, 114, 182, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(219, 39, 119, 0.35);
  color: #fff;
}

.download-preview-compact {
  width: 100%;
}

.installer-gif-wrapper {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.installer-gif-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 900px) {
  .download-container-compact {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .download-buttons-stack {
    max-width: 100%;
  }
}
/* ==========================================================================
   Paginas legais (termos.html, privacidade.html, isencao.html)
   Layout de leitura: coluna estreita, indice lateral e o texto explicado
   em linguagem simples logo abaixo de cada bloco formal.
   ========================================================================== */

.legal-page {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

.legal-nav {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.legal-nav__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 0 0 0.5rem;
}

.legal-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.legal-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--accent);
}

.legal-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(185, 142, 255, 0.1);
  border-left-color: var(--accent);
}

.legal-content {
  min-width: 0;
}

.legal-header {
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin: 0.5rem 0 0.75rem;
}

.legal-header__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-dim);
  margin: 0;
}

.legal-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 6rem;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.legal-section h2 .legal-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  flex-shrink: 0;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.legal-section p {
  margin: 0 0 0.9rem;
}

.legal-section ul {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.legal-section li {
  margin-bottom: 0.45rem;
}

.legal-section strong {
  color: var(--text);
  font-weight: 700;
}

.legal-section a {
  color: var(--accent-2);
}

/* "Em portugues claro": a traducao humana do paragrafo formal acima */
.legal-plain {
  display: block;
  background: rgba(124, 158, 255, 0.07);
  border: 1px solid rgba(124, 158, 255, 0.18);
  border-left: 3px solid var(--accent-2);
  border-radius: 0 12px 12px 0;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1rem;
}

.legal-plain__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.35rem;
}

.legal-plain p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

/* Caixa de destaque para o aviso mais importante da pagina */
.legal-callout {
  background: rgba(245, 193, 92, 0.08);
  border: 1px solid rgba(245, 193, 92, 0.25);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  margin: 0 0 2rem;
}

.legal-callout h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.legal-callout p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.7;
}

.legal-contact {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  margin-top: 2.5rem;
}

.legal-contact h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}

.legal-contact p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.legal-contact .btn-primary {
  display: inline-flex;
}

@media (max-width: 860px) {
  .legal-page {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .legal-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .legal-nav__title {
    width: 100%;
    margin-bottom: 0.25rem;
  }
  .legal-nav a {
    border-left: none;
    border: 1px solid var(--border);
  }
}

/* Links legais no rodape enxuto do projeto.html */
.footer p a {
  color: var(--muted);
  text-decoration: none;
}
.footer p a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* =========================================
   GRID DE 4 CARDS POR LINHA & ESTILOS COMPLETOS
   ========================================= */

.news-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 1.5rem; 
  width: 100%;
}

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

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

.news-card {
  background: var(--panel); 
  border: 1px solid var(--border); 
  border-radius: 14px;
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.news-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4); 
  border-color: rgba(124, 158, 255, 0.35); 
}

.news-card__header { 
  position: relative; 
  height: 160px; 
  width: 100%; 
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.news-card__header img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.news-card__badge {
  position: absolute; 
  bottom: 10px; 
  left: 10px; 
  padding: 0.3rem 0.6rem;
  font-size: 0.65rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  color: #ffffff; 
  letter-spacing: 0.05em;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.badge-blue { background: rgba(59, 130, 246, 0.9); }
.badge-red { background: rgba(239, 68, 68, 0.9); }

.news-card__body { 
  padding: 1.2rem; 
  display: flex; 
  flex-direction: column; 
  flex: 1; 
}
.news-card__meta { 
  font-size: 0.75rem; 
  color: var(--muted-dim); 
  margin-bottom: 0.4rem; 
}
.news-card__title { 
  font-family: var(--font-display); 
  font-size: 1.1rem; 
  font-weight: 600; 
  margin: 0 0 0.4rem 0; 
  color: var(--text); 
}
.news-card__excerpt { 
  font-size: 0.85rem; 
  color: var(--muted); 
  line-height: 1.5; 
  margin: 0; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  line-clamp: 2;
  -webkit-box-orient: vertical; 
  overflow: hidden; 
}

/* =========================================
   ESTILOS COMPLETOS: GRID DE 4 COLUNAS, ROADMAP COM SCROLL HORIZONTAL E DESTAQUES
   ========================================= */

.news-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 1.5rem; 
  width: 100%;
}

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

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

.news-card {
  background: var(--panel); 
  border: 1px solid var(--border); 
  border-radius: 14px;
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.news-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4); 
  border-color: rgba(124, 158, 255, 0.35); 
}

.news-card__header { 
  position: relative; 
  height: 160px; 
  width: 100%; 
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.news-card__header img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.news-card__badge {
  position: absolute; 
  bottom: 10px; 
  left: 10px; 
  padding: 0.3rem 0.6rem;
  font-size: 0.65rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  color: #ffffff; 
  letter-spacing: 0.05em;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.badge-blue { background: rgba(59, 130, 246, 0.9); }
.badge-red { background: rgba(239, 68, 68, 0.9); }

.news-card__body { 
  padding: 1.2rem; 
  display: flex; 
  flex-direction: column; 
  flex: 1; 
}
.news-card__meta { 
  font-size: 0.75rem; 
  color: var(--muted-dim); 
  margin-bottom: 0.4rem; 
}
.news-card__title { 
  font-family: var(--font-display); 
  font-size: 1.1rem; 
  font-weight: 600; 
  margin: 0 0 0.4rem 0; 
  color: var(--text); 
}
.news-card__excerpt { 
  font-size: 0.85rem; 
  color: var(--muted); 
  line-height: 1.5; 
  margin: 0; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  line-clamp: 2;
  -webkit-box-orient: vertical; 
  overflow: hidden; 
}

/* =========================================
   GRID DE 4 CARDS POR LINHA & ESTILOS COMPLETOS
   ========================================= */

.news-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 1.5rem; 
  width: 100%;
}

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

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

.news-card {
  background: var(--panel); 
  border: 1px solid var(--border); 
  border-radius: 14px;
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.news-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4); 
  border-color: rgba(124, 158, 255, 0.35); 
}

.news-card__header { 
  position: relative; 
  height: 160px; 
  width: 100%; 
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.news-card__header img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.news-card__badge {
  position: absolute; 
  bottom: 10px; 
  left: 10px; 
  padding: 0.3rem 0.6rem;
  font-size: 0.65rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  color: #ffffff; 
  letter-spacing: 0.05em;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.badge-blue { background: rgba(59, 130, 246, 0.9); }
.badge-red { background: rgba(239, 68, 68, 0.9); }

.news-card__body { 
  padding: 1.2rem; 
  display: flex; 
  flex-direction: column; 
  flex: 1; 
}
.news-card__meta { 
  font-size: 0.75rem; 
  color: var(--muted-dim); 
  margin-bottom: 0.4rem; 
}
.news-card__title { 
  font-family: var(--font-display); 
  font-size: 1.1rem; 
  font-weight: 600; 
  margin: 0 0 0.4rem 0; 
  color: var(--text); 
}
.news-card__excerpt { 
  font-size: 0.85rem; 
  color: var(--muted); 
  line-height: 1.5; 
  margin: 0; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  line-clamp: 2;
  -webkit-box-orient: vertical; 
  overflow: hidden; 
}

/* =========================================
   GRID DE 4 CARDS POR LINHA & ESTILOS COMPLETOS
   ========================================= */

.news-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 1.5rem; 
  width: 100%;
}

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

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

.news-card {
  background: var(--panel); 
  border: 1px solid var(--border); 
  border-radius: 14px;
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.news-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4); 
  border-color: rgba(124, 158, 255, 0.35); 
}

.news-card__header { 
  position: relative; 
  height: 160px; 
  width: 100%; 
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.news-card__header img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.news-card__badge {
  position: absolute; 
  bottom: 10px; 
  left: 10px; 
  padding: 0.3rem 0.6rem;
  font-size: 0.65rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  color: #ffffff; 
  letter-spacing: 0.05em;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.badge-blue { background: rgba(59, 130, 246, 0.9); }
.badge-red { background: rgba(239, 68, 68, 0.9); }

.news-card__body { 
  padding: 1.2rem; 
  display: flex; 
  flex-direction: column; 
  flex: 1; 
}
.news-card__meta { 
  font-size: 0.75rem; 
  color: var(--muted-dim); 
  margin-bottom: 0.4rem; 
}
.news-card__title { 
  font-family: var(--font-display); 
  font-size: 1.1rem; 
  font-weight: 600; 
  margin: 0 0 0.4rem 0; 
  color: var(--text); 
}
.news-card__excerpt { 
  font-size: 0.85rem; 
  color: var(--muted); 
  line-height: 1.5; 
  margin: 0; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  line-clamp: 2;
  -webkit-box-orient: vertical; 
  overflow: hidden; 
}

/* =========================================
   GRID DE 4 CARDS POR LINHA & ESTILOS COMPLETOS
   ========================================= */

.news-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 1.5rem; 
  width: 100%;
}

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

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

.news-card {
  background: var(--panel); 
  border: 1px solid var(--border); 
  border-radius: 14px;
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.news-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4); 
  border-color: rgba(124, 158, 255, 0.35); 
}

.news-card__header { 
  position: relative; 
  height: 160px; 
  width: 100%; 
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.news-card__header img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.news-card__badge {
  position: absolute; 
  bottom: 10px; 
  left: 10px; 
  padding: 0.3rem 0.6rem;
  font-size: 0.65rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  color: #ffffff; 
  letter-spacing: 0.05em;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.badge-blue { background: rgba(59, 130, 246, 0.9); }
.badge-red { background: rgba(239, 68, 68, 0.9); }

.news-card__body { 
  padding: 1.2rem; 
  display: flex; 
  flex-direction: column; 
  flex: 1; 
}
.news-card__meta { 
  font-size: 0.75rem; 
  color: var(--muted-dim); 
  margin-bottom: 0.4rem; 
}
.news-card__title { 
  font-family: var(--font-display); 
  font-size: 1.1rem; 
  font-weight: 600; 
  margin: 0 0 0.4rem 0; 
  color: var(--text); 
}
.news-card__excerpt { 
  font-size: 0.85rem; 
  color: var(--muted); 
  line-height: 1.5; 
  margin: 0; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  line-clamp: 2;
  -webkit-box-orient: vertical; 
  overflow: hidden; 
}

/* =========================================
   GRID DE 4 CARDS POR LINHA & ESTILOS COMPLETOS
   ========================================= */

.news-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 1.5rem; 
  width: 100%;
}

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

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

.news-card {
  background: var(--panel); 
  border: 1px solid var(--border); 
  border-radius: 14px;
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.news-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4); 
  border-color: rgba(124, 158, 255, 0.35); 
}

.news-card__header { 
  position: relative; 
  height: 160px; 
  width: 100%; 
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.news-card__header img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.news-card__badge {
  position: absolute; 
  bottom: 10px; 
  left: 10px; 
  padding: 0.3rem 0.6rem;
  font-size: 0.65rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  color: #ffffff; 
  letter-spacing: 0.05em;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.badge-blue { background: rgba(59, 130, 246, 0.9); }
.badge-red { background: rgba(239, 68, 68, 0.9); }

.news-card__body { 
  padding: 1.2rem; 
  display: flex; 
  flex-direction: column; 
  flex: 1; 
}
.news-card__meta { 
  font-size: 0.75rem; 
  color: var(--muted-dim); 
  margin-bottom: 0.4rem; 
}
.news-card__title { 
  font-family: var(--font-display); 
  font-size: 1.1rem; 
  font-weight: 600; 
  margin: 0 0 0.4rem 0; 
  color: var(--text); 
}
.news-card__excerpt { 
  font-size: 0.85rem; 
  color: var(--muted); 
  line-height: 1.5; 
  margin: 0; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  line-clamp: 2;
  -webkit-box-orient: vertical; 
  overflow: hidden; 
}

/* =========================================
   GRID DE 4 CARDS POR LINHA & ESTILOS COMPLETOS
   ========================================= */

.news-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 1.5rem; 
  width: 100%;
}

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

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

.news-card {
  background: var(--panel); 
  border: 1px solid var(--border); 
  border-radius: 14px;
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.news-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4); 
  border-color: rgba(124, 158, 255, 0.35); 
}

.news-card__header { 
  position: relative; 
  height: 160px; 
  width: 100%; 
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.news-card__header img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.news-card__badge {
  position: absolute; 
  bottom: 10px; 
  left: 10px; 
  padding: 0.3rem 0.6rem;
  font-size: 0.65rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  color: #ffffff; 
  letter-spacing: 0.05em;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.badge-blue { background: rgba(59, 130, 246, 0.9); }
.badge-red { background: rgba(239, 68, 68, 0.9); }

.news-card__body { 
  padding: 1.2rem; 
  display: flex; 
  flex-direction: column; 
  flex: 1; 
}
.news-card__meta { 
  font-size: 0.75rem; 
  color: var(--muted-dim); 
  margin-bottom: 0.4rem; 
}
.news-card__title { 
  font-family: var(--font-display); 
  font-size: 1.1rem; 
  font-weight: 600; 
  margin: 0 0 0.4rem 0; 
  color: var(--text); 
}
.news-card__excerpt { 
  font-size: 0.85rem; 
  color: var(--muted); 
  line-height: 1.5; 
  margin: 0; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  line-clamp: 2;
  -webkit-box-orient: vertical; 
  overflow: hidden; 
}

/* =========================================
   GRID DE 4 CARDS POR LINHA & ESTILOS COMPLETOS
   ========================================= */

.news-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 1.5rem; 
  width: 100%;
}

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

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

.news-card {
  background: var(--panel); 
  border: 1px solid var(--border); 
  border-radius: 14px;
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.news-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4); 
  border-color: rgba(124, 158, 255, 0.35); 
}

.news-card__header { 
  position: relative; 
  height: 160px; 
  width: 100%; 
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.news-card__header img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.news-card__badge {
  position: absolute; 
  bottom: 10px; 
  left: 10px; 
  padding: 0.3rem 0.6rem;
  font-size: 0.65rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  color: #ffffff; 
  letter-spacing: 0.05em;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.badge-blue { background: rgba(59, 130, 246, 0.9); }
.badge-red { background: rgba(239, 68, 68, 0.9); }

.news-card__body { 
  padding: 1.2rem; 
  display: flex; 
  flex-direction: column; 
  flex: 1; 
}
.news-card__meta { 
  font-size: 0.75rem; 
  color: var(--muted-dim); 
  margin-bottom: 0.4rem; 
}
.news-card__title { 
  font-family: var(--font-display); 
  font-size: 1.1rem; 
  font-weight: 600; 
  margin: 0 0 0.4rem 0; 
  color: var(--text); 
}
.news-card__excerpt { 
  font-size: 0.85rem; 
  color: var(--muted); 
  line-height: 1.5; 
  margin: 0; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  line-clamp: 2;
  -webkit-box-orient: vertical; 
  overflow: hidden; 
}

/* =========================================
   SEÇÃO DE DESTAQUES / MAIS BAIXADAS ABAIXO
   ========================================= */

.popular-section {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-soft);
}

.popular-header {
  margin-bottom: 1.8rem;
}

.popular-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0.3rem 0 0;
  color: var(--text);
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.popular-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.popular-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 158, 255, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.popular-card__cover {
  width: 75px;
  height: 75px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.popular-card__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.popular-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 0.2rem;
}

.popular-card__info h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-card__info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Botão Voltar padronizado e elegante */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--accent-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(124, 158, 255, 0.4);
  transform: translateY(-2px);
}

/* Botão "Mais informações" estilo página de projetos */
.roadmap-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.roadmap-more-btn:hover {
  color: #fff;
  transform: translateX(3px);
}

/* Badge/Tag interna padronizada e sem seleção azul */
.article-badge {
  display: inline-block;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  user-select: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Container Largo da Leitura */
.article-container-wide {
  width: min(1180px, 100%); 
  margin: 0 auto; 
  background: var(--panel); 
  border: 1px solid var(--border);
  border-radius: 24px; 
  padding: 3rem; 
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Roadmap com 5 colunas na mesma tela (Sem Scroll) */
.roadmap-timeline,
.roadmap-5-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0.4rem;
  padding: 1.5rem 0 2rem;
  margin-top: 1.5rem;
  width: 100%;
  overflow-x: visible;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  
  /* O seu código original que deixa os 5 de cima perfeitos: */
  flex: 1; 
  
  /* A ÚNICA trava para o card de baixo não virar um banner: */
  max-width: 190px; 

}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 0.4rem;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Garante que o container pai da timeline organize os itens em linha */
.timeline-wrapper {
  display: flex;
  align-items: flex-start; /* Alinha os itens ao topo */
  width: 100%;
  position: relative;
}

/* Estilo específico para a seta final */
.timeline-arrow-end {
  display: flex;
  align-items: center; /* Centraliza a seta verticalmente */
  justify-content: center;
  height: 100%; /* Faz a div da seta ter a mesma altura da timeline */
  margin-left: -15px; /* Puxa a seta um pouco para a esquerda para sobrepor o card */
  z-index: 10; /* Garante que ela fique por cima de qualquer sombra do card */
  
  /* Ajuste para a cor e tamanho do texto da seta */
  color: #3b82f6 !important; 
  font-weight: bold;
  font-size: 1.2rem;
}

/* 5 Cores Exclusivas para as Datas do Roadmap */
.badge-agosto {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.3));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.badge-setembro {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.3));
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.5);
}

.badge-outubro {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.3));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.badge-novembro {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.3));
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.badge-dezembro {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(91, 33, 182, 0.3));
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.5);
}

.timeline-card {
  background: rgba(9, 12, 22, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%; /* Mantém rigorosamente alinhado */
  transition: transform 0.2s ease;
}
.timeline-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 158, 255, 0.4);
}

.timeline-card img {
  width: 100%;
  height: 145px; /* Levemente otimizado para abrir mais espaço vertical para o texto */
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.timeline-info {
  padding: 0.65rem 0.75rem; /* Padding otimizado */
  display: flex;
  flex-direction: column;
  flex: 1;
}

.timeline-info h3 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  margin: 0 0 0.25rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-info p {
  margin: 0 0 auto 0; 
  font-size: 0.72rem; 
  color: var(--muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 10; /* Expandido para até 7 linhas para acomodar textos maiores perfeitamente */
  line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-2);
  opacity: 0.8;
  flex-shrink: 0;
  padding-top: 2rem;
}

.roadmap-separator {
  margin: 1.5rem 0 2rem 0;
  padding: 2rem;
  background: rgba(18, 22, 44, 0.6);
  border-left: 3px solid var(--accent-2);
  border-radius: 0 16px 16px 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.roadmap-separator p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.escondido { display: none !important; }

/* Botão Verde de Tradução (Idêntico ao padrão original) */
.btn-green, .btn-primary-green {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.95), rgba(34, 197, 94, 0.95));
  color: #083b18;
  border: none;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-green:hover, .btn-primary-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(34, 197, 94, 0.4);
}

/* Correção do Roadmap para Dispositivos Móveis (Celular) */
/* Regras normais dos cards (para computador) */
.timeline-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  width: 100%;
  max-width: 260px !important;
  
  /* A BARREIRA FÍSICA: Isso garante um espaço eterno embaixo de qualquer card que quebre linha */
  margin-bottom: 1.2rem !important; 
}

/* Regras para celular/tablet */
@media (max-width: 900px) {
  .roadmap-timeline,
  .roadmap-5-steps {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
    width: 100% !important;
    overflow-x: visible !important;
    padding: 1rem 0 !important;
  }

  .timeline-arrow {
    display: none !important; /* Oculta as setas para baixo no modo vertical do celular */
  }

  .timeline-card img {
    height: 180px !important; /* Restaura a altura boa da imagem no celular */
  }

  .timeline-info p {
    -webkit-line-clamp: 4 !important; /* Limita o texto de forma agradável no mobile */
    line-clamp: 4 !important;
  }
}

/* =========================================
   CORREÇÃO DA HOME NO CELULAR (MOBILE)
   ========================================= */
@media (max-width: 900px) {
  /* Organiza o hero em flexbox para reorganizar a ordem visual */
  .home-hero-modern {
    display: flex !important;
    flex-direction: column !important;
    padding: 2rem 1.5rem !important;
    text-align: center !important;
  }

  /* Move o slider de imagens para cima dos botões */
  .home-hero-modern > *:nth-child(2) {
    order: -1 !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
  }

  .hero-content {
    display: contents; /* Permite reorganizar os elementos internos livremente */
  }

  .hero-content h1 {
    order: 1 !important;
  }

  .hero-content p {
    order: 2 !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Slider acima dos botões */
  .home-hero-modern .slider {
    order: 3 !important;
    margin-bottom: 2rem !important;
  }

  .hero-actions {
    order: 4 !important;
    justify-content: center !important;
    margin-bottom: 2.5rem !important;
    width: 100%;
  }

  /* Centraliza e alinha perfeitamente os números no celular */
  .hero-stats {
    order: 5 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 1rem !important;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center !important;
  }

  .hero-stats div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-stats div strong {
    font-size: 1.2rem !important;
  }

  .hero-stats div span {
    font-size: 0.62rem !important;
  }
}

/* APAGUE ISSO DO SEU CÓDIGO: */
.roadmap-timeline::after {
  content: "";
  flex: 10; 
}