/* Valve Life — critical page boot loader + skeleton (head CSS) */

html.ht-booting,
html.ht-booting body {
    overflow: hidden;
}

.ht-boot {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: #ffffff;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

html:not(.ht-booting) .ht-boot {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ht-boot__bar {
    height: 64px;
    border-bottom: 1px solid #e4e8ee;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem;
    box-sizing: border-box;
}

.ht-boot__logo-slot {
    width: 118px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%);
    background-size: 200% 100%;
    animation: ht-shimmer 1.1s ease-in-out infinite;
}

.ht-boot__search-slot {
    flex: 1;
    max-width: 460px;
    height: 40px;
    margin: 0 auto;
    border-radius: 10px;
    background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%);
    background-size: 200% 100%;
    animation: ht-shimmer 1.1s ease-in-out infinite;
}

.ht-boot__pill-slot {
    width: 160px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%);
    background-size: 200% 100%;
    animation: ht-shimmer 1.1s ease-in-out infinite;
}

.ht-boot__body {
    flex: 1;
    overflow: hidden;
    padding: 1.5rem 1.25rem 2rem;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.ht-boot__partners {
    text-align: center;
    margin-bottom: 2rem;
}

.ht-boot__label {
    width: 160px;
    height: 12px;
    margin: 0 auto 1rem;
    border-radius: 4px;
    background: #e8edf3;
}

.ht-boot__logos {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ht-boot__logo-box {
    width: 110px;
    height: 40px;
    border-radius: 6px;
    background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%);
    background-size: 200% 100%;
    animation: ht-shimmer 1.1s ease-in-out infinite;
}

.ht-boot__heading {
    width: 260px;
    height: 28px;
    margin: 0 auto 1.75rem;
    border-radius: 6px;
    background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%);
    background-size: 200% 100%;
    animation: ht-shimmer 1.1s ease-in-out infinite;
}

.ht-boot__grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.ht-boot__card {
    border: 1px solid #e4e8ee;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.ht-boot__card-media {
    aspect-ratio: 1 / 1;
    background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%);
    background-size: 200% 100%;
    animation: ht-shimmer 1.1s ease-in-out infinite;
}

.ht-boot__card-body {
    padding: 1rem;
    border-top: 1px solid #eef1f5;
}

.ht-boot__line {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 0.55rem;
    background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%);
    background-size: 200% 100%;
    animation: ht-shimmer 1.1s ease-in-out infinite;
}

.ht-boot__line--short {
    width: 45%;
    height: 10px;
}

.ht-boot__spinner {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(30, 79, 140, 0.16);
    border-top-color: #1e4f8c;
    border-radius: 50%;
    animation: ht-spin 0.7s linear infinite;
}

@keyframes ht-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes ht-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .ht-boot__search-slot,
    .ht-boot__pill-slot {
        display: none;
    }

    .ht-boot__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
