:root {
  --bg: radial-gradient(circle, #ffffff 0%, #e9e9e9 80%);
  --text: #181818;
  --header: #fff;
  --text-p: #333;
  --icons-bg: rgb(94 96 206 / 89%);
}

body.dark-mode {
  --bg: radial-gradient(circle, #1f2a3b 0%, #0d121a 80%);
  --text: #f3f3f3;
  --header: #161626;
  --text-p: #b9b8b8;
  --icons-bg: rgba(253, 253, 253, 0.767);
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: #222;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-size: 200% 200%;
  animation: bgMagicShift 3s ease-in-out infinite;
  overflow-x: hidden;
}

@keyframes bgMagic {
  0% {
    background-position: 0% 50%;
    background: radial-gradient(circle, #1f2a3b 0%, #0d121a 80%);
  }
  50% {
    background-position: 100% 50%;
    background: radial-gradient(circle, #2e3b55 0%, #0c111a 90%);
  }
  100% {
    background-position: 0% 50%;
    background: radial-gradient(circle, #1f2a3b 0%, #0d121a 80%);
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

body.dark-mode::before {
  background: radial-gradient(circle, #000000 0%, #30024b 80%);
  animation: pulseMagic 5s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes pulseMagic {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.background-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.dim-particle {
  position: absolute;
  bottom: -10px;
  left: calc(var(--x) * 100%);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 200, 255, 0.8), transparent);
  animation: floatMagic var(--speed) ease-in-out infinite;
  animation-delay: var(--delay);
  filter: blur(1px);
  opacity: 0.7;
}

@keyframes floatMagic {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-110vh) scale(1.2);
    opacity: 0;
  }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4vw 1.2rem 4vw;
  background: #fff;
  box-shadow: 0 1px 6px #0001;
  position: sticky;
  top: 0;
  z-index: 999;
}
#galaxy-blocker {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 30, 90, 0.92);
  backdrop-filter: blur(2px) brightness(0.87);
  color: #fff;
  font-size: 1.35rem;
  font-weight: bold;
  flex-direction: column;
  transition: opacity 0.3s;
  pointer-events: all;
  border-radius: 40% !important;
  display: none;

  background: rgba(20, 20, 40, 0.82);
}
#galaxy-blocker .login-message {
  font-size: 1.13rem;
  margin-bottom: 2rem;
  color: #653aff;
  text-shadow: 0 1px 12px #23243a66;
}
.galaxy-fullscreen-btn {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.5em;
  font-size: 1.3em;
  color: #fff;
  transition: color 0.2s;
}
.galaxy-fullscreen-btn:hover {
  color: #ffe13a;
}
#galaxy-blocker .github-login-btn {
  background: linear-gradient(90deg, #444 30%, #6e5494 90%);
  color: #fff;
  border: none;
  border-radius: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2.1rem;
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 3px 18px #2d225a70;
  transition: background 0.2s, transform 0.13s;
}
#galaxy-blocker .github-login-btn:hover {
  background: linear-gradient(90deg, #6e5494 20%, #444 80%);
  transform: scale(1.03);
}
.logo {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -1px;
  color: var(--text);
}

.logo {
  text-decoration: none;
}
.logo:hover {
  color: #71a6ec;
}

nav a {
  text-decoration: none;
  color: var(--text);
  margin-left: 2rem;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  cursor: pointer;
}

nav a:hover {
  color: #6466f1;
}

nav a.active {
  color: #6466f1;
  font-weight: 700;
  position: relative;
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #6466f1;
  border-radius: 1px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 4rem 2vw 2.2rem 2vw;
  max-width: 900px;
  margin: 0 auto 2.4rem auto;
}

.hero-text {
  flex: 1 1 330px;
  max-width: 420px;
  text-align: left;
  transition: all 0.3s ease;
}

.hero-text h1 {
  font-size: 2.6rem;
  margin: 0 0 0.7rem 0;
  font-weight: 700;
}

.hero-text h2 {
  font-size: 1.16rem;
  color: #5052a6;
  margin: 0 0 0.8rem 0;
  font-weight: 500;
}

.hero-text p {
  font-size: 1.08rem;
  color: var(--text-p);
  margin-bottom: 2rem;
}

.hero-text .btns {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  border-radius: 0.8rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: #5052a6;
  color: #fff;
  box-shadow: 0 2px 8px #0001;
  transition: background 0.2s;
  outline: none;
  text-decoration: none;
  display: inline-block;
}

.btn.outline {
  background: #fff;
  color: #5052a6;
  border: 1.5px solid #5052a6;
}

.btn:hover {
  background: #323478;
}

.btn.outline:hover {
  background: #f4f4ff;
}

.hero-img {
  flex: 0 0 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Efeito de fade só na base da imagem: */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}

.hero-img img {
  width: 500px;
  height: 500px;
  background: transparent;
  object-fit: contain;
  transition: box-shadow 0.2s;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    gap: 2.2rem;
    text-align: center;
  }
  .hero-text {
    text-align: center;
  }
  .hero-img {
    justify-content: center;
  }
}

main {
  padding: 2.5rem 2vw 2vw 2vw;
  max-width: 850px;
  margin: 0 auto;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  color: #223;
  font-weight: 700;
}

.sobre {
  font-size: 1.09rem;
  color: #444;
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.conteudo-destaque {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.card {
  background: #181c2b;
  color: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px #5052a125;
  padding: 1.2rem 1rem 1.1rem 1rem;
  min-width: 210px;
  max-width: 260px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 130px;
  position: relative;
  transition: transform 0.15s, box-shadow 0.2s;
}

.card strong {
  font-size: 1.02rem;
}

.card img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-bottom: 0.4rem;
  background: #fff2;
  object-fit: cover;
  border: 2px solid #2221;
}

.card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 8px 40px #5052a166;
}

.socials {
  margin-top: 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: flex-start;
}

.socials a {
  color: #181c2b;
  font-size: 2rem;
  transition: color 0.2s;
}

.socials a:hover {
  color: #5052a6;
}

.contato-form {
  display: flex;
  flex-direction: column;
  max-width: 340px;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.contato-form input,
.contato-form textarea {
  font-size: 1rem;
  border-radius: 0.6rem;
  border: 1px solid #dbe0fa;
  padding: 0.7rem;
  outline: none;
  background: #fafbff;
  resize: vertical;
  min-height: 44px;
}

.contato-form textarea {
  min-height: 70px;
}

#msgStatus {
  font-size: 0.99rem;
  color: #5052a6;
}

/* Footer do jogo */
.footer-jogo {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #312868;
  border-top: 2px solid #3a0ca3;
  box-shadow: 0 -6px 36px 0 rgba(50, 40, 120, 0.17);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.footer-jogo-container {
  width: 100vw;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.footer-jogo-info {
  width: 100vw;
  text-align: center;
  color: #f1faee;
  margin-top: 1rem;
  margin-bottom: 0.2rem;
}

.footer-jogo-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f1faee;
  margin-bottom: 0.2rem;
}

.footer-jogo-desc {
  color: #d1d5fa;
  font-size: 0.98rem;
  margin-bottom: 0.7rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

#wizard-canvas {
  width: 100vw;
  max-width: 100vw;
  height: 250px;
  display: block;
  outline: 2px solid transparent;
  background: linear-gradient(to top, #1b1450 70%, #5e60ce 100%);
  cursor: pointer;
}

@media (max-width: 900px) {
  #wizard-canvas {
    height: 110px;
  }
}

body,
.container,
main {
  padding-bottom: 220px !important;
}

/* Ícones de redes sociais */
.social-icons-game {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  width: 100%;
}

.social-icon-game {
  color: var(--icons-bg);
  font-size: 1.8rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: visible;
}

.social-icon-game:hover {
  color: #5e60ce;
  background: rgba(94, 96, 206, 0.4);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 15px rgba(94, 96, 206, 0.3);
}

.social-icon-game i {
  transition: transform 0.3s ease;
}

.social-icon-game:hover i {
  transform: scale(1.1);
}

/* Efeito de partículas mágicas */
.social-icon-game::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(94, 96, 206, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.social-icon-game:hover::before {
  transform: translate(-50%, -50%) scale(1.5);
  opacity: 1;
}

/* Partículas mágicas */
.magic-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp 2s ease-out infinite;
}

/* Cores específicas para cada rede social */
.social-icon-game[href*="github"] .particle {
  background: linear-gradient(45deg, #333, #6e5494, #4078c0);
}

.social-icon-game[href*="instagram"] .particle {
  background: linear-gradient(
    45deg,
    #e4405f,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

.social-icon-game[href*="linkedin"] .particle {
  background: linear-gradient(45deg, #0077b5, #00a0dc, #0073b1);
}

.social-icon-game[href*="youtube"] .particle {
  background: linear-gradient(45deg, #ff0000, #ff4444, #cc0000);
}

.particle:nth-child(1) {
  animation-delay: 0s;
  left: 20%;
}

.particle:nth-child(2) {
  animation-delay: 0.3s;
  left: 40%;
}

.particle:nth-child(3) {
  animation-delay: 0.6s;
  left: 60%;
}

.particle:nth-child(4) {
  animation-delay: 0.9s;
  left: 80%;
}

.particle:nth-child(5) {
  animation-delay: 1.2s;
  left: 30%;
}

.particle:nth-child(6) {
  animation-delay: 1.5s;
  left: 70%;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: translateY(-10px) scale(1);
  }
  80% {
    opacity: 0.8;
    transform: translateY(-40px) scale(0.8);
  }
  100% {
    transform: translateY(-60px) scale(0);
    opacity: 0;
  }
}

/* Efeito de brilho pulsante */
.social-icon-game::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -2;
}

/* Brilho específico para cada rede social */
.social-icon-game[href*="github"]::after {
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(64, 120, 192, 0.3),
    transparent
  );
}

.social-icon-game[href*="instagram"]::after {
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(228, 64, 95, 0.3),
    transparent
  );
}

.social-icon-game[href*="linkedin"]::after {
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(0, 119, 181, 0.3),
    transparent
  );
}

.social-icon-game[href*="youtube"]::after {
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 0, 0, 0.3),
    transparent
  );
}

.social-icon-game:hover::after {
  opacity: 1;
  animation: rotateGlow 2s linear infinite;
}

@keyframes rotateGlow {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Efeitos extras para partículas */
.extra-particle {
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
  animation: floatUpExtra 1.5s ease-out forwards !important;
}

/* Cores específicas para partículas extras de cada rede */
.social-icon-game[href*="github"] .extra-particle {
  background: linear-gradient(45deg, #333, #6e5494, #4078c0) !important;
  box-shadow: 0 0 10px rgba(64, 120, 192, 0.6) !important;
}

.social-icon-game[href*="instagram"] .extra-particle {
  background: linear-gradient(45deg, #e4405f, #f09433, #e6683c) !important;
  box-shadow: 0 0 10px rgba(228, 64, 95, 0.6) !important;
}

.social-icon-game[href*="linkedin"] .extra-particle {
  background: linear-gradient(45deg, #0077b5, #00a0dc, #0073b1) !important;
  box-shadow: 0 0 10px rgba(0, 119, 181, 0.6) !important;
}

.social-icon-game[href*="youtube"] .extra-particle {
  background: linear-gradient(45deg, #ff0000, #ff4444, #cc0000) !important;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6) !important;
}

@keyframes floatUpExtra {
  0% {
    transform: translateY(0) scale(0) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: translateY(-15px) scale(1.2) rotate(180deg);
  }
  80% {
    opacity: 0.9;
    transform: translateY(-50px) scale(0.9) rotate(360deg);
  }
  100% {
    transform: translateY(-80px) scale(0) rotate(720deg);
    opacity: 0;
  }
}

/* Efeito de onda de choque no hover */
.social-icon-game:hover .magic-particles::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: shockwave 0.6s ease-out;
  pointer-events: none;
}

/* Onda de choque específica para cada rede social */
.social-icon-game[href*="github"]:hover .magic-particles::before {
  background: radial-gradient(
    circle,
    rgba(64, 120, 192, 0.4) 0%,
    transparent 70%
  );
}

.social-icon-game[href*="instagram"]:hover .magic-particles::before {
  background: radial-gradient(
    circle,
    rgba(228, 64, 95, 0.4) 0%,
    transparent 70%
  );
}

.social-icon-game[href*="linkedin"]:hover .magic-particles::before {
  background: radial-gradient(
    circle,
    rgba(0, 119, 181, 0.4) 0%,
    transparent 70%
  );
}

.social-icon-game[href*="youtube"]:hover .magic-particles::before {
  background: radial-gradient(circle, rgba(255, 0, 0, 0.4) 0%, transparent 70%);
}

@keyframes shockwave {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* Responsividade para mobile */
@media (max-width: 900px) {
  .social-icons-game {
    gap: 1rem;
    padding: 0.8rem 0;
  }

  .social-icon-game {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }

  /* Ajusta partículas para mobile */
  .particle {
    width: 3px;
    height: 3px;
  }

  @keyframes floatUp {
    0% {
      transform: translateY(0) scale(0);
      opacity: 0;
    }
    20% {
      opacity: 1;
      transform: translateY(-8px) scale(1);
    }
    80% {
      opacity: 0.8;
      transform: translateY(-30px) scale(0.8);
    }
    100% {
      transform: translateY(-45px) scale(0);
      opacity: 0;
    }
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1.5rem;
  font-size: 1.3rem;
  color: #6c63ff; /* Cor do ícone, ajuste como quiser */
  transition: color 0.2s;
}

#theme-toggle:hover {
  color: #4034a5;
}

/* Use as variáveis no resto do CSS */
body,
.hero,
.footer-jogo,
header {
  color: var(--text);
}

header {
  background: var(--header);
}

nav {
  display: flex;
  align-items: center;
  position: relative;
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  margin-left: 1.2rem;
  font-size: 1.7rem;
  color: #6c63ff;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 101; /* menu acima */
}

#menu-toggle:focus {
  outline: 2px solid #6466f1;
}

.menu-links {
  display: flex;
  align-items: center;
}

@media (max-width: 800px) {
  .menu-links {
    position: fixed;
    top: 0;
    right: 0;
    background: #fff;
    box-shadow: -2px 0 24px #0003;
    flex-direction: column;
    align-items: flex-end;
    padding: 4.2rem 1.5rem 1.5rem 2.5rem;
    gap: 1.4rem;
    min-width: 55vw;
    max-width: 86vw;
    height: 100vh;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.86, 0, 0.07, 1);
  }
  .dark-mode .menu-links a {
    color: #000000;
  }
  .menu-links.open {
    transform: translateX(0%);
  }
  #menu-toggle {
    display: inline-block;
  }
  nav a {
    margin: 0 0 0.7rem 0 !important;
    font-size: 1.11rem;
  }
  nav {
    flex: 1;
  }
}

@media (max-width: 600px) {
  .menu-links {
    min-width: 90vw;
    max-width: 99vw;
    padding-top: 3.5rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

@media (max-width: 600px) {
  header {
    z-index: 9999;
  }
  body {
    overflow: auto;
  }
  .hero {
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 1vw 0.7rem 1vw;
    gap: 1.1rem;
    max-width: 99vw;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .hero-img {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.4rem;
  }
  .hero-text {
    order: 2; /* texto embaixo */
    width: 100%;
    max-width: 340px;
    text-align: center;
    padding: 0 0.2rem;
  }
  #mage-canvas {
    display: block;
    margin: 0 auto 0.5rem auto;
    background: transparent;
  }
}

@media (max-width: 600px) {
  .footer-jogo,
  #wizard-canvas,
  .footer-jogo-container {
    display: none !important;
  }
  body,
  main {
    padding-bottom: 30px !important;
  }
}

/* --- GALAXY CONTROLS MODERNO --- */
.galaxy-controls-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  justify-content: center;
  position: relative;
  z-index: 100;
  top: 90px;
}

.galaxy-start-btn {
  background: linear-gradient(90deg, #a78bfa 20%, #f472b6 100%);
  color: #fff;
  font-size: 1.22rem;
  font-weight: bold;
  padding: 0.95rem 2.3rem;
  border: none;
  border-radius: 1.2rem;
  box-shadow: 0 6px 26px #f472b666, 0 1.5px 9px #a78bfa88;
  cursor: pointer;
  transition: background 0.25s, transform 0.13s;
  letter-spacing: 0.5px;
  outline: none;
  position: relative;
  overflow: hidden;
}
.galaxy-start-btn:disabled,
.galaxy-start-btn[disabled] {
  background: linear-gradient(90deg, #bbb 20%, #eee 100%) !important;
  color: #888 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.45) brightness(0.91);
  box-shadow: none !important;
  opacity: 0.75;
  transform: none !important;
}

.galaxy-start-btn:hover {
  background: linear-gradient(90deg, #f472b6 10%, #a78bfa 80%);
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 8px 32px #f472b6aa, 0 2px 12px #a78bfa99;
}

.galaxy-zoom-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  background: rgba(36, 32, 65, 0.93);
  border-radius: 1.7rem;
  padding: 1rem 0.7rem;
  box-shadow: 0 4px 18px #a78bfa44, 0 1.5px 6px #f472b666;
  position: absolute;
  top: -40px;
  right: 2vw;
  z-index: 101;
}

.galaxy-zoom-btn {
  background: linear-gradient(90deg, #a78bfa 60%, #f472b6 100%);
  color: #fff;
  font-size: 1.35rem;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px #a78bfa33;
  transition: background 0.18s, transform 0.15s;
}
.galaxy-zoom-btn:active {
  transform: scale(0.97);
}
.galaxy-zoom-btn:hover {
  background: linear-gradient(90deg, #f472b6 30%, #a78bfa 70%);
}

#galaxy-coords {
  position: absolute !important;
  left: 50% !important;
  top: 22px !important;
  transform: translateX(-50%);
  background: rgba(30, 25, 40, 0.93);
  color: #fff;
  font-size: 1rem;
  border-radius: 1.2rem;
  padding: 0.62rem 1.5rem;
  box-shadow: 0 2px 8px #a78bfa22;
  letter-spacing: 0.7px;
  z-index: 9999;
  font-family: "Inter", Arial, sans-serif;
  opacity: 0.98;
  pointer-events: none;
  user-select: text;
  min-width: 80px;
  text-align: center;
}

@media (max-width: 600px) {
  #galaxy-coords {
    font-size: 0.95rem;
    top: 8px !important;
    left: 50% !important;
    transform: translateX(-50%);
    padding: 0.43rem 0.95rem;
    min-width: 52px;
  }
}

@media (max-width: 600px) {
  .galaxy-controls-wrapper {
    gap: 0.7rem;
    flex-direction: column;
    margin-bottom: 0.5rem;
  }
  .galaxy-zoom-group {
    position: static;
    flex-direction: row;
    padding: 0.4rem 0.5rem;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
  }
}

.galaxy-point-highlight {
  z-index: 2;
}
.footer-posts {
  padding: 3rem 1rem;
  background: var(--footer-bg, #191b24);
  color: #f2f2f2;
}
.posts-container {
  max-width: 1100px;
  margin: 0 auto;
}
.posts-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.post-card {
  background: #23243a;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.post-card:hover {
  transform: translateY(-5px) scale(1.03);
}
.post-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.post-content {
  padding: 1rem 1.2rem 1.2rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.post-title {
  font-size: 1.2rem;
  margin: 0.5rem 0 0.5rem 0;
  font-weight: 700;
}
.post-desc {
  font-size: 1rem;
  margin-bottom: 1rem;
  flex: 1;
}
.post-link {
  color: #a78bfa;
  font-weight: bold;
  text-decoration: none;
  align-self: flex-end;
  transition: color 0.2s;
}
.post-link:hover {
  color: #f472b6;
  text-decoration: underline;
}
.footer-galaxy {
  position: relative;
  overflow: visible;
  top: -130px;
  z-index: 999;
  transform-style: preserve-3d;
  transform: rotateX(103deg);
  /* Remova transform inicial daqui! */
  animation: galaxyTilt 1.3s cubic-bezier(0.41, 0.05, 0.61, 1.12) forwards;
  /* forwards = PARA e mantém o último valor! */
}
@keyframes galaxyTilt {
  0% {
    transform: rotateX(23deg);
  }
  30% {
    transform: rotateX(-13deg);
  }
  80% {
    transform: rotateX(23deg);
  }
  90% {
    transform: rotateX(20deg);
  }
  100% {
    transform: rotateX(-13deg);
  }
}

.galaxy-journey-wrapper {
  width: 100vw !important; /* ocupa toda a viewport */
  max-width: 100vw !important;
  min-width: 100vw !important;
  overflow: hidden !important;
  position: relative;
  left: 0;
  right: 0;
  height: 500px;
  margin: 32px auto 0 auto;
  border-radius: 50% !important;
  top: 80px;
  overflow: visible;
  z-index: 0;
}

#galaxy-stars-canvas,
#galaxy-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw !important;
  height: 100% !important;
  pointer-events: none;
}
#galaxy-canvas {
  pointer-events: none;
  z-index: 0;
}
#galaxy-stars-canvas {
  z-index: 0;
}
#galaxy-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw !important;
  height: 100% !important;
  z-index: 0;
  pointer-events: none;
}

#galaxy-canvas,
#galaxy-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw !important;
  height: 100% !important;
  background: radial-gradient(
    ellipse at center,
    rgba(50, 0, 50, 0.08) 40%,
    rgba(30, 10, 40, 0.45) 70%,
    rgba(10, 10, 25, 0.92) 88%,
    rgba(0, 0, 0, 0.88) 90%,
    rgba(0, 0, 0, 0.88) 100%
  );
  border-radius: 40%;
}
.galaxy-point {
  pointer-events: auto; /* para clicar nos pontos */
}
.galaxy-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.galaxy-point:hover,
.galaxy-point.active {
  transform: scale(1.23);
  box-shadow: 0 0 16px 4px #f472b6ee, 0 0 12px #a78bfa;
  border-color: #f472b6;
}
.galaxy-point::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  background: #fff9;
  border-radius: 50%;
  position: absolute;
  left: 11px;
  top: 4px;
  opacity: 0.4;
}
.galaxy-point {
  position: absolute;
  border-radius: 50%;
  border: 2.5px solid #fff4;
  cursor: pointer;
  background: linear-gradient(45deg, #a78bfa, #f472b6);
  box-shadow: 0 0 8px 2px #f472b6bb, 0 0 2px #a78bfa;
  z-index: 2;
  transition: transform 0.1s, box-shadow 0.2s;
  outline: none;
}
.galaxy-point.start {
  border: 2.5px solid #ffe13a;
  box-shadow: 0 0 16px 5px #ffe13a66;
  animation: glowStart 2s infinite alternate;
}
@keyframes glowStart {
  from {
    box-shadow: 0 0 8px 2px #ffe13a44;
  }
  to {
    box-shadow: 0 0 24px 8px #ffe13a99;
  }
}
.galaxy-point.start::before {
  content: "★";
  position: absolute;
  top: -21px;
  left: 8px;
  font-size: 1.2rem;
  color: #ffe13a;
  text-shadow: 0 1px 8px #000, 0 0 2px #ffe13a;
}
.galaxy-journey-wrapper {
  cursor: grab;
}

.galaxy-point-label {
  color: #f2f2f2;
  font-size: 0.8rem;
  text-align: center;
  position: absolute;
  width: 110px;
  left: -40px;
  top: 32px;
  pointer-events: none;
  opacity: 0.92;
  text-shadow: 0 1px 8px #190a3c, 0 0 2px #000;
}

.card-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.card-action-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 0.8rem;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  background: #a78bfa;
  color: #fff;
  transition: background 0.2s;
}
#check-btn {
  background: #16a34a;
}
.card-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.card-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.card-action-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 0.8rem;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  background: #a78bfa;
  color: #fff;
  transition: background 0.2s;
}
#check-btn {
  background: #16a34a;
}
.card-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.floating-card {
  position: fixed;
  z-index: 1010;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  background: #23243a;
  color: #f2f2f2;
  min-width: 320px;
  max-width: 95vw;
  max-height: 82vh;
  overflow-y: auto;
  padding: 2rem 2.5rem 2rem 2rem;
  border-radius: 1.4rem;
  box-shadow: 0 12px 36px #0009, 0 2px 8px #a78bfa33;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  animation: floatIn 0.35s cubic-bezier(0.48, 0.01, 0.58, 1.11);
}
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translate(-50%, -64%) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -48%) scale(1);
  }
}

.floating-card img {
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  border-radius: 1rem;
  background: #2b2e4b;
  margin-bottom: 0.4rem;
  box-shadow: 0 2px 14px #19143c22;
}

.floating-card h3 {
  margin: 0.3rem 0 0.3rem 0;
  font-size: 1.32rem;
  color: #a78bfa;
  font-weight: 700;
  letter-spacing: -1px;
}
.floating-card p {
  margin: 0.3rem 0 0.7rem 0;
  color: #eee;
  font-size: 1.07rem;
}
.floating-card a {
  color: #a78bfa;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.03rem;
  transition: color 0.17s;
  margin-top: 0.5rem;
  align-self: flex-end;
}
.floating-card a:hover {
  color: #f472b6;
  text-decoration: underline;
}
#close-card {
  background: none;
  border: none;
  color: #f472b6;
  font-size: 2rem;
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  cursor: pointer;
  z-index: 2;
  opacity: 0.75;
  transition: color 0.17s;
}
#close-card:hover {
  color: #a78bfa;
  opacity: 1;
}

/* Para tema claro */
body:not(.dark-mode) .floating-card {
  background: #fff;
  color: #23243a;
  box-shadow: 0 8px 36px #4734a71b, 0 1.5px 9px #a78bfa18;
}
body:not(.dark-mode) .floating-card h3 {
  color: #6466f1;
}
body:not(.dark-mode) .floating-card p {
  color: #23243a;
}
body:not(.dark-mode) .floating-card a {
  color: #5052a6;
}
body:not(.dark-mode) .floating-card a:hover {
  color: #f472b6;
}
body:not(.dark-mode) .floating-card img {
  background: #f2f2fa;
  box-shadow: 0 2px 10px #a78bfa0d;
}

@media (max-width: 600px) {
  .floating-card {
    min-width: 0;
    padding: 1.1rem 0.9rem 1.1rem 0.9rem;
    max-width: 99vw;
  }
  .floating-card img {
    max-height: 110px;
  }
}

