* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  color: #eee;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.site-header {
  text-align: center;
  padding: 12px 16px;
  color: #888;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-header .school-name { font-weight: 600; color: #aaa; margin-bottom: 4px; }
.site-header .credit { font-size: 0.8rem; color: #777; }
#app { max-width: 480px; margin: 0 auto; flex: 1; width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.screen { display: none; width: 100%; }
.screen.active { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.card {
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.card h1 { font-size: 1.6rem; margin-bottom: 8px; }
.card h2 { font-size: 1.3rem; margin-bottom: 12px; color: #ccc; }
.card p { color: #bbb; margin-bottom: 20px; font-size: 0.95rem; }
.card p.hint { font-size: 0.85rem; color: #888; margin-top: 12px; margin-bottom: 0; }
.api-warn { font-size: 0.85rem; color: #f0ad4e; margin-top: 16px; padding: 10px; background: rgba(240,173,78,0.15); border-radius: 8px; border-left: 4px solid #f0ad4e; }
input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.1rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
  color: #fff;
  margin-bottom: 20px;
  outline: none;
}
input::placeholder { color: #888; }
.btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, #4a90d9, #357abd);
  color: #fff;
}
.btn:active { transform: scale(0.98); }
.question-text { font-size: 1.15rem; line-height: 1.45; margin-bottom: 24px; color: #fff; min-height: 2.8em; }
.choices { display: flex; flex-direction: column; gap: 14px; }
.choice {
  padding: 18px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  color: #fff;
  transition: transform 0.12s;
}
.choice:hover:not(:disabled) { transform: scale(1.02); }
.choice:disabled { cursor: default; opacity: 0.85; }
.choice.correct { box-shadow: 0 0 0 3px #2ecc71; }
.choice-a { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.choice-b { background: linear-gradient(135deg, #3498db, #2980b9); }
.choice-c { background: linear-gradient(135deg, #f1c40f, #d4ac0d); }
.choice-d { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.answer-status { margin-top: 16px; font-size: 1rem; font-weight: 600; }
.answer-status.correct { color: #2ecc71; }
.answer-status.wrong { color: #e74c3c; }
.answer-status:not(.correct):not(.wrong) { color: #aaa; }

/* Toast notificação (estilo dos executáveis) */
.toast-container {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  color: #e0e0e0;
  font-size: 0.95rem;
  font-weight: 500;
  animation: toast-in 0.35s ease-out;
  pointer-events: auto;
}
.toast.success { border-left: 4px solid #2ecc71; }
.toast.success .toast-icon { color: #2ecc71; }
.toast.error { border-left: 4px solid #e74c3c; }
.toast.error .toast-icon { color: #e74c3c; }
.toast.info { border-left: 4px solid #3498db; }
.toast.info .toast-icon { color: #3498db; }
.toast-icon { font-size: 1.2rem; font-weight: bold; flex-shrink: 0; }
@keyframes toast-in {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.instagram-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.15);
}
.instagram-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  display: flex;
  align-items: center;
  justify-content: center;
}
.instagram-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.instagram-avatar.no-img img { display: none; }
.instagram-avatar.no-img::after {
  content: '@';
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.instagram-info { flex: 1; min-width: 0; }
.instagram-handle { font-weight: 600; color: #fff; font-size: 1rem; margin-bottom: 2px; }
.instagram-text { font-size: 0.85rem; color: #999; margin: 0; }
.instagram-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  cursor: pointer;
  white-space: nowrap;
}
.instagram-btn:active { transform: scale(0.97); }
