/* Objection Madness - shared styles (toolbar, popups, banners) */
[hidden] { display: none !important; }

.om-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 1600px; margin: 0 auto 18px;
}
.om-btn, a.om-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; font-size: 0.95rem; font-family: inherit;
  background: #252a36; color: #e0e0e0; border: 1px solid #3a4152; border-radius: 8px;
  cursor: pointer; text-decoration: none; margin: 0;
}
.om-btn:hover { border-color: #00aaff; background: #2c3344; }
.om-btn.danger:hover { border-color: #ff1744; }

button:disabled, button:disabled:hover { opacity: 0.45; cursor: not-allowed; }

/* Load error banner */
.om-load-error {
  max-width: 900px; margin: 0 auto 20px; padding: 16px 20px;
  background: rgba(255,23,68,0.15); border: 1px solid #ff1744; border-radius: 10px;
  color: #ffd6dd; text-align: left; line-height: 1.5;
}
.om-load-error-status { margin-top: 8px; color: #ffab00; }

/* Picture popup */
.om-lightbox {
  position: fixed; inset: 0; z-index: 20000; background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: om-fade 0.2s ease-out;
}
.om-lightbox-inner {
  max-width: min(1100px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.om-lightbox-inner img {
  max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain;
  border-radius: 12px; box-shadow: 0 0 50px rgba(0,170,255,0.35); background: #111;
}
.om-lightbox-caption {
  color: #e0e0e0; font-size: 1.35rem; text-align: center; max-width: 900px; line-height: 1.4;
}
.om-lightbox-close {
  padding: 12px 34px; font-size: 1.1rem; border: none; border-radius: 8px;
  background: #00aaff; color: #fff; cursor: pointer;
}
@keyframes om-fade { from { opacity: 0; } to { opacity: 1; } }

/* Thumbnail button shown under an objection that has a picture */
.om-thumb {
  display: inline-flex; align-items: center; gap: 10px; margin: 10px 0 0;
  padding: 6px 12px 6px 6px; background: #1a2230; color: #9fd8ff;
  border: 1px solid #2f4a66; border-radius: 8px; cursor: pointer; font-size: 0.95rem;
}
.om-thumb img { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; }
.om-thumb:hover { border-color: #00aaff; }

/* Toast */
.om-toast {
  position: fixed; left: 50%; top: 20px; transform: translate(-50%, -20px);
  background: #00aaff; color: #fff; padding: 12px 22px; border-radius: 10px;
  font-weight: bold; opacity: 0; pointer-events: none; transition: all 0.25s; z-index: 30000;
  max-width: calc(100vw - 32px); text-align: center;
}
.om-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Timer warning (last 10 seconds) */
.timer.timer-warning { color: #ff1744 !important; animation: om-pulse 1s infinite; }
.timer.timer-done { color: #ff1744 !important; }
@keyframes om-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* Scoring modal pieces */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 999;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.score-who { font-size: 1.4rem; color: #ffab00; font-weight: bold; margin-bottom: 10px; }
.score-objection {
  background: #222; border-radius: 8px; padding: 12px 14px; text-align: left;
  font-size: 1rem; color: #ccc; margin-bottom: 10px; max-height: 120px; overflow: auto;
}
.score-answer-wrap { text-align: left; margin: 6px 0 12px; }
.score-answer-wrap summary { cursor: pointer; color: #00aaff; font-weight: bold; padding: 4px 0; }
.score-answer {
  background: #1e3a5f; border: 1px solid #336699; border-radius: 8px;
  padding: 12px 14px; margin-top: 6px; line-height: 1.45; max-height: 180px; overflow: auto;
}
.field-error { color: #ff5c7a; min-height: 1.3em; margin-top: 8px; font-weight: bold; }
.modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.hint { color: #888; font-size: 0.85rem; margin-top: 10px; }

.next-status { text-align: center; color: #ffab00; font-size: 1.15rem; margin-top: 24px; font-weight: bold; }
.winner-line { text-align: center; color: #ffca28; font-size: 1.4rem; font-weight: bold; margin-bottom: 14px; }
