/* Estilos de Produção - QuizBloop (Firebase Hosting + Auth + Firestore + Equipes) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  --bloop-purple: #46178f;
  --bloop-purple-dark: #25076b;
  --bloop-purple-light: #682bd7;
  --bloop-red: #e21b3c;
  --bloop-red-dark: #b0102b;
  --bloop-blue: #1368ce;
  --bloop-blue-dark: #0d4a96;
  --bloop-yellow: #d89e00;
  --bloop-yellow-dark: #a67900;
  --bloop-green: #26890c;
  --bloop-green-dark: #1b6308;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #130429;
  color: #ffffff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
}

.bg-bloop-gradient {
  background: radial-gradient(circle at 20% 20%, #5a1fb8 0%, #2f0d68 52%, #110324 100%);
}

.bloop-btn-3d {
  transition: transform 0.1s ease, filter 0.15s ease, box-shadow 0.1s ease;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}

.bloop-btn-3d:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35);
}

.bloop-btn-3d:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.ans-red {
  background-color: var(--bloop-red);
  box-shadow: 0 6px 0 var(--bloop-red-dark);
}
.ans-blue {
  background-color: var(--bloop-blue);
  box-shadow: 0 6px 0 var(--bloop-blue-dark);
}
.ans-yellow {
  background-color: var(--bloop-yellow);
  box-shadow: 0 6px 0 var(--bloop-yellow-dark);
}
.ans-green {
  background-color: var(--bloop-green);
  box-shadow: 0 6px 0 var(--bloop-green-dark);
}
.ans-purple {
  background-color: #7c3aed;
  box-shadow: 0 6px 0 #5b21b6;
}
.ans-teal {
  background-color: #0d9488;
  box-shadow: 0 6px 0 #0f766e;
}
.ans-orange {
  background-color: #ea580c;
  box-shadow: 0 6px 0 #c2410c;
}
.ans-pink {
  background-color: #db2777;
  box-shadow: 0 6px 0 #9d174d;
}

.ans-card {
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.15s ease, opacity 0.25s ease;
}
.ans-card:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.01);
  filter: brightness(1.08);
}
.ans-card:active:not(:disabled) {
  transform: translateY(3px);
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.animate-float {
  animation: floatSlow 3.8s ease-in-out infinite;
}

@keyframes popIn {
  0% { transform: scale(0.85); opacity: 0; }
  70% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.animate-pop {
  animation: popIn 0.32s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes pulseRing {
  0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.timer-pulse {
  animation: pulseRing 1.1s infinite;
}

.arcade-canvas-wrap {
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.15);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Enquadramento responsivo com suporte total a scroll vertical no mobile e proteção contra overflow horizontal */
.arena-viewport-lock {
  min-height: calc(100dvh - 52px);
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.arena-stage-fit {
  flex: 1 1 auto;
  min-height: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  overflow-y: visible;
}

.arcade-canvas-wrap {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

#minigame-canvas {
  max-width: 100% !important;
  width: 100% !important;
  display: block;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  .arena-viewport-lock {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    padding-bottom: 1.5rem !important;
  }
}

.arena-question-text {
  font-size: clamp(0.95rem, 1.85vw, 1.4rem);
  line-height: 1.25;
}

.arena-options-grid {
  flex: 1 1 0%;
  min-height: 0;
  display: grid;
  align-items: stretch;
}

@media (max-height: 740px) {
  .arena-compact-hide {
    display: none !important;
  }
  .arena-question-text {
    font-size: clamp(0.88rem, 1.6vw, 1.15rem);
  }
}
