/* ポップアップウィンドウ レイアウト上書き */

html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: var(--card-bg, #ffffff);
}

/* timer-wrapper のレイアウトを上書きし、CSS変数だけを継承する */
.timer-wrapper.popup-override {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  padding: 1rem;
  box-shadow: none;
  min-width: 0;
  max-width: none;
  gap: 0;
  transition: background 0.3s ease;
}

/* 時計を画面いっぱいに（短辺に合わせる） */
.popup-clock {
  width: min(94vw, 94vh);
  height: min(94vw, 94vh);
}

.popup-clock .clock-svg {
  width: 100%;
  height: 100%;
}

/* デジタル表示 */
.popup-digital {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.popup-digital .digital-time {
  font-size: clamp(2rem, 18vw, 8rem);
}
