.chance-tab-bar {
      display: flex;
      justify-content: center;
      gap: 0.75rem;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }
    .chance-area {
      min-height: 380px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin: 1rem 0;
      position: relative;
    }

    /* Standalone Tools Banner */
    .standalone-nav-bar {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 2rem;
      padding: 0.75rem 1.25rem;
      background: var(--bg-surface-subtle);
      border: 1px dashed var(--border-color);
      border-radius: var(--radius-lg);
      font-size: 0.9rem;
      align-items: center;
    }
    .standalone-nav-bar a {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-weight: 700;
      color: var(--primary);
      text-decoration: none;
      padding: 0.35rem 0.75rem;
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      transition: all 0.2s ease;
    }
    .standalone-nav-bar a:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 10px rgba(0,0,0,0.08);
      border-color: var(--primary);
    }

    /* =========================================
       1. LUCKY WHEEL STYLES
       ========================================= */
    .wheel-container {
      position: relative;
      width: 360px;
      height: 360px;
      max-width: 90vw;
      max-height: 90vw;
      margin: 0 auto 1.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .wheel-canvas {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      box-shadow: 0 15px 35px rgba(0,0,0,0.2), inset 0 0 15px rgba(0,0,0,0.15);
      transition: transform 4s cubic-bezier(0.12, 0.8, 0.25, 1);
    }
    .wheel-pointer {
      position: absolute;
      top: -14px;
      left: 50%;
      transform: translateX(-50%);
      width: 32px;
      height: 42px;
      z-index: 10;
      filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
      transform-origin: top center;
    }
    .wheel-center-cap {
      position: absolute;
      width: 56px;
      height: 56px;
      background: radial-gradient(circle, #FFFFFF 40%, #E2E8F0 100%);
      border-radius: 50%;
      box-shadow: 0 4px 12px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.8);
      border: 3px solid #CBD5E1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      cursor: pointer;
      z-index: 5;
    }
    .wheel-winner-banner {
      display: none;
      padding: 0.75rem 1.5rem;
      background: linear-gradient(135deg, #10B981, #059669);
      color: #FFFFFF;
      font-size: 1.35rem;
      font-weight: 800;
      border-radius: var(--radius-lg);
      margin-top: 1rem;
      box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
      animation: popBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      text-align: center;
    }

    /* =========================================
       2. MYSTERY CHESTS (3D LUCKY BOXES) STYLES
       ========================================= */
    .chests-count-bar {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      margin: 0.5rem 0 1.25rem;
      flex-wrap: wrap;
    }
    .count-stepper {
      display: inline-flex;
      align-items: center;
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-full);
      padding: 0.2rem;
      box-shadow: var(--shadow-sm);
    }
    .count-stepper-btn {
      width: 32px;
      height: 32px;
      border-radius: var(--radius-full);
      border: none;
      background: var(--bg-surface-subtle);
      color: var(--text-primary);
      font-size: 1.25rem;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .count-stepper-btn:hover:not(:disabled) {
      background: var(--primary);
      color: #FFFFFF;
      transform: scale(1.08);
    }
    .count-stepper-btn:disabled {
      opacity: 0.35;
      cursor: not-allowed;
    }
    .count-stepper-val {
      font-weight: 800;
      font-size: 1rem;
      padding: 0 0.85rem;
      min-width: 46px;
      text-align: center;
      color: var(--text-primary);
    }
    .chests-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 1.25rem;
      width: 100%;
      max-width: 820px;
      margin: 1rem auto 1.5rem;
      perspective: 1000px;
    }
    .chest-card {
      background: var(--bg-surface);
      border: 2px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 1.25rem 0.75rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
      user-select: none;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
      min-height: 180px;
    }
    .chest-card:hover:not(.opened) {
      transform: translateY(-8px) scale(1.04);
      box-shadow: 0 16px 32px rgba(99, 102, 241, 0.22);
      border-color: var(--primary);
    }
    .chest-box-wrap {
      position: relative;
      width: 90px;
      height: 90px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 0.5rem;
      transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .chest-img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      filter: drop-shadow(0 8px 14px rgba(0,0,0,0.18));
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .chest-card:hover:not(.opened) .chest-img {
      animation: boxWiggle 0.75s ease infinite alternate;
    }
    @keyframes boxWiggle {
      0% { transform: rotate(-5deg) scale(1.06); }
      100% { transform: rotate(5deg) scale(1.06); }
    }
    .chest-badge {
      position: absolute;
      bottom: -6px;
      right: -4px;
      font-weight: 800;
      font-size: 0.75rem;
      color: #FFFFFF;
      background: var(--primary);
      padding: 0.15rem 0.55rem;
      border-radius: var(--radius-full);
      box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
      border: 2px solid var(--bg-surface);
    }
    .chest-reward {
      display: none;
      width: 100%;
      text-align: center;
      animation: popBounce 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .chest-reward-icon {
      font-size: 2.85rem;
      line-height: 1.1;
      margin-bottom: 0.35rem;
      filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    }
    .chest-reward-label {
      font-size: 0.95rem;
      font-weight: 800;
      color: var(--primary);
      line-height: 1.25;
      word-break: break-word;
    }
    .chest-card.opened {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.08));
      border-color: var(--primary);
      box-shadow: 0 12px 28px rgba(99, 102, 241, 0.25);
    }
    .chest-card.opened .chest-box-wrap {
      display: none;
    }
    .chest-card.opened .chest-reward {
      display: block;
    }
    .chest-card.shuffling {
      animation: chestShuffle 0.6s ease;
    }
    @keyframes chestShuffle {
      0% { transform: scale(1); }
      50% { transform: scale(0.8) rotate(12deg); opacity: 0.4; }
      100% { transform: scale(1) rotate(0deg); opacity: 1; }
    }

    /* Modal List Row Styles */
    .modal-chest-row {
      display: flex;
      gap: 0.5rem;
      align-items: center;
      background: var(--bg-surface-subtle);
      padding: 0.4rem 0.6rem;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-color);
    }

    /* =========================================
       3. MAGIC 8-BALL STYLES
       ========================================= */
    .eightball-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
    }
    .magic-ball {
      width: 260px;
      height: 260px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 30%, #475569 0%, #0F172A 50%, #020617 100%);
      box-shadow: 0 25px 50px rgba(0,0,0,0.45), inset 0 -10px 20px rgba(0,0,0,0.8), inset 0 8px 16px rgba(255,255,255,0.25);
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      user-select: none;
      transition: transform 0.2s ease;
    }
    .magic-ball:hover {
      transform: scale(1.02);
    }
    .magic-ball.shaking {
      animation: shakeBall 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    }
    @keyframes shakeBall {
      10%, 90% { transform: translate3d(-3px, 0, 0) rotate(-3deg); }
      20%, 80% { transform: translate3d(5px, 0, 0) rotate(4deg); }
      30%, 50%, 70% { transform: translate3d(-7px, 0, 0) rotate(-5deg); }
      40%, 60% { transform: translate3d(7px, 0, 0) rotate(5deg); }
    }
    .ball-window {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: radial-gradient(circle, #1E1B4B 0%, #0B0F19 80%, #020617 100%);
      border: 6px solid #1E293B;
      box-shadow: inset 0 8px 18px rgba(0,0,0,0.9), 0 2px 6px rgba(255,255,255,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }
    .ball-triangle {
      width: 90px;
      height: 80px;
      background: radial-gradient(circle, #2563EB, #1D4ED8);
      clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      padding-top: 20px;
      box-sizing: border-box;
      box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
      transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .ball-oracle-text {
      color: #FFFFFF;
      font-size: 0.72rem;
      font-weight: 800;
      text-align: center;
      text-transform: uppercase;
      line-height: 1.15;
      padding: 0 6px;
      text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    }
    .ball-idle-8 {
      position: absolute;
      width: 90px;
      height: 90px;
      border-radius: 50%;
      background: #FFFFFF;
      color: #0F172A;
      font-size: 3.25rem;
      font-weight: 900;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 10px rgba(0,0,0,0.3);
      transition: opacity 0.3s ease;
    }
    .eightball-question-input {
      width: 100%;
      max-width: 440px;
      margin: 1.5rem 0 1rem;
      padding: 0.85rem 1.25rem;
      font-size: 1rem;
      border-radius: var(--radius-full);
      border: 2px solid var(--border-color);
      background: var(--bg-surface);
      color: var(--text-primary);
      text-align: center;
      font-weight: 600;
      box-shadow: var(--shadow-sm);
    }
    .eightball-question-input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    }

    @keyframes popBounce {
      0% { transform: scale(0.6); opacity: 0; }
      70% { transform: scale(1.08); opacity: 1; }
      100% { transform: scale(1); opacity: 1; }
    }
    @media (max-width: 560px) {
      .standalone-nav-bar {
        padding: 0.5rem 0.75rem;
        gap: 0.4rem;
      }
      .standalone-nav-bar a {
        font-size: 0.8rem;
        padding: 0.25rem 0.55rem;
      }
      .wheel-container {
        width: 290px;
        height: 290px;
      }
      .chance-area {
        min-height: 290px;
      }
    }