/* 7 UP 7 DOWN — Royale Violet restyle. Two 3D dice cubes, band choices, total scale. */

/* --- the stage: violet card with an emerald radial glow up top --- */
.su-stage {
    --acc: #22c55e;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 14px;
    padding: 18px 14px 14px;
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(34, 197, 94, 0.16), transparent 62%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(245, 196, 81, 0.22);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.su-dice-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}
.su-op { font-size: 1.5rem; font-weight: 900; color: #a79fc2; }
.su-total {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffd76a, #e8a91c);
    color: #2a1a00;
    font-size: 1.7rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(245, 196, 81, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.su-total.pop { animation: su-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.5); }
@keyframes su-pop {
    0% { transform: scale(0.6); }
    100% { transform: scale(1); }
}

/* --- the 3D dice: ivory faces, violet-tinted window, dark pips --- */
.su-scene { width: 76px; height: 76px; perspective: 520px; }
.su-cube {
    position: relative;
    width: 76px;
    height: 76px;
    transform-style: preserve-3d;
}
.su-face {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 11px;
    border-radius: 14px;
    background: linear-gradient(145deg, #fdfdff, #d9d7ee);
    box-shadow:
        inset 0 0 0 1px rgba(139, 92, 246, 0.35),
        inset 0 -6px 12px rgba(30, 18, 60, 0.18);
    backface-visibility: hidden;
}
.su-face span { display: flex; align-items: center; justify-content: center; }
.su-pip {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #6b6b8e, #1a1430 70%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* --- total scale 2..12 --- */
.su-scale { display: flex; gap: 3px; }
.su-scale-cell {
    flex: 1;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 0;
    border-radius: 7px;
    color: #a79fc2;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: all 0.2s ease;
}
.su-scale-cell.seven { color: #ffd76a; border-color: rgba(245, 196, 81, 0.4); }
.su-scale-cell.lit {
    color: #fff;
    transform: translateY(-3px) scale(1.12);
}
.su-scale-cell.lit.down { background: #2563eb; border-color: #60a5fa; box-shadow: 0 0 14px rgba(37, 99, 235, 0.7); }
.su-scale-cell.lit.up { background: #ef4444; border-color: #f87171; box-shadow: 0 0 14px rgba(239, 68, 68, 0.7); }
.su-scale-cell.lit.seven { background: linear-gradient(180deg, #ffd76a, #e8a91c); color: #2a1a00; border-color: rgba(255, 240, 190, 0.8); box-shadow: 0 0 16px rgba(245, 196, 81, 0.8); }

/* --- band choices --- */
.su-choices {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 12px;
}
.su-choice {
    flex: 1;
    border: 1px solid rgba(245, 196, 81, 0.22);
    border-radius: 16px;
    padding: 10px 4px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #f5f0ff;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.su-choice-name { font-size: 0.86rem; font-weight: 900; letter-spacing: 0.02em; }
.su-choice-meta { font-size: 0.68rem; font-weight: 700; opacity: 0.85; color: #a79fc2; }
.su-choice.down.active { background: linear-gradient(160deg, #2563eb, #1e3a8a); box-shadow: 0 0 16px rgba(37, 99, 235, 0.5), 0 4px 0 rgba(0, 0, 0, 0.4); border-color: rgba(147, 197, 253, 0.7); }
.su-choice.down.active .su-choice-meta { color: #dbeafe; }
.su-choice.up.active { background: linear-gradient(160deg, #ef4444, #991b1b); box-shadow: 0 0 16px rgba(239, 68, 68, 0.5), 0 4px 0 rgba(0, 0, 0, 0.4); border-color: rgba(252, 165, 165, 0.7); }
.su-choice.up.active .su-choice-meta { color: #fee2e2; }
.su-choice.seven.active { background: linear-gradient(180deg, #ffd76a, #e8a91c); color: #2a1a00; box-shadow: 0 10px 24px rgba(245, 196, 81, 0.4), 0 4px 0 rgba(0, 0, 0, 0.4); border-color: rgba(255, 240, 190, 0.8); }
.su-choice.seven.active .su-choice-meta { color: #6b4a00; }
.su-choice:active { transform: scale(0.96); }

/* --- history --- */
.su-history {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 26px;
    max-width: 340px;
    margin: 0 auto 6px;
}
.su-history-chip {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 900;
    color: #fff;
    animation: chain-in 0.3s ease both;
}
.su-history-chip.down { background: #2563eb; }
.su-history-chip.up { background: #ef4444; }
.su-history-chip.seven { background: linear-gradient(180deg, #ffd76a, #e8a91c); color: #2a1a00; }

/* compact screens: keep it scroll-free */
@media (max-height: 720px) {
    .su-stage { padding: 14px 12px 12px; margin-bottom: 10px; }
    .su-dice-row { margin-bottom: 12px; gap: 10px; }
    .su-choices { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
