

body {
  margin: 0;
}

.page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 16px;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-title {
  margin: 0;
  white-space: pre-wrap;
}

.timer-section {
  width: 100%;
}

.timer-layout {
  max-width: 600px;
  margin: 0 auto;
}

.timer-visual {
  position: relative;
  height: 170px;
  margin-bottom: 40px;
}

.timer-circle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.timer-circle--total {
  width: 136px;
  height: 136px;
  margin: 20px auto;
  transform: translate(-50%, -8px);
}

.timer-circle--round {
  width: 120px;
  height: 120px;
  margin: 20px auto;
}

.timer-circle-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.timer-circle-overlay {
  width: 110px;
  height: 110px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.timer-round-value {
  font-size: 64px;
  line-height: 1;
  color: var(--focus0);
  font-family: 'B612 Mono', monospace;
}

.timer-total-progress,
.timer-round-progress {
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: all 0.2s ease-in-out;
}

.timer-round-background, .timer-round-progress, .timer-total-background, .timer-total-progress {
    fill: none;
    stroke-width: 5;
}

.timer-round-background {
    stroke: var(--highlight);
}
.timer-round-progress {
    stroke: var(--focus1);
}
.timer-total-background {
    stroke: var(--highlight2);
}
.timer-total-progress {
    stroke: var(--text);
}

.timer-stats {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--focus0);
}

.timer-stats-item {
  flex: 1 1 150px;
  text-align: center;
}

.timer-stats-value {
  font-size: 32px;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 5px;
}

.timer-stats-value--time {
  font-family: 'B612 Mono', monospace;
}

.timer-stats-label {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.33333;
}

.timer-controls {
  text-align: center;
}

.timer-controls-buttons {
  margin-bottom: 24px;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.timer-button {
  display: block;
  width: 100%;
  padding: 18px 36px;
  border-radius: 5px;
  background: #7300F0;
  color: #fff;
  border: none;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.timer-button + .timer-button {
  margin-top: 12px;
}

.timer-button:hover,
.timer-button:focus {
  text-decoration: none;
  outline: none;
  background-color: #8d24ff;
}

.timer-button:active {
  background: #4e00a4;
}

.timer-button--start {
  background: #03d07a;
  color: rgba(0, 0, 0, 0.84);
  display: none;
}

.timer-button--start:hover,
.timer-button--start:focus {
  background: #03e989;
}

.timer-button--start:active {
  background: #03b76b;
}

.timer-button--pause {
  background: #f566ec;
  color: rgba(0, 0, 0, 0.84);
  display: none;
}

.timer-button--pause:hover,
.timer-button--pause:focus {
  background: #f77eef;
}

.timer-button--pause:active {
  background: #f34ee9;
}

.timer-reset-link {
  font-size: inherit;
  font-weight: 500;
  border: 0;
  border-bottom: 3px solid #fff;
  background: none;
  color: #fff;
  padding: 0 0 2px 0;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.timer-reset-link:hover,
.timer-reset-link:focus {
  text-decoration: none;
  outline: none;
  color: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

.timer-reset-link:active {
  color: #5b00bd;
  border-bottom-color: #5b00bd;
}

@media (max-width: 480px) {
  .timer-visual {
    margin-bottom: 32px;
  }

  .timer-stats {
    gap: 16px;
  }
}
