.timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
}

.timer__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  min-width: 1.4em;
  text-align: center;
  transition: color 0.3s;
}

.timer__item::after {
  content: attr(data-title);
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
}

.timer--expired .timer__item {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  animation: timerPulse 0.8s ease-in-out infinite;
}

.timer--expired .timer__item::after {
  color: var(--danger);
  -webkit-text-fill-color: var(--danger);
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

@media (max-width: 768px) {
  .timer__item {
    font-size: 4rem;
  }

  .timer__item::after {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .timer__item {
    font-size: 2.5rem;
  }

  .timer__item::after {
    font-size: 0.55rem;
  }
}

.timerSettings {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
  border-radius: 50%;
}

.timerSettings:hover {
  box-shadow: 0 6px 10px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.burger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 20px;
  height: 20px;
}

.burger-icon span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
}

.settings-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.settings-overlay--open {
  display: flex;
}

.settings-modal {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 32px;
  max-width: 380px;
  width: 100%;
  animation: settingsFadeIn 0.2s ease-out;
}

@keyframes settingsFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.settings-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.settings-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.settings-inputs {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.settings-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.settings-input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}

.settings-input::-webkit-inner-spin-button,
.settings-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.settings-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.settings-actions {
  display: flex;
  gap: 12px;
}

.settings-cancel {
  flex: 1;
  background: var(--bg);
  color: var(--text-muted);
}

.settings-cancel:hover {
  background: var(--border);
  color: var(--text);
}

.settings-save {
  flex: 1;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}

.settings-save:hover {
  box-shadow: 0 6px 10px rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
}
