 
    :root {
      --bg: linear-gradient(135deg, #6c05cc 0%, #7716af 100%);
      --card: rgba(202, 60, 245, 0.219);
      --border: rgba(255, 255, 255, 0.25);
      --text: #ffffff;
      --shadow: rgba(0, 0, 0, 0.15);

      --start: #f800ae;
      --pause: #8400ff;
      --reset: #6c08dd;
      --laps: #ff77c6;
      --disabled: rgba(255, 255, 255, 0.25);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      background: var(--bg);
      font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
      color: var(--text);
      padding: 20px;
    }

    .container {
      width: 100%;
      max-width: 500px;
      background: var(--card);
      backdrop-filter: blur(14px);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 32px;
      box-shadow: 0 10px 30px var(--shadow);
    }

    h1 {
      text-align: center;
      margin-bottom: 24px;
      font-size: 2rem;
      font-weight: 700;
      letter-spacing: 1px;
    }

    .display {
      text-align: center;
      font-size: clamp(2.5rem, 8vw, 4.5rem);
      font-weight: bold;
      letter-spacing: 3px;
      margin-bottom: 28px;
      font-variant-numeric: tabular-nums;
      text-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
      user-select: none;
    }

    .controls {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 24px;
    }

    button {
      border: none;
      border-radius: 14px;
      padding: 14px 18px;
      color: white;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition:
        transform 0.15s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    button:hover:not(:disabled) {
      transform: translateY(-2px);
    }

    button:active:not(:disabled) {
      transform: scale(0.97);
    }

    button:disabled {
      cursor: not-allowed;
      opacity: 0.55;
      background: var(--disabled);
      box-shadow: none;
    }

    .btn-start {
      background: var(--start);
    }

    .btn-pause {
      background: var(--pause);
    }

    .btn-reset {
      background: var(--reset);
    }

    .btn-lap {
      background: var(--laps);
    }

    .btn-clear {
      background: rgba(255, 255, 255, 0.2);
    }

    .laps-section {
      margin-top: 12px;
    }

    .laps-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .laps-title {
      font-size: 1.1rem;
      font-weight: 700;
    }

    .laps-list {
      list-style: none;
      max-height: 280px;
      overflow-y: auto;
      border-radius: 12px;
    }

    .laps-list::-webkit-scrollbar {
      width: 8px;
    }

    .laps-list::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.35);
      border-radius: 10px;
    }

    .lap-item {
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      padding: 12px 14px;
      margin-bottom: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      animation: fadeIn 0.25s ease;
    }

    .lap-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .lap-number {
      font-size: 0.9rem;
      opacity: 0.85;
    }

    .lap-timestamp {
      font-size: 0.75rem;
      opacity: 0.7;
    }

    .lap-time {
      font-weight: bold;
      font-size: 1rem;
      font-variant-numeric: tabular-nums;
    }

    .empty-state {
      text-align: center;
      opacity: 0.75;
      padding: 16px;
      font-size: 0.95rem;
    }

    .status {
      text-align: center;
      margin-top: 10px;
      font-size: 0.9rem;
      opacity: 0.85;
      min-height: 20px;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(6px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 480px) {
      .controls {
        grid-template-columns: 1fr;
      }

      .container {
        padding: 24px;
      }
    }
  