/* ============================================
   QuickGames Launcher page + home launcher promo
   ============================================ */

/* ---------- Nav highlight ---------- */

.nav-link--launcher {
    position: relative;
}

.nav-link--launcher::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-light);
    box-shadow: 0 0 8px var(--accent-glow), 0 0 14px var(--accent-glow);
    animation: launcher-nav-pulse 2.4s ease-in-out infinite;
}

@keyframes launcher-nav-pulse {
    0%, 100% { opacity: 0.55; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* ---------- Hero ---------- */

.launcher-hero {
    position: relative;
    /* .site-main already pads for the fixed header */
    padding: 56px 0 72px;
    overflow: hidden;
}

.launcher-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 60% at 78% 30%, rgba(var(--accent-rgb), 0.16), transparent 60%),
        radial-gradient(ellipse 50% 55% at 18% 75%, rgba(var(--primary-rgb), 0.12), transparent 55%);
}

.launcher-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
}

.launcher-hero__title {
    margin: 18px 0 14px;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.25;
    font-weight: 800;
}

.launcher-hero__title-accent {
    background: linear-gradient(120deg, var(--primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.launcher-hero__lead {
    max-width: 540px;
    margin: 0 0 26px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 2;
}

.launcher-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.launcher-dl-btn {
    padding-block: 14px;
}

.launcher-dl-btn__label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.35;
}

.launcher-dl-btn__label small {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.85;
}

.launcher-dl-btn.is-disabled {
    opacity: 0.7;
    cursor: default;
    pointer-events: none;
}

.launcher-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.launcher-hero__points li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.launcher-hero__points svg {
    width: 15px;
    height: 15px;
    color: var(--success);
}

/* ---------- App window mockup ---------- */

.launcher-hero__visual {
    display: flex;
    justify-content: center;
}

.launcher-mock {
    position: relative;
    width: min(430px, 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(15, 20, 35, 0.96), rgba(10, 14, 26, 0.98));
    box-shadow: var(--shadow), 0 0 60px rgba(var(--primary-rgb), 0.12);
    backdrop-filter: blur(10px);
    animation: launcher-mock-float 7s ease-in-out infinite;
}

@keyframes launcher-mock-float {
    0%, 100% { transform: translateY(0) rotate(-0.6deg); }
    50% { transform: translateY(-14px) rotate(0.6deg); }
}

.launcher-mock__glow {
    position: absolute;
    inset: -40px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(var(--accent-rgb), 0.22), transparent 65%);
    filter: blur(20px);
}

.launcher-mock__titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.launcher-mock__dots {
    display: inline-flex;
    gap: 6px;
}

.launcher-mock__dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.launcher-mock__dots i:first-child { background: #ff5f57; }
.launcher-mock__dots i:nth-child(2) { background: #febc2e; }
.launcher-mock__dots i:nth-child(3) { background: #28c840; }

.launcher-mock__appname {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    direction: ltr;
}

.launcher-mock__body {
    display: grid;
    grid-template-columns: 62px 1fr;
    min-height: 300px;
}

.launcher-mock__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-inline-end: 1px solid var(--border);
}

.launcher-mock__game {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.launcher-mock__game img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 8px;
}

.launcher-mock__game.is-active {
    border-color: var(--border-strong);
    background: rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.25);
}

.launcher-mock__main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.launcher-mock__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
}

.launcher-mock__row--head {
    border: 0;
    background: none;
    padding: 0 2px;
}

.launcher-mock__chip {
    display: block;
    width: 90px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.35), rgba(var(--accent-rgb), 0.3));
}

.launcher-mock__chip--sm {
    width: 46px;
    background: rgba(255, 255, 255, 0.1);
}

.launcher-mock__srv {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.launcher-mock__srv-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
    animation: launcher-dot-blink 2.2s ease-in-out infinite;
}

.launcher-mock__row:nth-child(4) .launcher-mock__srv-dot {
    animation-delay: 0.7s;
}

@keyframes launcher-dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.launcher-mock__srv-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.launcher-mock__srv-lines span {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.launcher-mock__srv-lines span:first-child { width: 70%; }
.launcher-mock__srv-lines span:last-child { width: 42%; opacity: 0.6; }

.launcher-mock__ping {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.4);
}

.launcher-mock__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 12px;
    border-radius: var(--radius-btn);
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #04121a;
    background: linear-gradient(120deg, var(--primary), var(--primary-light));
    box-shadow: 0 8px 26px rgba(var(--primary-rgb), 0.35);
}

.launcher-mock__play svg {
    width: 16px;
    height: 16px;
}

/* ---------- Features grid ---------- */

.launcher-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.launcher-feature {
    height: 100%;
}

/* ---------- Steps ---------- */

.launcher-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ---------- Launcher games ---------- */

.launcher-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 20px;
    max-width: 760px;
    margin-inline: auto;
}

.launcher-game-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.launcher-game-card:hover {
    border-color: var(--border-strong);
    background: var(--card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm), 0 0 30px rgba(var(--primary-rgb), 0.12);
}

.launcher-game-card__logo {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.launcher-game-card__logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.launcher-game-card__body h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.launcher-game-card__body p {
    margin: 0 0 10px;
    font-size: 0.85rem;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.launcher-game-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.launcher-game-card__cta svg {
    width: 15px;
    height: 15px;
    transition: var(--transition);
}

.launcher-game-card:hover .launcher-game-card__cta svg {
    transform: translateX(-4px);
}

/* ---------- System requirements ---------- */

.launcher-sysreq {
    max-width: 780px;
    margin-inline: auto;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
}

.launcher-sysreq__head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.launcher-sysreq__head h2 {
    margin: 0 0 4px;
    font-size: 1.4rem;
}

.launcher-sysreq__head p {
    margin: 0;
    font-size: 0.9rem;
}

.launcher-sysreq__list {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.launcher-sysreq__row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
    padding: 13px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.launcher-sysreq__row dt {
    color: var(--muted);
    font-size: 0.9rem;
}

.launcher-sysreq__row dd {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---------- FAQ ---------- */

.launcher-faq {
    max-width: 780px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.launcher-faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
    transition: var(--transition);
}

.launcher-faq__item[open] {
    border-color: var(--border-strong);
    box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.08);
}

.launcher-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    user-select: none;
}

.launcher-faq__item summary::-webkit-details-marker {
    display: none;
}

.launcher-faq__item summary svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--muted);
    transition: var(--transition);
}

.launcher-faq__item[open] summary svg {
    transform: rotate(180deg);
    color: var(--primary);
}

.launcher-faq__item p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 2;
}

/* ---------- Home page launcher promo ---------- */

.home-launcher__panel {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    padding: 44px;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 60% 90% at 85% 20%, rgba(var(--accent-rgb), 0.14), transparent 60%),
        radial-gradient(ellipse 50% 80% at 10% 90%, rgba(var(--primary-rgb), 0.1), transparent 55%),
        var(--card-strong);
    overflow: hidden;
}

.home-launcher__body h2 {
    margin: 14px 0 12px;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.home-launcher__body > p {
    max-width: 520px;
    margin: 0 0 22px;
    color: var(--text-secondary);
    line-height: 2;
}

.home-launcher__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-launcher__visual {
    display: flex;
    justify-content: center;
}

.home-launcher__visual .launcher-mock {
    width: min(380px, 100%);
    animation-duration: 8s;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .launcher-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .launcher-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .launcher-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .launcher-hero__lead {
        margin-inline: auto;
    }

    .launcher-hero__actions,
    .launcher-hero__points {
        justify-content: center;
    }

    .home-launcher__panel {
        grid-template-columns: 1fr;
        padding: 30px 22px;
        text-align: center;
    }

    .home-launcher__body > p {
        margin-inline: auto;
    }

    .home-launcher__actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .launcher-hero {
        padding-top: 32px;
    }

    .launcher-features-grid,
    .launcher-steps,
    .launcher-games-grid {
        grid-template-columns: 1fr;
    }

    .launcher-game-card {
        flex-direction: column;
        text-align: center;
    }

    .launcher-sysreq {
        padding: 22px 16px;
    }

    .launcher-sysreq__head {
        flex-direction: column;
        text-align: center;
    }

    .launcher-sysreq__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .launcher-mock {
        width: min(340px, 100%);
    }
}
