body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #1e1e2f;
    font-family: Arial, sans-serif;
    margin: 0;
    color: #fff;
  }

  .clock {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .digit-container {
    position: relative;
    width: 120px;
    height: 80px;
    overflow: hidden;
    border: 3px solid #444;
    border-radius: 10px;
    background: #000;
  }

  .digit {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    transition: transform 0.5s ease-in-out;
  }

  .digit.new {
    transform: translateY(100%);
  }

  .digit.old {
    transform: translateY(0);
  }

  .digit.slide-up {
    transform: translateY(-100%);
  }

  .label {
    font-size: 1rem;
    text-transform: uppercase;
    color: #bbb;
  }

  .ampm {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 20px;
  }