/* Missão Printou — V7: contraste e acessibilidade dos controles do professor */
/* Links de entrada de participantes, em fundo claro */
html body .teacher .roomcard a[href*="room="],
html body #rooms .roomcard a[href*="room="],
html[data-theme="light"] body #rooms a[href*="room="] {
  display:inline-block!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  color:#003c82!important;
  -webkit-text-fill-color:#003c82!important;
  background:#e8f1ff!important;
  text-decoration:underline!important;
  text-decoration-thickness:2px!important;
  text-underline-offset:3px!important;
  border:1px solid #8eb6e8!important;
  border-radius:10px!important;
  padding:9px 12px!important;
  font-weight:800!important;
  line-height:1.5!important;
}
html body #rooms a[href*="room="]:hover {background:#cfe4ff!important;color:#00285f!important;-webkit-text-fill-color:#00285f!important}
html[data-theme="dark"] body #rooms a[href*="room="] {
  background:#12335e!important;
  color:#f0f7ff!important;
  -webkit-text-fill-color:#f0f7ff!important;
  border-color:#80baff!important;
}
html[data-theme="dark"] body #rooms a[href*="room="]:hover {background:#20528a!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
/* Botões das ações da partida: estado habilitado */
html body #rooms .roomcard button.btn,
html[data-theme="dark"] body #rooms .roomcard button.btn,
html[data-theme="light"] body #rooms .roomcard button.btn {
  background:#0954ad!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border:2px solid #2d79ce!important;
  border-radius:11px!important;
  font-weight:850!important;
  font-size:14px!important;
  min-height:43px!important;
  padding:9px 14px!important;
  text-shadow:none!important;
  opacity:1!important;
  box-shadow:0 4px 11px #072d6330!important;
}
html body #rooms .roomcard button.btn:hover:not(:disabled) {
  background:#0c68ce!important;
  transform:translateY(-1px);
}
/* Botões indisponíveis continuam legíveis e claramente distintos */
html body #rooms .roomcard button.btn:disabled,
html[data-theme="dark"] body #rooms .roomcard button.btn:disabled,
html[data-theme="light"] body #rooms .roomcard button.btn:disabled {
  background:#dce5f2!important;
  color:#344962!important;
  -webkit-text-fill-color:#344962!important;
  border:2px solid #9eafc5!important;
  box-shadow:none!important;
  opacity:1!important;
  cursor:not-allowed!important;
  filter:none!important;
  transform:none!important;
}
html body #rooms .roomcard button.btn.danger:not(:disabled) {background:#a92837!important;border-color:#db6572!important}
html body #rooms .roomcard button.btn.warn:not(:disabled) {background:#764300!important;border-color:#d39a39!important}
html body #rooms .roomcard button.btn:focus-visible,
html body #rooms a[href*="room="]:focus-visible {outline:3px solid #ff981f!important;outline-offset:3px!important}
html body #rooms .roomcard .row {gap:9px!important;flex-wrap:wrap!important}
@media(max-width:640px){html body #rooms .roomcard button.btn{font-size:13px!important;padding:10px!important}}
@media(prefers-reduced-motion:reduce){html body #rooms .roomcard button.btn{transition:none!important;transform:none!important}}
