:root {
  color-scheme: dark;
  --bg: #07030f;
  --bg-strong: #110520;
  --panel: rgba(18, 7, 35, 0.68);
  --panel-strong: rgba(30, 10, 55, 0.9);
  --border: rgba(185, 87, 255, 0.35);
  --border-strong: rgba(255, 209, 85, 0.25);
  --text: #f7f1ff;
  --accent: #b55bff;
  --accent-2: #f8d16c;
  --shadow: 0 30px 80px rgba(73, 0, 99, 0.35);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, rgba(162, 80, 255, 0.12), transparent 24%),
              radial-gradient(circle at 20% 20%, rgba(255, 214, 92, 0.14), transparent 20%),
              linear-gradient(180deg, #05020b 0%, #12081f 55%, #080317 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 10% 20%, rgba(183, 91, 255, 0.14), transparent 16%),
              radial-gradient(circle at 90% 20%, rgba(248, 209, 108, 0.12), transparent 14%),
              radial-gradient(circle at 50% 85%, rgba(107, 51, 214, 0.16), transparent 24%);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 30px 16px 20px;
  overflow: hidden;
}

.content-wrapper {
  width: min(100% - 32px, 960px);
  max-width: 960px;
  margin-inline: auto;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  min-height: 100lvh;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: radial-gradient(circle at 20% 18%, rgba(255, 232, 163, 0.08), transparent 18%),
              radial-gradient(circle at 86% 12%, rgba(183, 91, 255, 0.12), transparent 16%),
              linear-gradient(180deg, rgba(7, 2, 15, 0.98), rgba(4, 1, 10, 0.96));
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

#preloader::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 14%, rgba(255,255,255,0.04), transparent 14%),
              radial-gradient(circle at 14% 10%, rgba(183,91,255,0.14), transparent 12%),
              radial-gradient(circle at 88% 12%, rgba(248,209,108,0.1), transparent 16%),
              radial-gradient(circle at 50% 84%, rgba(104, 39, 255, 0.08), transparent 20%);
}

#preloader .loader-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 45% 22%, rgba(255,255,255,0.04), transparent 16%),
              radial-gradient(circle at 18% 80%, rgba(183,91,255,0.08), transparent 12%),
              radial-gradient(circle at 82% 79%, rgba(248,209,108,0.08), transparent 14%);
  pointer-events: none;
}

#preloader .loader-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

#preloader .loader-particles::before,
#preloader .loader-particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
}

#preloader .loader-particles::before {
  width: 110px;
  height: 110px;
  top: 10%;
  left: 18%;
  background: rgba(183,91,255,0.18);
}

#preloader .loader-particles::after {
  width: 84px;
  height: 84px;
  bottom: 16%;
  right: 18%;
  background: rgba(248,209,108,0.14);
}

#preloader .loader-content {
  position: relative;
  width: min(460px, calc(100vw - 40px));
  padding: 28px 24px 24px;
  display: grid;
  gap: 16px;
  align-items: center;
  text-align: center;
  background: rgba(8, 4, 18, 0.78);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  box-shadow: 0 25px 90px rgba(94, 35, 205, 0.24);
  backdrop-filter: blur(18px);
  z-index: 2;
  overflow: hidden;
}

#preloader .loader-ring {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.08);
  border-top-color: rgba(248,209,108,0.96);
  box-shadow: 0 0 32px rgba(248,209,108,0.18), inset 0 0 18px rgba(183,91,255,0.12);
  animation: ringSpin 1.2s linear infinite;
  display: grid;
  place-items: center;
}

#preloader .loader-ring::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.08);
}

#preloader .loader-logo {
  z-index: 1;
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 18px rgba(255,255,255,0.9), 0 0 30px rgba(183,91,255,0.55), 0 0 52px rgba(248,209,108,0.24);
  animation: neonGlow 1.8s ease-in-out infinite;
}

#preloader .loader-title {
  margin: 0 auto 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(249, 244, 255, 0.84);
}

#loaderStatus {
  margin: 0 auto;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: rgba(246, 242, 255, 0.88);
}

.loader-progress {
  width: 100%;
  margin-top: 4px;
}

.progress-track {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  box-shadow: inset 0 0 22px rgba(183,91,255,0.14);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(183,91,255,0.95), rgba(248,209,108,0.96));
  box-shadow: 0 0 42px rgba(183,91,255,0.28);
  transition: width 0.35s ease;
  position: relative;
}

.progress-fill::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 28%;
  background: linear-gradient(90deg, rgba(255,255,255,0.64), rgba(255,255,255,0.04));
  filter: blur(10px);
  transform: translateX(-100%);
  animation: progressShine 2s infinite linear;
}

#loaderPercent {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}

#loaderConsole {
  font-size: 0.82rem;
  color: rgba(223, 211, 255, 0.78);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.loading .page-shell {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#preloader.loading-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes neonGlow {
  0%, 100% { text-shadow: 0 0 18px rgba(255,255,255,0.92), 0 0 34px rgba(183,91,255,0.65), 0 0 60px rgba(248,209,108,0.28); }
  50% { text-shadow: 0 0 22px rgba(255,255,255,1), 0 0 42px rgba(183,91,255,0.8), 0 0 82px rgba(248,209,108,0.36); }
}

@keyframes loadingRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes logoGlow {
  0%, 100% { text-shadow: 0 0 14px rgba(255,255,255,0.85), 0 0 30px rgba(183,91,255,0.55), 0 0 50px rgba(248,209,108,0.24); }
  50% { text-shadow: 0 0 18px rgba(255,255,255,1), 0 0 44px rgba(183,91,255,0.75), 0 0 68px rgba(248,209,108,0.34); }
}

@keyframes progressShine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.hero-card,
.footer-card {
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 9, 50, 0.95), rgba(7, 2, 17, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.footer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(183, 91, 255, 0.14), transparent 35%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.neon-text {
  color: #fff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.65),
    0 0 24px rgba(183, 91, 255, 0.45),
    0 0 50px rgba(255, 214, 92, 0.18);
}

.hero-subtitle {
  margin-top: 18px;
  font-size: 0.95rem;
  text-align: center;
  color: #d8c9ff;
}

.hero-subtitle span {
  color: var(--accent-2);
  font-weight: 700;
}

.hero-meta {
  margin-top: 16px;
  text-align: center;
  font-size: 0.92rem;
  color: #b9a2ff;
}

.hero-meta a {
  color: #f8d16c;
  text-decoration: none;
}

.links-grid {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.link-button {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 26px;
  background: rgba(17, 7, 35, 0.7);
  border: 1px solid rgba(183, 91, 255, 0.2);
  color: #f9f5ff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 20px 70px rgba(31, 6, 93, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.link-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(183, 91, 255, 0.12), rgba(248, 209, 108, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.link-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 90px rgba(183, 91, 255, 0.2);
  border-color: rgba(248, 209, 108, 0.55);
}

.link-button:hover::before {
  opacity: 1;
}

.link-button:active {
  transform: translateY(-2px) scale(0.99);
}

.button-icon {
  font-size: 1.35rem;
}

.footer-card {
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #ccc4ff;
}

.site-footer {
  width: 100%;
  margin-top: 52px;
  padding: 0 20px 26px;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.site-footer p {
  margin: 0;
  color: #c8b8ff;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-align: center;
  text-shadow: 0 0 10px rgba(179, 110, 255, 0.16);
}
    text-shadow: 0 0 18px rgba(183, 91, 255, 0.85), 0 0 42px rgba(248, 209, 108, 0.45);
  }
}

/* Visit counter styling (discrete, centered, premium) */
.visit-counter {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.visit-counter-inner {
  color: linear-gradient(180deg, #fff, #d8c9ff);
  color: var(--text);
  font-weight: 700;
  text-align: center;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(179,110,255,0.12), 0 0 22px rgba(183,91,255,0.06);
  padding: 6px 10px;
  border-radius: 12px;
  backdrop-filter: none;
}

/* Images section: stacked, centered, responsive */
.images-section {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

.image-card {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-title {
  margin: 0 0 10px 0;
  color: #f7f1ff;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  text-shadow: 0 0 10px rgba(183,91,255,0.18), 0 0 24px rgba(104,39,255,0.06);
  font-size: clamp(0.95rem, 2.1vw, 1.05rem);
}

.image-wrap {
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  overflow: hidden;
  padding: 8px;
  background: linear-gradient(180deg, rgba(18,7,35,0.45), rgba(30,10,55,0.25));
  border: 1px solid rgba(183,91,255,0.16);
  box-shadow: 0 20px 60px rgba(73, 0, 99, 0.12);
}

.image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: transparent;
}

@media (min-width: 720px) {
  .images-section {
    gap: 28px;
  }
}

@media (min-width: 720px) {
  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 24px 12px 16px;
  }

  .content-wrapper {
    width: min(100% - 20px, 960px);
    margin-inline: auto;
  }

  #preloader .loader-content {
    width: min(100%, calc(100vw - 24px));
    padding: 26px 22px;
  }

  #preloader .loader-ring {
    width: 180px;
    height: 180px;
  }

  #preloader .loader-logo {
    font-size: 2.2rem;
  }

  .progress-track {
    height: 14px;
  }

  .hero-card,
  .footer-card {
    padding: 26px;
  }

  .link-button {
    padding: 18px 20px;
    gap: 12px;
  }
}
/* =========================================================
   BOTÕES - TUDO CENTRALIZADO
   ========================================================= */

.link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

/* Remove posicionamento lateral do emoji */
.link-button .button-icon {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Botões das imagens */
.code-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.code-links .link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.code-links .button-icon { 
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Apenas ajustes dos links sociais e botão da loja */
.shop-links { display: flex; justify-content: center; width: 100%; }
.shop-button { width: min(100%, 420px); justify-content: center; text-align: center; }
.social-links { gap: 10px; margin-top: 28px; margin-bottom: 18px; }
.social-links .link-button { padding: 10px 14px; min-height: 42px; font-size: 0.85rem; }
.social-links .button-icon { font-size: 1rem; }
@media (max-width: 600px) { .shop-button { width: 100%; max-width: 420px; } }

/* Cores editáveis pelo painel */
:root { --theme-bg:#07030f; --theme-panel:#1a0b30; --theme-border:#6e32ad; --theme-button:#110723; --theme-button-border:#6e32ad; --theme-particle:#b75bff; --theme-orb:#b75bff; --theme-title:#ffffff; }
html,body { background:radial-gradient(ellipse at 50% 0%,var(--theme-panel),transparent 55%),var(--theme-bg); }
body::before { background:radial-gradient(circle at 12% 20%,color-mix(in srgb,var(--theme-orb) 22%,transparent),transparent 22%),radial-gradient(circle at 90% 75%,color-mix(in srgb,var(--theme-orb) 12%,transparent),transparent 20%); }
.hero-card,.footer-card { background:linear-gradient(180deg,var(--theme-panel),var(--theme-bg)); border-color:var(--theme-border); }
.hero-card::before,.footer-card::before { background:linear-gradient(135deg,color-mix(in srgb,var(--theme-orb) 17%,transparent),transparent 45%); }
.hero-title { color:var(--theme-title); }
.neon-text {text-shadow:0 0 12px color-mix(in srgb,var(--theme-title) 60%,transparent),0 0 28px var(--theme-orb);}
.link-button {background:var(--theme-button);border-color:var(--theme-button-border);}
.link-button:hover {border-color:var(--theme-border);box-shadow:0 15px 50px color-mix(in srgb,var(--theme-orb) 25%,transparent);}
.image-wrap {border-color:var(--theme-border);}
