/**
 * Generator liczb – responsywność (wszystkie gry Loterion)
 * Ładowany po inline <style> w plikach game_*.php
 */
.numbers-display {
    max-width: 100%;
    overflow: hidden;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    box-sizing: border-box;
    scroll-margin-top: 5rem;
    scroll-margin-bottom: 2rem;
}

.numbers-container {
    flex-wrap: wrap !important;
    align-items: center;
    max-width: 100%;
    width: 100%;
    gap: clamp(0.4rem, 2vw, 1.5rem) !important;
    padding: 0 0.25rem;
    box-sizing: border-box;
}

.numbers-display .numbers-container .number-ball,
.numbers-display #generated-euro-numbers .number-ball {
    flex-shrink: 0;
    box-sizing: border-box;
}

#generated-euro-numbers {
    max-width: 100%;
    width: 100%;
    gap: clamp(0.4rem, 2vw, 1rem) !important;
}

.numbers-container > span {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .numbers-display h3 {
        font-size: 1.15rem !important;
        margin-bottom: 0.75rem !important;
    }

    .numbers-display .numbers-container .number-ball,
    .numbers-display #generated-euro-numbers .number-ball {
        width: clamp(42px, 11vw, 60px) !important;
        height: clamp(42px, 11vw, 60px) !important;
        min-width: 0 !important;
        min-height: 0 !important;
        font-size: clamp(0.95rem, 3.8vw, 1.4rem) !important;
        line-height: 1 !important;
    }

    .numbers-container > span {
        font-size: 1.1rem !important;
        margin: 0 0.15rem !important;
    }
}

@media (max-width: 480px) {
    .numbers-display {
        margin-top: 1.5rem;
    }

    .numbers-display .numbers-container .number-ball,
    .numbers-display #generated-euro-numbers .number-ball {
        width: clamp(36px, 10vw, 48px) !important;
        height: clamp(36px, 10vw, 48px) !important;
        font-size: clamp(0.85rem, 3.2vw, 1.15rem) !important;
    }

    /* Keno / Multi Multi – wiele kul w jednym rzędzie */
    .numbers-container:has(.number-ball:nth-child(8)) .number-ball {
        width: clamp(30px, 8.5vw, 40px) !important;
        height: clamp(30px, 8.5vw, 40px) !important;
        font-size: clamp(0.7rem, 2.8vw, 0.95rem) !important;
    }

    .numbers-container > span {
        font-size: 0.95rem !important;
    }

    .numbers-display .save-typing-btn,
    .numbers-display .copy-typing-btn {
        width: 100%;
        max-width: 100%;
        padding: 0.85rem 1rem !important;
        font-size: 1rem !important;
        box-sizing: border-box;
    }
}

/* Intro, akcje, stopka generatora */
.generator-result-intro {
    margin: 0 0 1.25rem 0;
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--text-primary, #1f2937);
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.generator-result-intro strong {
    color: var(--primary-color, #e30613);
}

.generator-result-subtitle {
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
    font-size: 0.95em;
}

.generator-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.75rem;
}

.generator-result-actions .save-typing-btn,
.copy-typing-btn {
    margin-top: 0 !important;
}

.copy-typing-btn--success {
    filter: brightness(0.93);
}

.generator-result-footer {
    margin: 1.75rem auto 0;
    max-width: 560px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary, #6b7280);
    text-align: center;
}

.generator-result-footer a {
    color: var(--primary-color, #e30613);
    font-weight: 700;
    text-decoration: none;
}

.generator-result-footer a:hover {
    text-decoration: underline;
}

.generator-plus-sep {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0.35rem;
    color: var(--text-primary, #fff);
    flex-shrink: 0;
}

.generator-euro-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--card-border, rgba(255, 255, 255, 0.2));
}

.generator-euro-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
    color: #ffa500;
}
