.generator-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0;
  }

  .machine {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at 20% 10%, rgba(212, 175, 55, 0.22), transparent 30%),
      linear-gradient(145deg, #1a1505, #0a0802 55%, #2a1f0a);
    border-radius: 16px;
    width: 380px;
    text-align: center;
    padding: 20px 15px 25px;
    color: #f5e5c8;
    box-shadow:
      0 0 25px rgba(255, 0, 0, 0.89),
      0 12px 30px rgba(0,0,0,.65),
      inset 0 0 20px rgba(141, 158, 144, 0.103);
    font-family: 'Orbitron', sans-serif;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .machine::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(120deg, transparent 0%, rgba(255, 215, 0, 0.08) 18%, transparent 36%),
      repeating-linear-gradient(
        90deg,
        rgba(212, 175, 55, 0.04) 0,
        rgba(212, 175, 55, 0.04) 1px,
        transparent 1px,
        transparent 24px
      );
    mix-blend-mode: screen;
  }

  .machine::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.89), rgba(141, 158, 144, 0.103), rgba(255, 215, 0, 0.25));
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
  }

  .machine h2 {
    position: relative;
    z-index: 1;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow:
      0 0 8px rgba(212, 175, 55, 0.5),
      0 0 18px rgba(224, 40, 40, 0.25);
  }

  .display {
    position: relative;
    z-index: 1;
    background:
      linear-gradient(180deg, #070707, #1a1505);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    box-shadow:
      inset 0 0 16px rgba(224, 40, 40, 0.25),
      0 0 12px rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
  }

  .ball {
    width: 60px;
    height: 60px;
    background:
      radial-gradient(circle at 30% 30%, #ffa600, #b86201 45%, #3a2c0c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    box-shadow:
      0 0 10px rgba(212, 175, 55, 0.3),
      0 0 6px #000000,
      inset -3px -3px 6px rgba(255, 255, 255, 0.2),
      inset 3px 3px 6px rgba(255, 215, 0, 0.1);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(224, 40, 40, 0.25);
  }

  .ball:hover {
    box-shadow:
      0 0 16px rgba(255, 0, 0, 0.895),
      0 0 8px #000000,
      inset -3px -3px 6px rgba(255,255,255,.25),
      inset 3px 3px 6px rgba(0, 255, 0, 0.24);
  }

  .ball.spin {
    animation: roll 0.4s ease infinite;
  }

  @keyframes roll {
    0% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.1); }
    100% { transform: rotateY(360deg) scale(1); }
  }

  #generate-btn {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    background:
      linear-gradient(135deg, #3a2c0c, #7d5f1e 55%, #2a1f0a);
    border: 1px solid rgba(255, 0, 0, 0.89);
    color: #ffffff;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow:
      0 0 12px rgba(224, 40, 40, 0.25),
      inset 0 0 8px rgba(255, 215, 0, 0.08);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: .8px;
  }

  #generate-btn:hover {
    background: linear-gradient(135deg, #5a4518, #ff0000 55%, #7d5f1e);
    transform: translateY(-2px);
    box-shadow:
      0 0 18px rgba(255, 0, 0, 0.895),
      0 0 26px rgba(255, 215, 0, 0.2);
  }
