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

.container {
    height: 75vh;
    display: flex;
    flex-direction: column;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    background: transparent;
    padding: 0;
}

.complits-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
}

.font-size-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

.font-label {
    font-size: 0.9em;
    color: #2c3e50;
    font-weight: 600;
    margin-right: 10px;
}

.font-btn {
    width: 35px;
    height: 35px;
    background: white;
    border: 2px solid #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    cursor: pointer;
}

.complits-text {
    font-size: 1.4em;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    height: 80px;
    min-height: 80px;
    margin: 100px 0 10px 0;
    flex-shrink: 0;
}

.answer {
    font-size: 1.3em;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    flex-grow: 1;
    margin: 10px 0;
}

.answer.show {
    opacity: 1;
}

.answer span.label {
    color: #28a745;
}

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

/* Мобильная адаптация */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        height: 75vh;
    }
    
    .complits-container {
        padding: 25px;
    }
    
    .font-size-controls {
        top: 15px;
        right: 15px;
    }
    
    .font-btn {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
    
    .complits-text {
        font-size: 1.3em;
        height: 70px;
        min-height: 70px;
        line-height: 1.2;
        margin: 60px 0 8px 0;
    }
    
    .answer {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        height: 75vh;
    }
    
    .complits-container {
        padding: 20px;
    }
    
    .font-size-controls {
        top: 12px;
        right: 12px;
    }
    
    .font-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9em;
    }
    
    .complits-text {
        font-size: 1.2em;
        height: 60px;
        min-height: 60px;
        line-height: 1.1;
        margin: 50px 0 5px 0;
    }
    
    .answer {
        font-size: 1.1em;
    }
    
    .action-btn {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}
