/* =========================================================================
   Estilos específicos de página — carregado depois de style.css
   ========================================================================= */

/* ---------- HERO (index.html) ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 340px at 85% 10%, rgba(212,175,93,.14), transparent 65%),
    radial-gradient(500px 300px at 5% 30%, rgba(79,214,196,.12), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero-sub { font-size: 1.05rem; max-width: 480px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: .82rem; color: var(--text-faint); }
.hero-meta strong { color: var(--teal); font-family: var(--font-mono); }

.hero-panel {
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 28px;
  box-shadow: var(--shadow-glow-gold);
  position: relative;
}
.hero-panel::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, var(--gold-dim), transparent 40%, var(--teal-dim));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.server-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 60px; }

.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }
.info-card { text-align: left; }
.info-card .info-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  color: var(--gold);
  margin-bottom: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(212,175,93,.18), transparent 70%);
}
.info-card .info-icon svg { width: 22px; height: 22px; }

.social-banner {
  margin-top: 70px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding: 26px 28px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(88,101,242,.12), rgba(37,211,102,.10));
  border: 1px solid var(--border);
}
.social-banner .buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-whatsapp { background: #25D366; color: #06210f; border-color: #25D366; }
.btn-whatsapp:hover { color: #06210f; box-shadow: 0 6px 20px rgba(37,211,102,.4); }

/* ---------- Escala de prêmios ---------- */
.rewards-summary {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-bottom: 34px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.rewards-summary .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); }
.rewards-summary .value { font-family: var(--font-mono); font-size: 1.6rem; color: var(--gold-bright); }

.rewards-progress-outer {
  height: 8px; border-radius: 999px; background: var(--bg-alt);
  border: 1px solid var(--border); margin-bottom: 10px; overflow: hidden;
}
.rewards-progress-inner {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  width: var(--rw-progress, 0%);
  box-shadow: var(--shadow-glow-gold);
  transition: width .4s ease;
}

/* --- Trilha de níveis (estilo passe de batalha) --- */
.rw-track {
  position: relative;
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 70px 10px 40px;
}
.rw-line {
  position: absolute; left: 10px; right: 10px; top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--border) 70%);
  z-index: 0;
}
.rw-node { position: relative; z-index: 1; flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; }

.rw-items-row {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  min-height: 58px;
}
.rw-items-row.top { align-items: flex-end; margin-bottom: 10px; }
.rw-items-row.bottom { align-items: flex-start; margin-top: 10px; }

.rw-item {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 1.3rem;
  opacity: .5; filter: grayscale(.5);
  transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}
.rw-node.unlocked .rw-item { opacity: 1; filter: none; border-color: var(--gold-dim); }
.rw-node.unlocked .rw-item:hover { transform: translateY(-2px); }
.rw-item-qty {
  position: absolute; bottom: -5px; right: -5px;
  background: #1a1512; color: #ffd700;
  font-size: .62rem; font-weight: 700;
  padding: 1px 5px; border-radius: 6px; line-height: 1.3;
  font-family: var(--font-mono);
}
.rw-item-name {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text); font-size: .68rem; white-space: nowrap;
  padding: 3px 8px; border-radius: 5px;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
  margin-bottom: 6px;
}
.rw-item:hover .rw-item-name { opacity: 1; }

.rw-marker {
  width: 58px; height: 58px;
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: .78rem;
  color: var(--text-faint);
}
.rw-node.unlocked .rw-marker {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #201607;
  box-shadow: var(--shadow-glow-gold);
}

.rw-claim-btn { margin-top: 12px; }
.rw-hint { margin-top: 12px; font-size: .72rem; color: var(--text-faint); text-align: center; }

/* ---------- Leilão: ver assets/css/auction.css (grid de cards) ---------- */

/* ---------- Passe de batalha ---------- */
.bp-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  margin-bottom: 8px;
}
.bp-points-box { display: flex; align-items: baseline; gap: 8px; }
.bp-points-box .num { font-family: var(--font-mono); font-size: 2rem; color: var(--teal); }
.bp-progress-outer {
  height: 8px; border-radius: 999px; background: var(--bg-alt);
  border: 1px solid var(--border); margin: 22px 0 40px; overflow: hidden;
}
.bp-progress-inner {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-dim), var(--teal));
  width: var(--bp-progress, 0%);
  box-shadow: var(--shadow-glow-teal);
  transition: width .4s ease;
}

.bp-track {
  position: relative;
  display: flex;
  gap: 34px;
  overflow-x: auto;
  padding: 30px 10px 16px;
}
.bp-line {
  position: absolute; left: 10px; right: 10px; top: 46px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--border) 60%);
  z-index: 0;
}
.bp-node { position: relative; z-index: 1; flex: 0 0 190px; text-align: center; }
.bp-node-marker {
  width: 46px; height: 46px;
  margin: 0 auto 10px;
  display: grid; place-items: center;
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-faint);
  font-weight: 700;
}
.bp-node.reached .bp-node-marker {
  background: linear-gradient(180deg, var(--teal), var(--teal-dim));
  color: #062821;
  box-shadow: var(--shadow-glow-teal);
}
.bp-node-points { font-size: .72rem; color: var(--text-faint); margin-bottom: 14px; }
.bp-node-rewards { display: flex; flex-direction: column; gap: 10px; }
.bp-reward {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  background: var(--surface);
  opacity: .55;
}
.bp-reward.free { border-left: 3px solid var(--teal-dim); }
.bp-reward.premium { border-left: 3px solid var(--gold-dim); }
.bp-reward.reached { opacity: 1; }
.bp-reward.locked { opacity: .4; }
.bp-reward-icon { font-size: 1.4rem; }
.bp-reward-items { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.bp-reward-icon-wrap { position: relative; display: inline-flex; }
.bp-reward-name { font-size: .76rem; color: var(--text-dim); margin: 6px 0 8px; }

.bp-premium-banner {
  margin-top: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--gold-dim);
  background: linear-gradient(120deg, rgba(212,175,93,.1), transparent);
}

/* ---------- Sobre nós ---------- */
.about-hero { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { text-align: center; }
.value-card .info-icon { margin: 0 auto 14px; }

/* ---------- Download ---------- */
.download-hero {
  text-align: center;
  padding: 70px 0 40px;
}
.requirements-table { width: 100%; border-collapse: collapse; }
.requirements-table td { padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: .88rem; }
.requirements-table td:first-child { color: var(--text-faint); width: 40%; }
.mirror-list { display: flex; flex-direction: column; gap: 10px; }
.mirror-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
}
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step-list li {
  counter-increment: step;
  display: flex; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  font-family: var(--font-mono); font-weight: 700; font-size: .85rem;
  display: grid; place-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .server-stats { grid-template-columns: 1fr 1fr; }
  .info-cards, .value-grid { grid-template-columns: 1fr; }
}

/* ---------- Roleta ---------- */
.spin-page-layout {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.spin-wheel-wrap { position: relative; width: 320px; height: 320px; }
.spin-wheel {
  width: 100%; height: 100%; border-radius: 50%;
  border: 6px solid var(--gold);
  box-shadow: var(--shadow-glow-gold);
  position: relative;
  transition: transform 4.5s cubic-bezier(0.15, 0.75, 0.15, 1);
  overflow: hidden;
}
.spin-slice-icon {
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  transform-origin: center;
  background: rgba(20,16,31,.55);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
}
.spin-pointer {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--gold-bright);
  filter: drop-shadow(0 0 6px rgba(212,175,93,.6));
  z-index: 5;
}
.spin-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  display: grid; place-items: center;
  box-shadow: 0 0 20px rgba(212,175,93,.5);
  font-size: 1.3rem;
  z-index: 4;
}

.spin-controls { text-align: center; }
.spin-credits { font-family: var(--font-mono); font-size: 1.1rem; color: var(--gold-bright); margin-bottom: 12px; }
.spin-adblock-warning { max-width: 420px; margin: 0 auto 16px; }

.spin-result-modal { text-align: center; padding: 6px 4px 4px; }
.spin-result-icon { font-size: 3rem; margin-bottom: 12px; }

/* ---------- Ícone de item resolvido via catálogo do jogo ---------- */
.item-icon-img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
.item-icon-fallback { font-size: 1.3rem; }

/* ---------- Modal de resultado da doação ---------- */
.donation-result-modal {
  text-align: center;
  padding: 8px 4px 4px;
}
.donation-result-icon {
  width: 84px; height: 84px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
}
.donation-spinner {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 4px solid var(--border);
  border-top-color: var(--teal);
  animation: donation-spin 0.85s linear infinite;
}
@keyframes donation-spin { to { transform: rotate(360deg); } }

.donation-checkmark { width: 84px; height: 84px; }
.donation-checkmark .circle {
  fill: none;
  stroke: var(--success);
  stroke-width: 3;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: donation-draw-circle .5s ease-out forwards;
}
.donation-checkmark .check {
  fill: none;
  stroke: var(--success);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: donation-draw-check .35s ease-out .45s forwards;
}
@keyframes donation-draw-circle { to { stroke-dashoffset: 0; } }
@keyframes donation-draw-check { to { stroke-dashoffset: 0; } }

.donation-result-modal h3 { margin-bottom: 8px; }
.donation-result-modal p { color: var(--text-dim); margin-bottom: 22px; }
.donation-result-stats {
  display: flex; justify-content: center; gap: 28px;
  margin-bottom: 24px;
}
.donation-result-stats div { text-align: center; }
.donation-result-stats .value { font-family: var(--font-mono); font-size: 1.4rem; color: var(--gold-bright); font-weight: 700; }
.donation-result-stats .label { font-size: .72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.donation-result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Modal de termos (rolagem obrigatória) ---------- */
.terms-modal-large { max-width: 640px; }
.terms-modal-scroll {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--text-dim);
  background: var(--bg-alt);
}
.terms-modal-scroll h3 { font-family: var(--font-body); font-size: .92rem; color: var(--gold-bright); margin: 16px 0 6px; }
.terms-modal-scroll h3:first-child { margin-top: 0; }
.terms-modal-scroll p { margin: 0 0 10px; }
.terms-modal-scroll ul { margin: 8px 0; padding-left: 20px; }
.terms-modal-scroll li { margin-bottom: 6px; }
.terms-scroll-hint {
  font-size: .74rem; color: var(--text-faint); text-align: center; margin-bottom: 10px;
  transition: opacity .3s ease;
}
.terms-scroll-hint.done { color: var(--success); }
.terms-checkbox-row {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: .85rem; color: var(--text);
  margin-bottom: 16px;
}
.terms-checkbox-row input[disabled] + span { opacity: .5; }
