/**
 * Homepage + gaming-picker "Practice / Tests" title — TT Ramillas serif.
 */

@import url('tt-ramillas-font.css');

.home-practice-tests-block .hptu-title {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 12px;
}

.home-practice-tests-block .hptu-title h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    font-family: 'TT Ramillas', 'Libre Baskerville', Georgia, 'Times New Roman', Times, serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    color: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.home-practice-tests-block .hptu-title h1 br {
    display: none;
}

.home-practice-tests-block .hptu-title h1 .hptu-title-practice-word,
.home-practice-tests-block .hptu-title h1 .hptu-title-tests-word {
    font-family: 'TT Ramillas', 'Libre Baskerville', Georgia, 'Times New Roman', Times, serif;
    font-weight: 700;
    font-style: normal;
    font-size: clamp(32px, 5.5vw, 46px);
    line-height: 1.02;
    letter-spacing: 0.01em;
}

.home-practice-tests-block .hptu-title h1 .hptu-title-practice-word {
    color: #000000;
}

.home-practice-tests-block .hptu-title h1 .hptu-title-tests-word {
    color: #00c853;
    margin-top: -0.06em;
}

@media (max-width: 768px) {
    .home-practice-tests-block .hptu-title h1 .hptu-title-practice-word,
    .home-practice-tests-block .hptu-title h1 .hptu-title-tests-word {
        font-size: clamp(28px, 8vw, 36px);
    }
}

/* Sub-box pill — gaming, level-up, exam mode */
.home-practice-tests-block .hptu-sub-box,
.home-level-up-block .hluu-sub-box,
.home-exam-mode-block .hem-sub-box {
    display: block;
    width: 100%;
    max-width: min(920px, 100%);
    margin: 0 auto clamp(40px, 5vw, 56px);
    background: #8f8a7d;
    color: #000000;
    text-align: center;
    padding: 12px clamp(14px, 4vw, 24px);
    border-radius: 14px;
    font-size: clamp(1rem, 2.5vw, 1.75rem);
    font-weight: 400;
    font-family: 'Comic Neue', 'Comic Sans MS', 'Chalkboard SE', sans-serif;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1100px) {
    .home-practice-tests-block .hptu-sub-box,
    .home-level-up-block .hluu-sub-box,
    .home-exam-mode-block .hem-sub-box {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .home-practice-tests-block .hptu-sub-box,
    .home-level-up-block .hluu-sub-box,
    .home-exam-mode-block .hem-sub-box {
        padding: 10px 12px;
        font-size: clamp(0.9rem, 3.6vw, 1.15rem);
        line-height: 1.5;
    }
}

/* Gaming Mode header stack — title bar + instruction pill (mobile-friendly) */
.home-practice-tests-block .hptu-gaming-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(10px, 2.5vw, 14px);
    width: 100%;
    max-width: min(920px, 100%);
    margin: clamp(18px, 4vw, 28px) auto clamp(28px, 5vw, 44px);
    padding: 0 clamp(4px, 2vw, 8px);
    box-sizing: border-box;
}

.home-practice-tests-block .hptu-gaming-bar-wrap {
    display: block;
    width: 100%;
    margin: 0;
    position: static;
    left: auto;
    transform: none;
    box-sizing: border-box;
}

/* Gaming bar — dark pill: cyan "Gaming" + red suffix */
.home-practice-tests-block .hptu-gaming-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35em 0.5em;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    background: linear-gradient(to right, #000000, #555555);
    border-radius: 14px;
    padding: clamp(12px, 2.5vw, 16px) clamp(14px, 4vw, 28px);
    text-align: center;
    font-family: 'Montserrat', 'Poppins', system-ui, sans-serif;
    font-size: clamp(1rem, 2.8vw, 2rem);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    line-height: 1.3;
}

.home-practice-tests-block .hptu-gaming-bar .hptu-gaming-icon {
    flex-shrink: 0;
    font-size: 1.05em;
    line-height: 1;
}

.home-practice-tests-block .hptu-gaming-bar .hptu-gaming-text {
    display: inline;
    text-align: center;
    line-height: 1.3;
}

.home-practice-tests-block .hptu-gaming-bar .hptu-gaming-blue {
    color: #00aeef;
}

.home-practice-tests-block .hptu-gaming-bar .hptu-gaming-red,
.home-practice-tests-block .hptu-gaming-bar .hptu-gaming-red-suffix {
    color: #ed1c24;
}

.home-practice-tests-block .hptu-gaming-bar .hptu-gaming-white {
    color: #ed1c24;
}

.home-practice-tests-block .hptu-gaming-head .hptu-sub-box {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

@media (max-width: 768px) {
    .home-practice-tests-block .hptu-gaming-bar {
        font-size: clamp(0.95rem, 3.2vw, 1.35rem);
        padding: 12px 16px;
        border-radius: 12px;
    }
}

@media (max-width: 575.98px) {
    .home-practice-tests-block .hptu-gaming-head {
        max-width: 100%;
        padding: 0;
        gap: 10px;
        margin-bottom: clamp(22px, 5vw, 32px);
    }

    .home-practice-tests-block .hptu-gaming-bar {
        padding: 11px 12px;
        font-size: clamp(0.88rem, 3.8vw, 1.15rem);
    }
}
