.wp-house-trainer-wrapper, .wp-house-trainer-wrapper * {
    box-sizing: border-box !important; line-height: normal !important;
}
.wp-house-trainer-wrapper {
    width: 100% !important; display: flex !important; justify-content: center !important; margin: 20px 0 !important;
}
.wp-house-trainer-wrapper p { margin: 0 !important; padding: 0 !important; display: inline !important; }
.wp-house-trainer-wrapper br { display: none !important; }

.wp-house-trainer-wrapper .trainer-card {
    width: 100% !important; max-width: 600px !important; background: #ffffff !important; padding: 25px;
    border-radius: 12px !important; box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important; border: 1px solid #e2e8f0 !important; text-align: center !important;
}
.wp-house-trainer-wrapper h2 { font-size: 22px !important; margin: 0 0 15px 0 !important; color: #1e293b !important; }

.wp-house-trainer-wrapper .btn-action {
    background-color: #28a745 !important; color: #ffffff !important; border: none !important; border-radius: 6px !important;
    font-size: 16px !important; font-weight: bold !important; height: 46px !important; padding: 0 35px !important; cursor: pointer !important; transition: background 0.2s !important; margin: 10px 0 !important;
}
.wp-house-trainer-wrapper .btn-action:hover { background-color: #218838 !important; }
.wp-house-trainer-wrapper .btn-blue { background-color: #007bff !important; }
.wp-house-trainer-wrapper .btn-blue:hover { background-color: #0056b3 !important; }

/* Стили главного игрового домика */
.wp-house-trainer-wrapper .house-container {
    width: 100% !important; max-width: 300px !important; margin: 20px auto !important; display: flex !important; flex-direction: column !important; align-items: center !important;
}
.wp-house-trainer-wrapper .house-roof {
    width: 0 !important; height: 0 !important; 
    border-left: 150px solid transparent !important; border-right: 150px solid transparent !important;
    border-bottom: 95px solid #ef4444 !important; position: relative !important;
}
.wp-house-trainer-wrapper .roof-number {
    position: absolute !important; bottom: -90px !important; left: -25px !important; width: 50px !important; text-align: center !important; font-size: 40px !important; font-weight: 900 !important; color: #ffffff !important; font-family: monospace !important;
}
.wp-house-trainer-wrapper .house-body {
    width: 100% !important; background: #f1f5f9 !important; border: 4px solid #475569 !important; border-top: none !important; border-radius: 0 0 12px 12px !important; padding: 15px !important;
}
.wp-house-trainer-wrapper .house-floor {
    display: flex !important; justify-content: center !important; align-items: center !important; gap: 12px !important; margin: 10px 0 !important; border-bottom: 2px dashed #cbd5e1 !important; padding-bottom: 10px !important;
}
.wp-house-trainer-wrapper .house-floor:last-child { border-bottom: none !important; padding-bottom: 0 !important; }

.wp-house-trainer-wrapper .room-left {
    width: 75px !important; height: 60px !important; background: #ffffff !important; border: 3px solid #cbd5e1 !important; border-radius: 8px !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 26px !important; font-weight: bold !important; color: #1e293b !important; font-family: monospace !important;
}
.wp-house-trainer-wrapper .house-input {
    width: 75px !important; height: 60px !important; font-size: 26px !important; font-weight: bold !important; text-align: center !important; border: 3px solid #007bff !important; border-radius: 8px !important; color: #1e293b !important; background: #ffffff !important; font-family: monospace !important; padding: 0 !important;
}

.wp-house-trainer-wrapper .progress-bar-container {
    width: 100% !important; height: 8px !important; background-color: #e2e8f0 !important; border-radius: 4px !important; margin: 0 auto 15px auto !important; overflow: hidden !important; max-width: 300px !important;
}
.wp-house-trainer-wrapper .progress-bar-fill {
    width: 0%; height: 100% !important; background-color: #28a745 !important; transition: width 0.3s ease !important;
}

/* СЕТКА МИНИ-ДОМИКОВ С ФИКСИРОВАННЫМИ ГЕОМЕТРИЧЕСКИМИ ПРОПОРЦИЯМИ */
.wp-house-trainer-wrapper .results-street-grid {
    display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 25px !important; margin: 25px 0 !important; width: 100% !important;
}
.wp-house-trainer-wrapper .mini-house {
    width: 260px !important; /* Намертво зафиксированная идеальная ширина домика итогов */
    display: flex !important; flex-direction: column !important; align-items: center !important; font-family: monospace !important; margin-bottom: 10px !important;
}
.wp-house-trainer-wrapper .mini-roof {
    width: 0 !important; height: 0 !important; 
    border-left: 130px solid transparent !important; border-right: 130px solid transparent !important; /* Симметричные скаты крыши под ширину 260px */
    border-bottom: 80px solid #ef4444 !important; position: relative !important;
}
.wp-house-trainer-wrapper .mini-roof-num {
    position: absolute !important; bottom: -75px !important; left: -25px !important; width: 50px !important; text-align: center !important; font-size: 32px !important; font-weight: 900 !important; color: #ffffff !important;
}
.wp-house-trainer-wrapper .mini-body {
    width: 100% !important; background: #f8fafc !important; border: 4px solid #475569 !important; border-top: none !important; border-radius: 0 0 10px 10px !important; padding: 12px !important;
}
.wp-house-trainer-wrapper .mini-floor {
    display: flex !important; justify-content: space-between !important; gap: 8px !important; margin: 8px 0 !important; font-size: 24px !important; font-weight: bold !important;
}
.wp-house-trainer-wrapper .mini-room {
    width: 46% !important; height: 54px !important; 
    display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 6px !important; border: 1px solid #cbd5e1 !important; background: #ffffff !important; color: #1e293b !important;
}

.wp-house-trainer-wrapper .results-zone { padding: 10px !important; border-radius: 10px !important; margin: 15px 0 !important; text-align: left !important; }
.wp-house-trainer-wrapper .school-mark-box { text-align: center !important; font-size: 20px !important; font-weight: bold !important; color: #1e293b !important; margin-bottom: 20px !important; padding: 15px !important; border-radius: 8px !important; }
.wp-house-trainer-wrapper .mark-num { font-size: 64px !important; font-weight: 900 !important; display: block !important; margin: 5px 0 !important; line-height: 1 !important; }
.wp-house-trainer-wrapper .step-text-title { font-size: 18px !important; font-weight: bold !important; color: #334155 !important; margin-top: 20px !important; margin-bottom: 15px !important; text-align: center !important; }

@media (max-width: 480px) {
    .wp-house-trainer-wrapper .trainer-card { padding: 15px 5px !important; }
    .wp-house-trainer-wrapper .btn-action { width: 100% !important; }
    .wp-house-trainer-wrapper .results-street-grid { gap: 30px !important; flex-direction: column !important; align-items: center !important; }
    .wp-house-trainer-wrapper .mini-house { width: 260px !important; } /* Жёсткий запрет сжатия крыши на смартфонах */
}
