/* BibleQuest — Hostinger (PHP + CSS) — identidade alinhada ao Next */
:root {
  --abyss: #050505;
  --neon-purple: 278 95% 58%;
  --neon-cyan: 186 92% 52%;
  --neon-gold: 48 100% 54%;
  --text-primary: 40 20% 97%;
  --text-body: 40 15% 94%;
  --text-meta: 220 12% 58%;
  --menu-chrome-bg: 220 12% 11%;
  --menu-chrome-elevated: 220 10% 15%;
  --menu-chrome-border: 220 9% 38%;
  --menu-accent-silver: 220 10% 82%;
  --menu-active-fill: 0 0% 100%;
  --border: 220 12% 16%;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.bq-body {
  margin: 0;
  min-height: 100vh;
  background: var(--abyss);
  color: hsl(var(--text-body));
  font-family: var(--font-sans);
  font-feature-settings: "ss01" on, "cv02" on;
}

.font-display {
  font-family: var(--font-display);
}

/* Hub menu (globals alinhados) */
.hub-menu-bar {
  background-color: hsl(var(--menu-chrome-bg) / 0.93);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid hsl(var(--menu-chrome-border) / 0.45);
  box-shadow: inset 0 1px 0 0 hsl(0 0% 100% / 0.05);
}
/* NÃO meter overflow-x: hidden com overflow-y: visible — a spec obriga overflow-y a comportar-se como auto e aparece barra no menu. */
.hub-menu-sidebar {
  background-color: hsl(var(--menu-chrome-bg) / 0.97);
  border-right: 1px solid hsl(var(--menu-chrome-border) / 0.4);
  overflow: visible;
}
.hub-menu-panel {
  background-color: hsl(var(--menu-chrome-elevated) / 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid hsl(var(--menu-chrome-border) / 0.42);
  box-shadow: inset 0 1px 0 0 hsl(0 0% 100% / 0.04);
}
.hub-menu-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--text-meta));
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.hub-menu-link:hover {
  background-color: hsl(var(--menu-active-fill) / 0.06);
  color: hsl(var(--text-primary));
}
.hub-menu-link--active {
  background-color: hsl(var(--menu-active-fill) / 0.12);
  color: hsl(var(--text-primary));
  border-color: hsl(var(--menu-chrome-border) / 0.5);
  box-shadow: inset 0 1px 0 0 hsl(0 0% 100% / 0.05);
}
.hub-menu-link--active .bq-i {
  color: hsl(var(--menu-accent-silver));
}
.hub-menu-bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  padding: 0.5rem;
  font-size: 10px;
  font-weight: 500;
  color: hsl(var(--text-meta));
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
@media (min-width: 768px) {
  .hub-menu-bottom-link {
    font-size: 11px;
    padding: 0.625rem;
  }
}
.hub-menu-bottom-link:hover {
  background-color: hsl(var(--menu-active-fill) / 0.06);
  color: hsl(var(--text-primary));
}
.hub-menu-bottom-link--active {
  background-color: hsl(var(--menu-active-fill) / 0.14);
  color: hsl(var(--text-primary));
  border-color: hsl(var(--menu-chrome-border) / 0.45);
}
.hub-menu-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-radius: 0.75rem;
  padding: 0.25rem;
  background-color: hsl(var(--menu-chrome-bg) / 0.85);
  border: 1px solid hsl(var(--menu-chrome-border) / 0.45);
}
.hub-menu-profile-link {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--text-meta));
  text-decoration: none;
}
.hub-menu-profile-link:hover {
  background-color: hsl(var(--menu-active-fill) / 0.06);
  color: hsl(var(--text-primary));
}
.hub-menu-profile-link--active {
  background-color: hsl(var(--menu-active-fill) / 0.12);
  color: hsl(var(--text-primary));
  border-color: hsl(var(--menu-chrome-border) / 0.45);
}

/* Layout app */
.bq-app-wrap {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: var(--abyss);
}
@media (min-width: 768px) {
  .bq-app-wrap {
    flex-direction: row;
    align-items: flex-start;
  }
}

.bq-sidebar {
  display: none;
  width: 16rem;
  flex-shrink: 0;
  flex-direction: column;
  /* Sem scroll interno no menu: a coluna cresce com os links; não há barra de rolagem dentro do aside. */
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  max-height: none;
  overflow: visible;
  position: sticky;
  top: 0;
  align-self: flex-start;
}
@media (min-width: 768px) {
  .bq-sidebar {
    display: flex;
  }
}

.bq-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  border-bottom: 1px solid hsl(var(--menu-chrome-border) / 0.35);
  flex-shrink: 0;
}
.bq-logo-box {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--menu-chrome-border) / 0.45);
  background: hsl(var(--menu-chrome-elevated));
  color: hsl(var(--menu-accent-silver));
  box-shadow: inset 0 1px 0 0 hsl(0 0% 100% / 0.06);
}
.bq-sidebar-brand-small {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--text-meta));
  margin: 0;
}
.bq-sidebar-brand-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.bq-sidebar-xp {
  margin: 1rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
}
.bq-sidebar-xp-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: hsl(var(--text-meta));
}
.bq-silver {
  color: hsl(var(--menu-accent-silver));
}
.bq-xp-track {
  margin-top: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--menu-chrome-border) / 0.25);
  overflow: hidden;
}
.bq-xp-fill {
  height: 100%;
  border-radius: 9999px;
  background: hsl(var(--menu-accent-silver) / 0.88);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.12);
}
.bq-sidebar-nav {
  flex: 0 0 auto;
  overflow: visible;
  padding: 0 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.bq-nav-section {
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--text-meta));
  margin: 0;
}
.bq-nav-section-hub {
  margin-top: 1rem;
}
.bq-i {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.bq-sidebar-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid hsl(var(--menu-chrome-border) / 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}
.bq-btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--menu-chrome-border) / 0.45);
  background: hsl(var(--menu-chrome-elevated) / 0.5);
  padding: 0.625rem;
  font-size: 0.75rem;
  color: hsl(var(--text-meta));
  cursor: pointer;
}
.bq-btn-logout:hover {
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}
.bq-sidebar-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px dashed hsl(var(--menu-chrome-border) / 0.4);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: hsl(var(--text-meta));
}
.bq-i-sm {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--menu-accent-silver) / 0.85);
}

.bq-main {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  position: relative;
}

.bq-bottom-nav {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (min-width: 768px) {
  .bq-bottom-nav {
    left: 16rem;
  }
}
.bq-bottom-ul {
  list-style: none;
  margin: 0 auto;
  padding: 0.5rem;
  display: flex;
  max-width: 42rem;
  justify-content: space-around;
  gap: 0.25rem;
}
.bq-bottom-ul li {
  flex: 1;
}
.bq-bi {
  width: 1.5rem;
  height: 1.5rem;
}
@media (min-width: 768px) {
  .bq-bi {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* Ambient */
.bq-stage {
  position: relative;
  min-height: 100%;
  background: radial-gradient(ellipse 100% 80% at 50% 0%, hsl(var(--neon-purple) / 0.08), transparent 50%),
    var(--abyss);
}

/* Hero */
.bq-hero {
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 1.5rem;
}
.bq-hero-kicker {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: hsl(var(--text-meta));
}
.bq-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 1rem 0 0;
  background: linear-gradient(110deg, hsl(var(--neon-purple)), hsl(var(--neon-cyan)), hsl(var(--neon-gold)));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bq-hero-sub {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: 1rem;
  font-weight: 500;
}
.bq-gradient-text {
  background: linear-gradient(90deg, hsl(var(--neon-purple)), hsl(var(--neon-cyan)), hsl(var(--neon-gold)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glass / cards */
.neo-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid hsl(0 0% 100% / 0.12);
  background: hsl(0 0% 0% / 0.45);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--text-body));
  outline: none;
}
.neo-input:focus {
  border-color: hsl(var(--neon-cyan) / 0.45);
  box-shadow: 0 0 0 3px hsl(var(--neon-cyan) / 0.12);
}
.neo-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: linear-gradient(120deg, hsl(var(--neon-purple)), hsl(var(--neon-cyan)));
  color: var(--abyss);
  box-shadow: 0 0 24px hsl(var(--neon-cyan) / 0.35);
}
.neo-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.glass-neo {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid hsl(0 0% 100% / 0.12);
  background: hsl(0 0% 100% / 0.06);
  backdrop-filter: blur(24px);
}

/* Quick strip */
.bq-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 48rem;
  margin: 2rem auto 0;
  padding: 0 1rem;
}
.bq-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--menu-chrome-border) / 0.4);
  background: hsl(var(--menu-chrome-bg) / 0.75);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: hsl(var(--text-body));
  text-decoration: none;
  backdrop-filter: blur(12px);
}
.bq-strip a:hover {
  border-color: hsl(var(--menu-chrome-border) / 0.65);
  background: hsl(var(--menu-active-fill) / 0.08);
  color: hsl(var(--text-primary));
}

/* Bento grid */
.bq-bento {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1rem 8rem;
}
@media (min-width: 768px) {
  .bq-bento {
    padding: 1rem 2rem 8rem;
  }
}
.bq-bento-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .bq-bento-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
  }
  .bq-bento-player {
    grid-column: span 5;
  }
  .bq-bento-trail {
    grid-column: span 7;
    grid-row: span 2;
  }
  .bq-bento-cards {
    grid-column: span 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.player-frame {
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, hsl(var(--neon-purple) / 0.9), hsl(var(--neon-cyan) / 0.7), hsl(var(--neon-gold) / 0.85));
}
.player-frame-inner {
  border-radius: 0.9rem;
  background: #0a0a0a;
  padding: 1.25rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Auth */
.bq-auth-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
/* Evita largura 100% no cartão (empurrava o bloco para a esquerda no flex). */
.bq-auth-inner {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: min(100%, 28rem);
  box-sizing: border-box;
}
.bq-login-err {
  color: #fecaca;
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.875rem;
}
.bq-auth-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, hsl(var(--neon-purple) / 0.25), transparent 65%);
}

/* Loader gate */
.bq-loader-gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: hsl(var(--text-meta));
}
.bq-spin {
  width: 2rem;
  height: 2rem;
  border: 2px solid hsl(var(--neon-cyan) / 0.3);
  border-top-color: hsl(var(--neon-cyan));
  border-radius: 50%;
  animation: bq-spin 0.8s linear infinite;
}
@keyframes bq-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Arena / perfil utilities */
.bq-section-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--text-meta));
}
.bq-muted {
  color: hsl(var(--text-meta));
}
.bq-grid-medals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .bq-grid-medals {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 768px) {
  .bq-grid-medals {
    grid-template-columns: repeat(5, 1fr);
  }
}
.bq-medal-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  width: 100%;
  max-width: 7rem;
  margin: 0 auto;
  border-radius: 1rem;
  border: 1px solid hsl(0 0% 100% / 0.1);
  background: hsl(0 0% 0% / 0.4);
  cursor: pointer;
  opacity: 0.55;
  filter: grayscale(1);
}
.bq-medal-btn.is-unlocked {
  opacity: 1;
  filter: none;
  border-color: hsl(var(--neon-cyan) / 0.45);
  background: hsl(var(--neon-cyan) / 0.07);
  box-shadow: 0 0 24px hsl(var(--neon-cyan) / 0.35);
  color: hsl(var(--neon-cyan));
}

/* Timeline trail */
.bq-trail-line {
  height: 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    hsl(var(--neon-purple) / 0.15) 0%,
    hsl(var(--neon-cyan) / 0.45) 45%,
    hsl(var(--neon-gold) / 0.35) 100%
  );
  box-shadow: 0 0 24px hsl(var(--neon-cyan) / 0.35);
}
.bq-trail-card {
  border-radius: 1rem;
  border: 1px solid hsl(0 0% 100% / 0.1);
  padding: 1.25rem;
  background: hsl(0 0% 100% / 0.04);
}
.bq-trail-card.current {
  border-color: hsl(var(--neon-cyan) / 0.6);
  background: hsl(var(--neon-cyan) / 0.07);
}

/* Arena */
.bq-arena-peer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(0 0% 100% / 0.08);
  background: hsl(0 0% 0% / 0.35);
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.5rem;
  list-style: none;
}
.bq-arena-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.45);
  color: #a7f3d0;
}
.bq-arena-peer-info {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
}
.bq-kick {
  border-radius: 0.5rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: transparent;
  color: #fecaca;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.bq-crown {
  color: hsl(var(--neon-gold));
}

.text-neon-cyan {
  color: hsl(var(--neon-cyan));
}

/* Utilitários simples (substituem classes Tailwind nos .php) */
.tp {
  color: hsl(var(--text-primary));
}
.tm {
  color: hsl(var(--text-meta));
}
.tb {
  color: hsl(var(--text-body));
}
.tnc {
  color: hsl(var(--neon-cyan));
}

.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.gap-2 {
  gap: 0.5rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.w-full {
  width: 100%;
}
.text-sm {
  font-size: 0.875rem;
}
.text-xs {
  font-size: 0.75rem;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
}
.font-mono {
  font-family: ui-monospace, monospace;
}
.space-y-6 > * + * {
  margin-top: 1.5rem;
}
.bq-arena-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .bq-arena-grid {
    grid-template-columns: 1fr 320px;
  }
}
.grid {
  display: grid;
}
.gap-8 {
  gap: 2rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-3 {
  gap: 0.75rem;
}
.flex-wrap {
  flex-wrap: wrap;
}
.justify-between {
  justify-content: space-between;
}
.mb-8 {
  margin-bottom: 2rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2-5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.border {
  border-width: 1px;
  border-style: solid;
}
.rounded-2xl {
  border-radius: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.block {
  display: block;
}

.mt-2 {
  margin-top: 0.5rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-1-5 {
  margin-bottom: 0.375rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.max-w-xl {
  max-width: 36rem;
}
.text-white {
  color: hsl(var(--text-primary));
}

/* Formulários auth */
.bq-form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--text-meta));
  margin-bottom: 0.5rem;
}
.bq-form-label--tight {
  margin-bottom: 0.375rem;
}

.bq-btn-guest {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--text-body));
  cursor: pointer;
  font-family: inherit;
}
.bq-btn-guest:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bq-edit-err {
  color: #fecaca;
  margin: 0;
  min-height: 0;
}
.bq-edit-err:not([hidden]) {
  min-height: 1.25rem;
}

/* Painel arena (sobreposição ao hub-menu-panel) */
.bq-panel-arena {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
}

/* Layout de página (substitui utilitários Tailwind nos .php) */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-6xl {
  max-width: 72rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}
.space-y-8 > * + * {
  margin-top: 2rem;
}
.space-y-10 > * + * {
  margin-top: 2.5rem;
}
.flex-col {
  flex-direction: column;
}
.gap-6 {
  gap: 1.5rem;
}
.rounded-3xl {
  border-radius: 1.5rem;
}
@media (min-width: 768px) {
  .md\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .md\:p-8 {
    padding: 2rem;
  }
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:flex-row {
    flex-direction: row;
  }
  .md\:items-center {
    align-items: center;
  }
  .md\:gap-10 {
    gap: 2.5rem;
  }
}

/* Batalha — bq-battle.js (espelho BattleArena Next.js) */
.bq-battle-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.bq-battle-label-k {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display, system-ui);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: hsl(var(--text-meta));
}
.bq-battle-select {
  max-width: 20rem;
  width: 100%;
}
.bq-battle-xp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--text-meta));
}
.bq-battle-fog-meta {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bq-battle-fog-track {
  height: 1rem;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
}
.bq-battle-clarity-bar {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    hsl(var(--neon-purple)),
    hsl(var(--neon-cyan)),
    hsl(var(--neon-gold))
  );
  box-shadow: 0 0 20px hsl(var(--neon-cyan) / 0.5);
  transition: width 0.35s ease;
}
.bq-battle-shake {
  animation: bq-battle-shake 0.45s ease;
}
@keyframes bq-battle-shake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-10px);
  }
  40% {
    transform: translateX(10px);
  }
  60% {
    transform: translateX(-6px);
  }
  80% {
    transform: translateX(6px);
  }
  100% {
    transform: translateX(0);
  }
}
.bq-battle-qwrap {
  box-shadow: 0 0 40px hsl(var(--neon-purple) / 0.12);
}
.bq-battle-blur {
  filter: blur(4px) brightness(0.85);
  pointer-events: none;
}
.bq-battle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .bq-battle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.bq-battle-opt {
  border-radius: 0.75rem;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.bq-battle-opt:hover:not(:disabled) {
  border-color: hsl(var(--neon-cyan) / 0.5);
  box-shadow:
    0 0 24px hsl(var(--neon-cyan) / 0.35),
    inset 0 1px 0 hsl(0 0% 100% / 0.08);
}
.bq-battle-opt:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.bq-battle-opt-prefix {
  color: hsl(var(--neon-purple));
}
.bq-battle-flash {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0;
  background: rgba(255, 255, 255, 0.12);
  transition: opacity 0.45s ease;
}
.bq-battle-flash-on {
  opacity: 1;
}
.bq-battle-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}
.bq-battle-confetti span {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(hsl(var(--neon-cyan)), hsl(var(--neon-gold)));
  animation: bq-confetti-fall 2.5s linear forwards;
}
@keyframes bq-confetti-fall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0.35;
  }
}
.bq-insight-overlay,
.bq-chest-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}
.bq-insight-card,
.bq-chest-card {
  max-width: 28rem;
  width: 100%;
  padding: 2rem;
  border-radius: 1.5rem;
}
.bq-chest-card {
  border-color: hsl(var(--neon-gold) / 0.4);
  box-shadow: 0 0 60px hsl(var(--neon-gold) / 0.25);
}
.text-neon-gold {
  color: hsl(var(--neon-gold));
}
.bq-battle-inv {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}
