/* ===== STYLE GŁÓWNY ===== */
#kolo-losujace-game {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    min-height: 100vh;
    margin: 0;
    color: #333;
    position: relative;
}

/* ===== HEADER Z PRZYCISKIEM PEŁNEGO EKRANU ===== */
.kolo-header {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

#fullscreen-wrapper {
    pointer-events: auto;
}

/* ===== KONTENER GŁÓWNY ===== */
.kolo-container {
    background: rgba(248, 249, 250, 0.95);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #e9ecef;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* ===== KONTENER KOŁA ===== */
.kolo-wheel-container {
    position: relative;
    margin: 24px 0 18px;
    padding: 24px 24px 34px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

/* ===== CANVAS (PŁÓTNO DO RYSOWANIA) ===== */
#kolo-wheelCanvas {
    --kolo-focus-translate-x: 0px;
    --kolo-focus-translate-y: 0px;
    --kolo-focus-scale: 1;
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transform: translate(var(--kolo-focus-translate-x), var(--kolo-focus-translate-y)) scale(var(--kolo-focus-scale));
    transition: transform 1.45s cubic-bezier(0.16, 0.84, 0.22, 1), box-shadow 1.45s ease, filter 1.45s ease;
    will-change: transform;
}

/* ===== STRZAŁKA WSKAZUJĄCA ===== */
.kolo-arrow {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: 15%;
    max-height: 60px;
    min-height: 45px;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    transition: opacity 0.7s ease;
}

.kolo-wheel-container.is-focus-active #kolo-wheelCanvas {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    filter: saturate(1.08);
}

.kolo-wheel-container.is-focus-active .kolo-arrow {
    opacity: 0.2;
}

/* ===== WYŚWIETLACZ OPCJI POD KOŁEM ===== */
.kolo-options-display {
    margin-top: 5px;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.kolo-options-display h3 {
    margin-top: 0;
    color: #007bff;
}

.kolo-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.kolo-option-item {
    background: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.2s, transform 0.2s, background-color 0.2s;
}

.kolo-option-item.is-excluded {
    background: #adb5bd;
    color: #f8f9fa;
    opacity: 0.65;
    text-decoration: line-through;
    transform: scale(0.96);
}

/* ===== PRZYCISK LOSOWANIA ===== */
.kolo-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.kolo-spin-btn {
    background: linear-gradient(45deg, #28a745, #218838);
    font-size: 20px;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.kolo-spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.kolo-spin-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.kolo-exclude-btn {
    background: linear-gradient(45deg, #dc3545, #b02a37);
    font-size: 18px;
    padding: 15px 26px;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kolo-exclude-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.kolo-exclude-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== WYŚWIETLACZ WYNIKU ===== */
.kolo-result-display {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border-radius: 15px;
    font-size: 24px;
    font-weight: bold;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== OPIS NAUCZYCIELA ===== */
.omni-game-teacher-opis {
    margin-bottom: 30px;
    color: #000;
}

.omni-game-teacher-opis p {
    margin: 0.5em 0;
    line-height: 1.6;
    color: #000;
}

/* ===== NOTATKA ADMINA ===== */
.omni-game-admin-note {
    margin-top: 30px;
    color: #000;
}

.omni-game-admin-note p {
    margin: 0.5em 0;
    line-height: 1.6;
    color: #000;
}

/* ===== TRYB PEŁNEGO EKRANU ===== */
#kolo-losujace-game:fullscreen,
#kolo-losujace-game:-webkit-full-screen,
#kolo-losujace-game:-moz-full-screen,
#kolo-losujace-game:-ms-fullscreen,
#kolo-losujace-game.is-fs {
    background: #ffffff;
    padding: 20px;
    overflow-y: auto;
}

#kolo-losujace-game:fullscreen .kolo-container,
#kolo-losujace-game:-webkit-full-screen .kolo-container,
#kolo-losujace-game:-moz-full-screen .kolo-container,
#kolo-losujace-game:-ms-fullscreen .kolo-container,
#kolo-losujace-game.is-fs .kolo-container {
    max-width: 90%;
}

/* ===== RESPONSYWNOŚĆ DLA TELEFONÓW ===== */
@media (max-width: 768px) {
    .kolo-container {
        padding: 20px;
        max-width: 95%;
    }
    
    .kolo-spin-btn {
        font-size: 16px;
        padding: 12px 24px;
    }

    .kolo-exclude-btn {
        font-size: 15px;
        padding: 12px 22px;
    }
    
    .kolo-result-display {
        font-size: 18px;
        padding: 15px;
    }
    
    .kolo-arrow {
        right: 8px;
        max-height: 70px;
        min-height: 50px;
    }
}
