<style>
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background: radial-gradient(circle at 20% 30%, #0a0f1a, #03060c);
      font-family: 'Segoe UI', 'Poppins', system-ui, -apple-system, 'Inter', sans-serif;
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 1.5rem;
      color: #eef2ff;
    }

    /* main card container */
    .app-container {
      max-width: 1400px;
      width: 100%;
      background: rgba(12, 18, 28, 0.75);
      backdrop-filter: blur(2px);
      border-radius: 3rem;
      padding: 1.5rem 2rem 2rem 2rem;
      box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(72, 85, 106, 0.4);
      transition: all 0.2s;
    }

    h1 {
      font-size: 2rem;
      font-weight: 600;
      letter-spacing: -0.3px;
      background: linear-gradient(135deg, #e9f0ff, #b9c8ff);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      text-align: center;
      margin-bottom: 0.25rem;
    }

    .sub {
      text-align: center;
      color: #94a3b8;
      margin-bottom: 2rem;
      font-size: 0.9rem;
      border-bottom: 1px dashed #2d3a4e;
      display: inline-block;
      width: auto;
      margin-left: auto;
      margin-right: auto;
      padding-bottom: 0.5rem;
    }

    /* two columns for wheels + panels */
    .wheels-panel {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
      margin-bottom: 2rem;
    }

    .wheel-card {
      flex: 1;
      min-width: 280px;
      background: #0f172ad9;
      backdrop-filter: blur(4px);
      border-radius: 2rem;
      padding: 1.2rem 1rem 1.5rem 1rem;
      box-shadow: 0 12px 28px -8px black;
      border: 1px solid #2a3649;
      transition: transform 0.2s;
      position: relative;
    }

    .wheel-card h2 {
      font-size: 1.6rem;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      justify-content: center;
      margin-bottom: 1rem;
      color: #cbd5e6;
    }

    /* Container for wheel + fixed arrow */
    .wheel-with-arrow {
      position: relative;
      display: flex;
      justify-content: center;
      margin-bottom: 0.5rem;
    }

    .wheel-wrapper {
      display: flex;
      justify-content: center;
    }

    canvas {
      display: block;
      margin: 0 auto;
      max-width: 100%;
      height: auto;
      background: #03060c;
      border-radius: 50%;
      box-shadow: 0 0 0 4px #1e2a3a, 0 20px 30px -8px black;
      transition: all 0.2s;
    }

    /* Fixed arrow indicator at the top of each wheel */
    .arrow-indicator {
      position: absolute;
      top: -18px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 42px;
      filter: drop-shadow(0 4px 6px black);
      z-index: 10;
      pointer-events: none;
      text-shadow: 0 0 3px #000;
    }
    /* make arrow more visible in dark theme */
    .arrow-indicator span {
      display: block;
      font-size: 3rem;
      line-height: 1;
    }

    .input-group {
      margin-top: 1.2rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      justify-content: center;
    }

    .input-group input {
      flex: 1;
      min-width: 120px;
      background: #0b1120;
      border: 1px solid #2d3a55;
      padding: 0.6rem 1rem;
      border-radius: 2rem;
      color: white;
      font-size: 0.9rem;
      outline: none;
      transition: 0.2s;
    }

    .input-group input:focus {
      border-color: #5f7fbf;
      box-shadow: 0 0 0 2px #2e4a7a;
    }

    .button-group {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      justify-content: center;
      margin-top: 0.8rem;
    }

    button {
      background: #1f2a40;
      border: none;
      color: #eef2ff;
      font-weight: 500;
      padding: 0.5rem 1.2rem;
      border-radius: 2rem;
      cursor: pointer;
      transition: 0.2s;
      font-size: 0.8rem;
      letter-spacing: 0.3px;
      backdrop-filter: blur(4px);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }

    button:hover {
      background: #2f3d62;
      transform: scale(0.96);
    }

    button.primary {
      background: #3b4e7a;
      box-shadow: 0 0 8px #4f6fae;
    }

    button.primary:active {
      background: #2a3b60;
    }

    .result-area {
      background: #070c14cc;
      border-radius: 2rem;
      padding: 1.2rem;
      text-align: center;
      margin-top: 1rem;
      border: 1px solid #2a3a50;
    }

    .result-badge {
      font-size: 1.5rem;
      font-weight: bold;
      background: #00000066;
      padding: 0.8rem;
      border-radius: 2rem;
      word-break: break-word;
    }

    .spin-all {
      display: flex;
      justify-content: center;
      margin: 1rem 0 0.5rem;
    }

    #spinBothBtn {
      background: linear-gradient(95deg, #4f46e5, #7c3aed);
      padding: 0.8rem 2rem;
      font-size: 1.2rem;
      font-weight: bold;
      box-shadow: 0 5px 12px #2e1a6e;
    }

    footer {
      font-size: 0.7rem;
      text-align: center;
      margin-top: 1.8rem;
      opacity: 0.7;
    }

    .warning-small {
      color: #facc15;
      font-size: 0.7rem;
      margin-top: 6px;
      text-align: center;
    }

    @media (max-width: 780px) {
      .app-container {
        padding: 1rem;
      }
      .wheel-card {
        padding: 1rem;
      }
      .result-badge {
        font-size: 1.2rem;
      }
      button {
        padding: 0.4rem 1rem;
      }
      .arrow-indicator {
        top: -14px;
        font-size: 32px;
      }
      .arrow-indicator span {
        font-size: 2.2rem;
      }
    }
  </style>
</head>