/* 隱藏捲軸但保留功能 */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 計時器圓環進度條動畫 */
.timer-circle {
  transition: stroke-dashoffset 1s linear, stroke 0.5s ease;
}

/* 隱藏數字輸入框的原生上下箭頭，讓畫面更乾淨俐落 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* 計時器主畫面控制：去掉內圈，只保留上下兩顆圓形圖示 */
.timer-face {
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.02) 58%, transparent 76%);
}

.timer-face-control {
  position: absolute;
  left: 50%;
  z-index: 20;
  width: clamp(44px, 15%, 68px);
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 20px rgba(0, 0, 0, 0.16),
    0 0 18px rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.timer-face-control:hover,
.timer-face-control:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 10px 24px rgba(0, 0, 0, 0.18),
    0 0 24px rgba(255, 255, 255, 0.16);
}

.timer-face-icon,
.timer-face-control svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.24));
}

.timer-face-reset {
  top: 9%;
  transform: translate(-50%, 0);
}

.timer-face-reset:hover,
.timer-face-reset:focus-visible {
  transform: translate(-50%, -2px);
}

.timer-face-reset:active {
  transform: translate(-50%, 0) scale(0.94);
}

.timer-face-toggle {
  bottom: 9%;
  transform: translate(-50%, 0);
  color: rgba(224, 231, 255, 0.98);
  border-color: rgba(165, 180, 252, 0.26);
  background: rgba(99, 102, 241, 0.14);
}

.timer-face-toggle:hover,
.timer-face-toggle:focus-visible {
  transform: translate(-50%, 2px);
  border-color: rgba(165, 180, 252, 0.44);
  background: rgba(129, 140, 248, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 10px 24px rgba(0, 0, 0, 0.18),
    0 0 28px rgba(129, 140, 248, 0.24);
}

.timer-face-toggle:active {
  transform: translate(-50%, 0) scale(0.94);
}

/* 開始後維持 play/pause 行為，圖示會切成 pause，並用柔和金色提示目前正在計時 */
.timer-face-toggle.is-running {
  color: rgba(254, 243, 199, 0.98);
  border-color: rgba(251, 191, 36, 0.30);
  background: rgba(251, 191, 36, 0.13);
}

.timer-face-toggle.is-running:hover,
.timer-face-toggle.is-running:focus-visible {
  border-color: rgba(253, 230, 138, 0.48);
  background: rgba(251, 191, 36, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 10px 24px rgba(0, 0, 0, 0.18),
    0 0 30px rgba(251, 191, 36, 0.24);
}

@media (max-width: 420px) {
  .timer-face {
    width: 82%;
    height: 82%;
  }

  .timer-face-control {
    width: clamp(40px, 16%, 56px);
  }

  .timer-face-reset {
    top: 6%;
  }

  .timer-face-toggle {
    bottom: 6%;
  }
}
