.dice-tray {
      background: var(--bg-surface-subtle);
      border: 2px solid var(--border-color);
      border-radius: var(--radius-xl);
      padding: 2.5rem 1.5rem;
      min-height: 260px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin: 1.5rem 0;
      box-shadow: var(--shadow-md);
      position: relative;
    }
    .dice-rack {
      display: flex;
      gap: clamp(0.75rem, 2vw, 1.5rem);
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      margin: 1rem 0;
    }
    .die-face {
      width: clamp(80px, 16vw, 105px);
      height: clamp(80px, 16vw, 105px);
      background: #FFFFFF;
      border-radius: 18px;
      box-shadow: 0 12px 24px rgba(0,0,0,0.12), inset 0 2px 4px rgba(255,255,255,0.8);
      border: 3px solid #CBD5E1;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      user-select: none;
      transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .die-pip-grid {
      width: 100%;
      height: 100%;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(3, 1fr);
      padding: 10px;
    }
    .die-pip {
      width: 13px;
      height: 13px;
      background: #0F172A;
      border-radius: 50%;
      margin: auto;
    }
    .die-poly-num {
      font-size: clamp(2rem, 5vw, 2.8rem);
      font-weight: 900;
      font-family: ui-monospace, monospace;
      color: #1E293B;
    }
    .die-poly-tag {
      position: absolute;
      bottom: 4px;
      font-size: 0.65rem;
      font-weight: 800;
      color: #64748B;
      text-transform: uppercase;
    }
    @keyframes diceRoll {
      0% { transform: translateY(0) rotate(0deg) scale(1); }
      30% { transform: translateY(-35px) rotate(180deg) scale(1.15); }
      70% { transform: translateY(15px) rotate(320deg) scale(0.95); }
      100% { transform: translateY(0) rotate(360deg) scale(1); }
    }
    .is-rolling {
      animation: diceRoll 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }
    .dice-total-display {
      font-size: clamp(1.5rem, 4vw, 2.5rem);
      font-weight: 900;
      text-align: center;
      margin-top: 0.5rem;
      color: var(--text-primary);
    }
    .dice-history-drawer {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 1.5rem;
      max-width: 700px;
    }
    .history-chip {
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-full);
      padding: 0.35rem 0.85rem;
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--text-secondary);
    }
    @media (max-width: 560px) {
      .dice-tray {
        padding: 1.5rem 1rem;
        min-height: 200px;
      }
      .die-face {
        width: 72px;
        height: 72px;
        border-radius: 14px;
      }
      .die-pip {
        width: 10px;
        height: 10px;
      }
      .die-poly-num {
        font-size: 1.8rem;
      }
    }