/* ===== Base ===== */
  body {
    font-family: sans-serif;
  }

  h1 {
    display:flex;
    align-items:center;
    padding-left:20px;
  }

/* ===== Layout ===== */
  .wrapper {
    display:flex;
    gap:40px;
    margin:0 5%;
  }

  .left { width:500px; }
  .right { width:320px; padding-top:50px; }

  .page {
    flex: 1;
    padding: 20px;
  }

  .button-row {
    display:flex;
    justify-content:space-between;
  }

  .container {
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:20px;
  }

/* ===== Component ===== */
  button {
    padding:12px 30px;
    background:#44a098;
    color:#fff;
    border:2px solid #44a098;
    border-radius:50px;
    cursor:pointer;
    transition:.2s;
  }

  button:hover {
    background:#fff;
    color:#44a098;
  }

  button:active {
    transform:translateY(3px);
  }

  #spinBtn {
    font-weight:bold;
  }

  .slot-box {
    padding:16px;
    border:2px solid #44a098;
    border-radius:10px;
    background:#f9ffff;
  }

  .category {
    font-size:12px;
    opacity:.6;
  }

  .slot-row {
    display:flex;
    justify-content:space-between;
  }

  .slot {
    font-weight:bold;
    color:#44a098;
    height:32px;
    padding-top:4px;
    overflow:hidden;
  }

  .slot-inner {
    display:inline-block;
    transition: transform .2s;
  }

  .reroll {
    cursor:pointer;
    opacity:.6;
  }
  .reroll:hover { opacity:1; }

  #historyList {
    max-height:550px;
    overflow-y:auto;
  }

  .history-item {
    font-size:12px;
    margin-bottom:8px;
  }

  .roulette-icon {
    position: relative;
    width:34px;
    height:34px;
    border-radius:50%;
    background:#44a098;
    margin-right:12px;
  }

  .roulette-icon::after {
    content:"";
    position:absolute;
    width:8px;
    height:8px;
    background:#fff;
    border-radius:100%;
    top:50%;
    left:50%;
    transform-origin:0 0px;
    animation: spin 1.5s linear infinite;
  }

  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  footer {
    background: #44a098;
    color: #fff;
    text-align: center;
    padding: 16px 0;
    margin-top: 40px;
  }

/* ===== Responsive ===== */
  @media (max-width:768px){
    .wrapper {
      flex-direction:column;
    }
    .left, .right {
      width:100%;
    }
    .right {
      padding-top:30px;
    }
  }
