/* play-timer.css */

/* Floating time display button */
#kid-timer-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  height: 44px;
  padding: 0 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: 22px;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 999998;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#kid-timer-btn:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(59, 130, 246, 1);
  transform: scale(1.05);
}

.kid-timer-icon {
  font-size: 20px;
}

/* Modals / Overlays */
.timer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  font-family: system-ui, -apple-system, sans-serif;
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.timer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.timer-modal {
  background: #1e293b;
  border: 2px solid #3b82f6;
  border-radius: 24px;
  padding: 32px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59,130,246,0.2);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.timer-overlay.active .timer-modal {
  transform: translateY(0) scale(1);
}

.timer-modal h2 {
  margin: 0 0 8px 0;
  font-size: 1.75rem;
  color: #f8fafc;
}

.timer-modal p {
  color: #94a3b8;
  margin: 0 0 24px 0;
  font-size: 1rem;
  line-height: 1.4;
}

/* Buttons */
.timer-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.timer-btn {
  background: #334155;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1 1 calc(50% - 12px);
}

.timer-btn:hover {
  background: #475569;
  transform: translateY(-2px);
}

.timer-btn--primary {
  background: #3b82f6;
}
.timer-btn--primary:hover {
  background: #2563eb;
}

.timer-btn--success {
  background: #10b981;
}
.timer-btn--success:hover {
  background: #059669;
}

.timer-btn--full {
  flex: 1 1 100%;
  margin-top: 8px;
}

.timer-btn--cancel {
  background: transparent;
  color: #94a3b8;
  padding: 8px;
  margin-top: 8px;
  flex: 1 1 100%;
}
.timer-btn--cancel:hover {
  color: white;
  background: rgba(255,255,255,0.05);
  transform: none;
}

/* Block screen */
#timer-block-modal {
  border-color: #10b981;
  box-shadow: 0 0 60px rgba(16, 185, 129, 0.3);
}
#timer-block-modal h2 {
  color: #10b981;
  font-size: 3rem;
  margin-bottom: 16px;
}
