/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Quicksand', sans-serif;
  background-color: #111;
  color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

/* Telas gerais */
.screen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1000;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background-color: #222;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 0 20px #ff6600bb;
  text-align: center;
  animation: fadeInScale 0.5s ease forwards;
}

.modal h2 {
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #ff8533;
}

.modal button {
  background-color: #333;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  margin: 0 0.75rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  user-select: none;
}

.modal button:hover,
.modal button:focus {
  background-color: #ff6600;
  outline: none;
  transform: scale(1.05);
}

/* Loader */
.loader {
  text-align: center;
  animation: fadeInScale 0.5s ease forwards;
}

.progress-bar-container {
  width: 260px;
  height: 14px;
  background: #333;
  border-radius: 12px;
  margin: 0 auto 1.25rem;
  box-shadow: inset 0 0 10px #ff6600aa;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ff8533, #ff6600);
  border-radius: 12px;
  animation: progressFill 10s linear forwards;
}

#loading-text {
  font-weight: 600;
  font-size: 1.3rem;
  color: #ff8533;
  letter-spacing: 0.04em;
  user-select: none;
}

/* Tela principal */
main {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem;
}

.main-content {
  background: #222;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  width: 360px; /* largura fixa estilo desktop */
  min-width: 320px;
  box-shadow: 0 0 25px #ff6600bb;
  text-align: center;
  user-select: text;
}

/* Títulos */
.hub-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: #ff8533;
  letter-spacing: 2px;
}

.hub-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: #ffb266;
  margin-bottom: 1.75rem;
  letter-spacing: 0.05em;
}

/* Botões com ícones */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: nowrap;
}

.btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #222;
  box-shadow: 0 0 20px #ff6600cc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.btn svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.7));
}

.btn:hover,
.btn:focus {
  box-shadow: 0 0 35px #ff8533cc;
  transform: scale(1.15);
  outline: none;
}

/* Hover colors */
.discord-btn:hover svg path {
  fill: #4752C4;
}

.youtube-btn:hover svg rect {
  fill: #cc0000;
}

.youtube-btn:hover svg path {
  fill: #fff;
}

.github-btn:hover svg path {
  fill: #bbb;
}

/* Caixa do script */
.script-box {
  background: #222;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: inset 0 0 15px #ff8533aa;
  font-weight: 700;
  font-size: 1.2rem;
  color: #ff8533;
  letter-spacing: 0.08em;
  user-select: none;
  max-width: 200px;
  margin: 0 auto;
  text-align: center;
}

/* Animações */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes progressFill {
  to {
    width: 100%;
  }
}

/* Remove outline azul */
button:focus,
a:focus {
  outline: none;
  box-shadow: none;
}