@charset "UTF-8";

.utility-page {
  max-width: 900px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

.stopwatch-card {
  background: #ffffff;
  border: 1px solid #e8edf5;
  border-radius: 28px;
  padding: 36px 28px 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.utility-label {
  margin: 0 0 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #7f8ea3;
}

.utility-title {
  margin: 0;
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: #16233b;
}

.utility-desc {
  margin: 14px 0 28px;
  text-align: center;
  font-size: 20px;
  color: #6b7280;
}

.time-panel {
  background: #f3f6fd;
  border: 1px solid #dbe5f3;
  border-radius: 24px;
  padding: 34px 20px 26px;
  text-align: center;
}

.time-display {
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: #111827;
}

.time-display .ms {
  font-size: 0.48em;
  color: #7b6d5c;
  margin-left: 6px;
}

.time-status {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 600;
  color: #48648d;
}

.control-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn-control {
  min-width: 132px;
  height: 56px;
  border: none;
  border-radius: 16px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-control:hover {
  transform: translateY(-1px);
}

.btn-light {
  background: #f3f4f6;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

.btn-light:hover {
  background: #eaeef4;
}

.btn-primary {
  background: linear-gradient(135deg, #5d8df6 0%, #6b5cff 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(91, 124, 250, 0.25);
}

.btn-primary:hover {
  filter: brightness(0.98);
}

.lap-card {
  margin-top: 28px;
  border: 1px solid #e8edf5;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.lap-header {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  background: #f8fafc;
  color: #334155;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 20px;
  border-bottom: 1px solid #edf2f7;
}

.lap-body {
  min-height: 120px;
}

.lap-empty {
  padding: 42px 20px;
  text-align: center;
  font-size: 18px;
  color: #6b7280;
}

.lap-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  padding: 16px 20px;
  font-size: 18px;
  color: #1f2937;
  border-bottom: 1px solid #f1f5f9;
}

.lap-row:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .stopwatch-card {
    padding: 28px 18px 24px;
    border-radius: 22px;
  }

  .utility-title {
    font-size: 36px;
  }

  .utility-desc {
    font-size: 17px;
  }

  .time-panel {
    padding: 28px 14px 22px;
  }

  .time-display {
    font-size: 56px;
  }

  .time-status {
    font-size: 18px;
  }

  .btn-control {
    min-width: 110px;
    height: 50px;
    font-size: 18px;
  }

  .lap-header,
  .lap-row {
    grid-template-columns: 70px 1fr 1fr;
    font-size: 15px;
    padding: 14px 12px;
  }
}