.stopwatch-page {
  color: #26313f;
}

main > .row,
footer .row {
  margin-left: 0;
  margin-right: 0;
}

.stopwatch-container {
  max-width: 1200px;
}

.stopwatch-title {
  border-left: 0.65rem solid #8eb41c;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin: 0 0 1rem;
  padding-left: 1rem;
  text-align: left;
}

.stopwatch-lead {
  color: #52606d;
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.stopwatch-tool {
  align-items: center;
  background:
    radial-gradient(circle at top, rgba(42, 67, 101, 0.72), transparent 52%),
    #08101c;
  border: 1px solid #1f334c;
  border-radius: 1rem;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 410px;
  overflow: hidden;
  padding: 2.25rem 1.25rem 1.75rem;
  position: relative;
  text-align: center;
}

.stopwatch-tool__status {
  align-items: center;
  color: #b8c5d3;
  display: flex;
  font-size: 0.92rem;
  gap: 0.5rem;
  justify-content: center;
  min-height: 1.5rem;
}

.stopwatch-tool__status > span {
  font-size: inherit;
}

.stopwatch-tool__status-dot {
  background: #94a3b8;
  border-radius: 50%;
  box-shadow: 0 0 0 0.3rem rgba(148, 163, 184, 0.13);
  height: 0.55rem;
  width: 0.55rem;
}

.stopwatch-tool__status-dot--running {
  background: #57cc99;
  box-shadow: 0 0 0 0.3rem rgba(87, 204, 153, 0.14);
}

.stopwatch-tool__status-dot--paused {
  background: #f6bd60;
  box-shadow: 0 0 0 0.3rem rgba(246, 189, 96, 0.14);
}

.stopwatch-tool__display {
  align-items: baseline;
  display: flex;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(3.7rem, 10vw, 7.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  justify-content: center;
  letter-spacing: -0.07em;
  line-height: 1.1;
  margin: 0.65rem 0 0.35rem;
  white-space: nowrap;
}

.stopwatch-tool__display > span {
  font-size: inherit;
}

.stopwatch-tool__fraction-separator {
  color: #8eb41c;
  margin-left: 0.02em;
}

.stopwatch-tool__fraction {
  color: #c8d7e8;
  font-size: 0.48em !important;
  letter-spacing: -0.04em;
}

.stopwatch-tool__current-lap {
  color: #a9bdd4;
  display: flex;
  font-size: 0.95rem;
  gap: 0.45rem;
}

.stopwatch-tool__current-lap span,
.stopwatch-tool__current-lap strong {
  font-size: inherit;
}

.stopwatch-tool__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.stopwatch-tool__actions .btn {
  font-weight: 700;
  min-width: 7rem;
}

.stopwatch-tool__primary {
  min-width: 9rem !important;
}

.stopwatch-tool__shortcuts {
  color: #8294a8;
  font-size: 0.82rem;
  margin: 0.85rem 0 0;
}

.stopwatch-tool__exit {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
}

.stopwatch-tool__exit[hidden] {
  display: none;
}

.stopwatch-tool:fullscreen,
.stopwatch-tool--focus {
  border: 0;
  border-radius: 0;
  height: 100vh;
  max-height: none;
  min-height: 100vh;
  width: 100vw;
}

.stopwatch-tool:fullscreen .stopwatch-tool__display,
.stopwatch-tool--focus .stopwatch-tool__display {
  font-size: clamp(5rem, 14vw, 14rem);
}

.stopwatch-tool--focus {
  inset: 0;
  position: fixed;
  z-index: 99999;
}

body.stopwatch-focus {
  overflow: hidden;
}

.stopwatch-ad {
  margin: 1rem auto 1.75rem;
  min-height: 90px;
  text-align: center;
}

.stopwatch-laps {
  margin-top: 1rem;
}

.stopwatch-layout {
  align-items: flex-start;
}

.stopwatch-content {
  text-align: left;
}

.stopwatch-section {
  background: #fff;
  border: 1px solid #dbe3eb;
  border-radius: 0.85rem;
  margin-bottom: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
}

.stopwatch-section h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin: 0 0 1rem;
}

.stopwatch-section h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.stopwatch-section p,
.stopwatch-section li {
  font-size: 1.05rem;
  line-height: 1.75;
}

.stopwatch-table-wrapper {
  overflow-x: auto;
}

.stopwatch-lap-table {
  font-variant-numeric: tabular-nums;
  margin-bottom: 0;
  min-width: 34rem;
}

.stopwatch-lap-table th,
.stopwatch-lap-table td {
  padding: 0.85rem;
  vertical-align: middle;
}

.stopwatch-lap-table__fastest {
  background: #edf9f3;
}

.stopwatch-lap-table__slowest {
  background: #fff4ed;
}

.stopwatch-lap-table__badge {
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  margin-left: 0.55rem;
  padding: 0.12rem 0.45rem;
}

.stopwatch-steps {
  padding-left: 1.4rem;
}

.stopwatch-use-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stopwatch-use-card {
  background: #f6f8fb;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 1rem;
}

.stopwatch-use-card p {
  margin-bottom: 0;
}

.stopwatch-faq h3 {
  margin-top: 1.25rem;
}

.stopwatch-faq h3:first-child {
  margin-top: 0;
}

.stopwatch-faq p:last-child {
  margin-bottom: 0;
}

.stopwatch-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.stopwatch-cluster a {
  background: #eef4f9;
  border: 1px solid #d8e2eb;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
}

.stopwatch-sidebar {
  position: sticky;
  top: 1rem;
}

@media (max-width: 991.98px) {
  .stopwatch-sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .stopwatch-tool {
    min-height: 390px;
    padding: 2rem 0.75rem 1.5rem;
  }

  .stopwatch-tool__display {
    font-size: clamp(2.55rem, 12vw, 5.4rem);
  }

  .stopwatch-tool:fullscreen .stopwatch-tool__display,
  .stopwatch-tool--focus .stopwatch-tool__display {
    font-size: clamp(3.1rem, 16vw, 7rem);
  }

  .stopwatch-use-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .stopwatch-tool__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 19rem);
  }

  .stopwatch-tool__actions .btn,
  .stopwatch-tool__primary {
    min-width: 0 !important;
    width: 100%;
  }

  .stopwatch-tool__shortcuts {
    max-width: 19rem;
  }
}
