/* Advanced Dice Game */

/* Container & Layout */
.advanced-dice-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    padding: 32px 12px 24px 12px;
    background: linear-gradient(135deg, #181a20 60%, #232946 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
    max-width: 420px;
    margin: 32px auto;
}

/* Game Header */
.game-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
}
.game-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #a259ff;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 0 8px #a259ff99, 0 0 2px #fff;
}

/* Dice Selector */
.dice-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.dice-selector label {
    color: #00f7ff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}
#dice-type {
    background: #232946;
    color: #a259ff;
    border: 1.5px solid #a259ff;
    border-radius: 6px;
    padding: 6px 16px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    outline: none;
    transition: border 0.2s;
}
#dice-type:focus {
    border-color: #00f7ff;
    box-shadow: 0 0 0 2px #00f7ff44;
}

/* Dice Display */
.dice-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
}
.dice-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    margin: 18px 0 10px 0;
    padding: 18px 0;
    border-radius: 14px;
    background: rgba(26,26,26,0.85);
    border: 2.5px solid #a259ff;
    color: #fff;
    box-shadow: 0 0 24px #a259ff44, 0 2px 16px #00f7ff22;
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
    min-width: 220px;
    min-height: 48px;
    user-select: none;
}
.dice-display.rolling {
    color: #51cf66;
    animation: pulse 0.5s ease-in-out infinite;
    border-color: #51cf66;
    background: rgba(26,26,26,0.95);
}
.dice-display.result {
    color: #00f7ff;
    animation: glow 1s ease-in-out;
    border-color: #00f7ff;
    background: rgba(26,26,26,0.98);
}

/* Roll Button */
.roll-btn {
    background: linear-gradient(90deg, #a259ff 60%, #00f7ff 100%);
    color: #181a20;
    border: none;
    padding: 14px 36px;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 4px;
    box-shadow: 0 2px 12px #a259ff33;
    letter-spacing: 1px;
    transition: all 0.2s;
}
.roll-btn:hover, .roll-btn:focus {
    background: linear-gradient(90deg, #00f7ff 60%, #a259ff 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 24px #00f7ff55;
    outline: none;
}
.roll-btn:active {
    background: #51cf66;
    color: #181a20;
}

/* Statistics Section */
.statistics {
    width: 100%;
    background: rgba(26,26,26,0.92);
    border: 1.5px solid #00f7ff;
    border-radius: 12px;
    padding: 18px 12px 12px 12px;
    margin: 0 0 18px 0;
    box-shadow: 0 2px 12px #00f7ff22;
}
.statistics h3 {
    color: #00f7ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #00f7ff44;
    padding-bottom: 6px;
    letter-spacing: 1px;
}
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 7px 10px;
    background: #232946;
    border-radius: 6px;
    box-shadow: 0 1px 4px #a259ff11;
}
.stat-label {
    color: #a259ff;
    font-weight: bold;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}
.stat-value {
    color: #51cf66;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
}

/* Frequency Chart */
.frequency-chart {
    margin-top: 18px;
    margin-bottom: 8px;
}
.frequency-chart h4 {
    color: #00f7ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.chart-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
    margin-top: 6px;
}
.chart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 28px;
}
.bar {
    width: 100%;
    background: linear-gradient(180deg, #00f7ff 60%, #a259ff 100%);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 2px 8px #00f7ff33;
    transition: height 0.3s;
}
.bar-label {
    color: #a259ff;
    font-size: 0.95rem;
    margin-top: 2px;
}
.bar-value {
    color: #51cf66;
    font-size: 0.9rem;
    margin-top: 1px;
}

/* Achievements */
.achievements {
    margin-top: 18px;
}
.achievements h4 {
    color: #00f7ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.achievement {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #232946;
    border-radius: 6px;
    padding: 7px 10px;
    box-shadow: 0 1px 4px #a259ff11;
    border: 1.5px solid transparent;
    transition: border 0.2s;
}
.achievement.unlocked {
    border-color: #51cf66;
    background: #232946ee;
}
.achievement.locked {
    border-color: #a259ff44;
    opacity: 0.7;
}
.achievement-icon {
    font-size: 1.5rem;
    color: #a259ff;
    filter: drop-shadow(0 0 4px #a259ff88);
}
.achievement.unlocked .achievement-icon {
    color: #51cf66;
    filter: drop-shadow(0 0 6px #51cf6688);
}
.achievement-info {
    display: flex;
    flex-direction: column;
}
.achievement-name {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: bold;
}
.achievement-desc {
    color: #a259ff;
    font-size: 0.95rem;
    font-family: 'Rajdhani', sans-serif;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes glow {
    0% { box-shadow: 0 0 20px #00f7ff88; }
    50% { box-shadow: 0 0 40px #a259ffcc; }
    100% { box-shadow: 0 0 20px #00f7ff88; }
}
@keyframes diceRoll {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(0.9); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Responsive Design */
@media (max-width: 600px) {
    .advanced-dice-container {
        max-width: 98vw;
        padding: 12px 2vw 18px 2vw;
    }
    .dice-display {
        font-size: 1.2rem;
        min-width: 120px;
        padding: 10px 0;
    }
    .roll-btn {
        padding: 10px 18px;
        font-size: 1rem;
    }
    .statistics {
        padding: 10px 4px 8px 4px;
    }
    .chart-bar {
        width: 18px;
    }
} 