/* /tools/quick-random/style.css */

.tool-wrapper > h1 {
    text-align: center;
}

.tool-subtitle {
    text-align: center;
    color: var(--text-color-secondary);
    margin-top: -0.5rem; 
    margin-bottom: 2rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 1.5rem auto 1rem auto;
}

.options-group {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

/* "Дисплей" (невидимый контейнер) */
.quick-random-display {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    margin-bottom: 0.5rem; 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    gap: 1rem;
    background-color: transparent; 
    border-radius: 12px;
    box-shadow: none; 
}

/* === "Барабан" СЛОТ-МАШИНЫ (для 1-3 чисел) === */
.arcade-slot {
    font-family: 'Lato', sans-serif;
    font-weight: 900; /* "Жирный" */
    font-size: 3.5rem; /* "Меньше" */
    color: var(--accent-color);
    padding: 0 0.5rem;
    min-width: 80px; /* Позволяет "прыгать" (расти) */
    text-align: center;
    text-shadow: 
        1px 1px 2px var(--shadow-dark), 
        -1px -1px 2px var(--shadow-light);
}

/* === "Список" (для 4+ чисел) === */
.quick-random-display.list-view {
    display: block; 
    text-align: center; 
    font-family: 'Roboto', sans-serif;
    font-weight: 900; /* "Жирный" */
    font-size: 3.5rem; /* "Меньше" */
    color: var(--accent-color); 
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    text-shadow: 
        1px 1px 2px var(--shadow-dark), 
        -1px -1px 2px var(--shadow-light);
}

.tool-actions .btn-primary {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    margin-top: 0; 
}

#result-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--shadow-dark);
}

.timestamp {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-color-secondary);
    margin-bottom: 1.5rem;
}

.hidden {
    display: none;
}

/* Адаптивность */
@media (min-width: 768px) {
    .quick-random-display {
        min-height: 200px;
    }
    
    .arcade-slot {
        font-size: 5rem; /* "Меньше" (десктоп) */
        min-width: 120px;
    }
    
    .quick-random-display.list-view {
        font-size: 5rem; /* "Меньше" (десктоп) */
    }
}

/* Анимация плавного появления (только для "Списка") */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-result {
    animation: fadeIn 0.4s ease-out;
}