body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 30px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.content {
    text-align: center;
    margin: 140px 0 30px 0;
}

.sectors-text {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.6;
}

.answer {
    font-size: 1.6em;
    color: #2c3e50;
    margin: 20px 0;
    min-height: 60px;
    opacity: 0;
    font-weight: bold;
    text-align: center;
    white-space: pre-line; /* Добавить эту строку */
}

.answer.show {
    opacity: 1;
}

.answer .label {
    color: #28a745 !important;
}

.roulette-value {
    color: #dc3545 !important;
}

.action-btn {
    margin-top: auto;
    width: 100%;
}

/* Чекбоксы режима - текст слева, флажок справа */
.mode-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

.mode-checkbox {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    color: #2c3e50;
    cursor: pointer;
    font-weight: 500;
}

.mode-checkbox input {
    margin: 0;
    order: 2;
}

.mode-checkbox span {
    white-space: nowrap;
    order: 1;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        padding-bottom: 25px;
    }
    
    .sectors-text {
        font-size: 1.2em;
    }
    
    .answer {
        font-size: 1.4em;
    }
    
    .mode-controls {
        top: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .mode-checkbox {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding-bottom: 20px;
    }
    
    .sectors-text {
        font-size: 1.1em;
    }
    
    .answer {
        font-size: 1.2em;
    }
    
    .action-btn {
        font-size: 0.9em;
        padding: 12px 20px;
    }
    
    .mode-controls {
        top: 12px;
        right: 12px;
        gap: 6px;
    }
    
    .mode-checkbox {
        font-size: 0.7em;
    }
}
