.tool-container .output {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.dice-face {
    width: 100px;
    height: 100px;
    border: 2px solid #2A2D6E;
    border-radius: 6px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: #1A1B4A;
    position: relative;
}
.dice-face.d6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    padding: 10px;
}
.dice-face .dot {
    width: 20px;
    height: 20px;
    background: #1A1B4A;
    border-radius: 50%;
    display: none;
}
/* Dot positions for d6 */
.dice-face.d6[data-value="1"] .dot:nth-child(5) { display: block; }
.dice-face.d6[data-value="2"] .dot:nth-child(1), .dice-face.d6[data-value="2"] .dot:nth-child(9) { display: block; }
.dice-face.d6[data-value="3"] .dot:nth-child(1), .dice-face.d6[data-value="3"] .dot:nth-child(5), .dice-face.d6[data-value="3"] .dot:nth-child(9) { display: block; }
.dice-face.d6[data-value="4"] .dot:nth-child(1), .dice-face.d6[data-value="4"] .dot:nth-child(3), .dice-face.d6[data-value="4"] .dot:nth-child(7), .dice-face.d6[data-value="4"] .dot:nth-child(9) { display: block; }
.dice-face.d6[data-value="5"] .dot:nth-child(1), .dice-face.d6[data-value="5"] .dot:nth-child(3), .dice-face.d6[data-value="5"] .dot:nth-child(5), .dice-face.d6[data-value="5"] .dot:nth-child(7), .dice-face.d6[data-value="5"] .dot:nth-child(9) { display: block; }
.dice-face.d6[data-value="6"] .dot:nth-child(1), .dice-face.d6[data-value="6"] .dot:nth-child(2), .dice-face.d6[data-value="6"] .dot:nth-child(3), .dice-face.d6[data-value="6"] .dot:nth-child(7), .dice-face.d6[data-value="6"] .dot:nth-child(8), .dice-face.d6[data-value="6"] .dot:nth-child(9) { display: block; }
.dice-face.rolling {
    animation: rollDice 0.5s ease-in-out;
}
@keyframes rollDice {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}
.tool-container .btn-copy {
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #2A2D6E;
    border-radius: 6px;
    background: #FFFFFF;
    color: #2A2D6E;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.tool-container .btn-copy:hover {
    background: #A7A9D6;
    color: #FFFFFF;
    transform: scale(1.05);
}
.tool-container .btn-copy.copied {
    background: #28a745;
    color: #FFFFFF;
    border-color: #28a745;
}
.tool-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.tool-controls select {
    padding: 0.5rem;
    border: 2px solid #2A2D6E;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: #FFFFFF;
    color: #1A1B4A;
}
.history {
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1A1B4A;
    text-align: center;
}
@media (max-width: 576px) {
    .tool-controls select {
        max-width: 100%;
    }
    .dice-face {
        width: 80px;
        height: 80px;
        font-size: 1.2rem;
    }
    .dice-face.d6 .dot {
        width: 16px;
        height: 16px;
    }
}
