:root {
  --bg-color: #0b0c10;
  --card-bg: rgba(22, 24, 29, 0.94);
  --orange-main: #ff6600;
  --orange-glow: #ff8533;
  --orange-light: #ffa64d;
  --text-white: #ffffff;
  --text-muted: #9ca3af;
  --correct-green: #10b981;
  --wrong-red: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-white);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  position: relative;
  overflow-x: hidden;
  /* Travas de quiosque: sem seleção, sem zoom por duplo toque, sem menu de contexto */
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  overscroll-behavior: none;
}

.page-wrapper {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-brand-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(22, 24, 29, 0.85);
  border: 1.5px solid rgba(255, 102, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.25);
  padding: 10px 22px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.brand-icon {
  font-size: 1.3rem;
  background: rgba(255, 102, 0, 0.2);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--orange-main);
  flex: 0 0 auto;
}

.brand-texts {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.brand-title {
  color: var(--orange-main);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.background-anim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 50% 30%, #2e1100 0%, #0b0c10 75%);
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--orange-main);
  box-shadow: 0 0 18px var(--orange-main);
  opacity: 0.3;
  animation: float 8s infinite ease-in-out;
}

.glow-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.18) 0%, rgba(255, 102, 0, 0) 70%);
  border-radius: 50%;
  filter: blur(30px);
  animation: pulseCloud 6s infinite alternate ease-in-out;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.2); }
}

@keyframes pulseCloud {
  0% { transform: scale(0.9); opacity: 0.2; }
  100% { transform: scale(1.3); opacity: 0.5; }
}

.container {
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  border: 2px solid var(--orange-main);
  box-shadow: 0 0 30px rgba(255, 102, 0, 0.3);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
}

.main-flask-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 102, 0, 0.08);
  border: 1.5px solid var(--orange-main);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
}

h1 {
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 8px;
}

p.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.start-main-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--orange-main), #cc5200);
  color: #fff;
  border: none;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
}

.start-main-btn:active {
  transform: scale(0.98);
  box-shadow: 0 0 25px rgba(255, 102, 0, 0.7);
}

.sub-buttons-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.sub-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 102, 0, 0.35);
  color: var(--text-white);
  padding: 14px 8px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  min-height: 52px;
}

.sub-btn:active {
  background: rgba(255, 102, 0, 0.18);
  border-color: var(--orange-main);
}

.touch-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  margin-top: 5px;
}

.stats-line {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  margin-top: 10px;
  opacity: 0.8;
}

.stats-line:empty {
  display: none;
}

.logo-container {
  margin-bottom: 14px;
}

.logo-svg {
  width: 100%;
  max-width: 190px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 102, 0, 0.5));
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 102, 0, 0.3);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange-main), var(--orange-light));
  transition: width 0.4s ease;
}

.question-box {
  margin-bottom: 18px;
  text-align: left;
}

.question-number {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--orange-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.question-text {
  font-size: 1.12rem;
  line-height: 1.42;
  color: var(--text-white);
  font-weight: 600;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.option-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 102, 0, 0.35);
  color: var(--text-white);
  padding: 14px 16px;
  border-radius: 12px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  display: flex;
  align-items: center;
  min-height: 54px;
}

.option-btn:active {
  background: rgba(255, 102, 0, 0.18);
  border-color: var(--orange-glow);
}

.option-btn.correct {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: var(--correct-green) !important;
  color: #a7f3d0 !important;
}

.option-btn.wrong {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: var(--wrong-red) !important;
  color: #fca5a5 !important;
}

.option-btn.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.explanation-box {
  background: rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--orange-main);
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: left;
}

.explanation-title {
  font-weight: bold;
  color: var(--orange-light);
  margin-bottom: 4px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.explanation-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.next-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--orange-main), #cc5200);
  color: #fff;
  border: none;
  padding: 15px;
  font-size: 1.05rem;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.4);
  transition: transform 0.18s ease;
  text-transform: uppercase;
  min-height: 56px;
}

.next-btn:active {
  transform: scale(0.98);
}

.score-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.score-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--orange-main);
  text-shadow: 0 0 20px var(--orange-main);
  margin-bottom: 12px;
  line-height: 1.1;
}

.feedback-msg {
  font-size: 1.05rem;
  margin-bottom: 22px;
  color: var(--text-white);
}

.footer-credit {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

.hidden {
  display: none !important;
}

canvas#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99;
}

/* Telas baixas (tablet em paisagem / celular deitado) */
@media (max-height: 620px) {
  .top-brand-bar { margin-bottom: 10px; padding: 6px 16px; }
  .container { padding: 18px 16px; }
  .main-flask-icon { display: none; }
  h1 { font-size: 1.35rem; }
  p.subtitle { margin-bottom: 14px; font-size: 0.85rem; }
  .logo-svg { max-width: 130px; }
  .question-text { font-size: 1rem; }
  .option-btn { padding: 11px 14px; min-height: 46px; }
  .score-number { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .particle, .glow-orb { animation: none; }
}
