/* Ekran przerwy i ostrzeżenie o końcu czasu (wspolne/czas.js) */
.czas-banner {
  position: fixed;
  left: 50%; top: 12px;
  z-index: 9998;
  transform: translate(-50%, -150%);
  max-width: calc(100% - 32px);
  padding: 8px 22px;
  border: 3px solid #fcc419;
  border-radius: 999px;
  background: #fff9db;
  color: #5c3d00;
  font-family: 'Baloo 2', 'Comic Sans MS', sans-serif;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  transition: transform .4s;
}
.czas-banner.on { transform: translate(-50%, 0); }

.czas-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 16px;
  background: linear-gradient(160deg, #3b2a6b, #1f1d5c);
  font-family: 'Baloo 2', 'Comic Sans MS', sans-serif;
}
.czas-overlay.on { display: grid; }
.czas-overlay.over { background: linear-gradient(160deg, #ffe066, #8ce99a); }
.czas-card {
  width: min(560px, 100%);
  padding: 26px 24px;
  border: 5px solid #fff;
  border-radius: 32px;
  background: rgba(255, 255, 255, .95);
  text-align: center;
  color: #343a40;
}
.czas-icon { font-size: 72px; line-height: 1; animation: czasBob 3s ease-in-out infinite; }
.czas-title { margin: 8px 0 4px; font-size: 38px; color: #7048e8; }
.czas-timer { font-size: 64px; font-weight: 800; color: #e64980; line-height: 1.1; }
.czas-idea { margin: 10px 0 18px; font-size: 24px; font-weight: 700; }
.czas-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.czas-btn {
  padding: 6px 22px;
  border: 0;
  border-radius: 999px;
  background: #e5dbff;
  color: #5f3dc4;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
.czas-back { background: #fcc419; color: #5c3d00; font-size: 26px; box-shadow: 0 5px 0 #f08c00; }
.czas-parent { opacity: .75; font-size: 15px; }
.czas-btn.hidden { display: none; }

.czas-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .45);
  font-family: 'Baloo 2', 'Comic Sans MS', sans-serif;
}
.czas-gate-card {
  width: min(340px, calc(100% - 32px));
  padding: 18px 22px;
  border-radius: 22px;
  background: #fff;
  text-align: center;
}
.czas-gate-card h3 { margin: 0; color: #7048e8; font-size: 22px; }
.czas-gate-card p { margin: 6px 0; font-size: 20px; font-weight: 700; }
.czas-gate-input {
  width: 120px;
  padding: 4px 10px;
  border: 3px solid #d0bfff;
  border-radius: 12px;
  font: inherit;
  font-size: 24px;
  text-align: center;
}
.czas-gate-msg { color: #c92a2a; min-height: 1.4em; font-size: 16px !important; }

@keyframes czasBob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .czas-icon { animation: none; } .czas-banner { transition: none; } }
