.launcher-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

@keyframes launcherCardReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes launcherPulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(200, 155, 78, 0.18);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(200, 155, 78, 0);
        transform: translateY(-1px);
    }
}

@keyframes launcherShimmer {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(120%);
    }
}

.launcher-lockscreen {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 10, 14, 0.72);
    backdrop-filter: blur(18px);
}

.launcher-lockcard {
    width: min(720px, 100%);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(170, 180, 190, 0.16);
    background:
        linear-gradient(180deg, rgba(23, 41, 54, 0.98), rgba(11, 20, 26, 0.96));
    box-shadow: var(--shadow-lg);
}

.launcher-lockcard h2 {
    margin: 16px 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.04em;
}

.launcher-lockcopy {
    margin: 0 0 22px;
    color: var(--text-muted);
}

.launcher-authgrid {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.launcher-field {
    display: grid;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.launcher-sessionhint {
    min-height: 24px;
    margin: 16px 0 0;
    color: var(--accent-strong);
}

.launcher-shell {
    width: min(1280px, calc(100vw - 32px));
    margin: 0 auto;
    display: grid;
    gap: 24px;
    padding: 40px 0;
    transition: filter 0.22s ease, opacity 0.22s ease;
    animation: launcherCardReveal 0.55s ease-out;
}

.launcher-shell.launcher-shell-locked {
    filter: blur(10px);
    opacity: 0.42;
}

.launcher-herohead {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.launcher-brandlockup {
    display: grid;
    gap: 12px;
}

.launcher-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.launcher-logo-mark {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(200, 155, 78, 0.24), rgba(70, 106, 132, 0.28));
    border: 1px solid rgba(200, 155, 78, 0.28);
    color: var(--text);
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    box-shadow: 0 12px 24px rgba(8, 16, 21, 0.24);
    animation: launcherPulseGlow 2.8s ease-in-out infinite;
}

.launcher-logo-word {
    color: var(--accent-strong);
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.launcher-logo-word::after {
    content: "";
    position: absolute;
    inset: -10% auto -10% -40%;
    width: 36%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-18deg);
    animation: launcherShimmer 3.2s ease-in-out infinite;
    pointer-events: none;
}

.launcher-sessionbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.launcher-userpill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(170, 180, 190, 0.16);
    color: var(--text-muted);
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.launcher-logout {
    width: auto;
}

.launcher-shell.launcher-role-waiter .hero-card {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.launcher-shell.launcher-role-waiter .module-grid {
    display: none;
}

.launcher-shell.launcher-role-waiter .hero-actions {
    margin-top: 28px;
}

.launcher-shell.launcher-role-waiter .hero-link {
    width: auto;
    min-width: 220px;
    justify-content: center;
    font-size: 1rem;
    background: linear-gradient(135deg, rgba(200, 155, 78, 0.2), rgba(255, 255, 255, 0.05));
    border-color: rgba(200, 155, 78, 0.24);
    box-shadow: 0 16px 32px rgba(3, 10, 16, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.launcher-shell.launcher-role-waiter #launcherDescription {
    white-space: pre-line;
    color: #c4ccd5;
    max-width: 28ch;
}

.launcher-shell.launcher-role-waiter .hero-link:hover {
    transform: translateY(-2px);
    border-color: rgba(224, 182, 109, 0.45);
    background: linear-gradient(135deg, rgba(200, 155, 78, 0.28), rgba(255, 255, 255, 0.08));
    box-shadow: 0 18px 38px rgba(3, 10, 16, 0.28);
}

.launcher-shell.launcher-role-waiter .hero-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    top: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 155, 78, 0.18), rgba(200, 155, 78, 0));
    pointer-events: none;
}

.launcher-shell.launcher-role-waiter .hero-card::before {
    opacity: 0.9;
}

.launcher-shell.launcher-role-waiter .launcher-herohead,
.launcher-shell.launcher-role-waiter #launcherDescription,
.launcher-shell.launcher-role-waiter .hero-actions {
    position: relative;
    z-index: 1;
}

.hero-card {
    padding: 36px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-actions .hidden {
    display: none !important;
}

.hero-link.muted {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.module-card {
    padding: 24px;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    background:
        linear-gradient(180deg, rgba(28, 46, 57, 0.98), rgba(13, 23, 29, 0.96));
}

.module-tag {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.accent-kds {
    border-color: rgba(70, 106, 132, 0.34);
}

.accent-admin {
    border-color: rgba(110, 139, 116, 0.34);
}

.accent-sim {
    border-color: rgba(177, 107, 99, 0.34);
}

.accent-docs {
    border-color: rgba(200, 155, 78, 0.34);
}

.hidden {
    display: none !important;
}

@media (max-width: 780px) {
    .launcher-body {
        align-items: flex-start;
    }

    .launcher-shell {
        width: min(100vw - 20px, 1280px);
        padding: 20px 0 28px;
    }

    .hero-card {
        padding: 28px 20px;
        border-radius: 28px;
    }

    .launcher-authgrid {
        grid-template-columns: 1fr;
    }

    .launcher-herohead {
        flex-direction: column;
        gap: 18px;
    }

    .launcher-brandlockup {
        gap: 14px;
    }

    .launcher-logo {
        flex-direction: row;
        align-items: center;
    }

    .launcher-sessionbar {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
    }

    .launcher-userpill,
    .launcher-logout,
    .hero-link {
        width: 100%;
    }

    .launcher-shell.launcher-role-waiter .hero-link {
        min-width: 0;
    }

    .launcher-shell.launcher-role-waiter #launcherDescription {
        max-width: none;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero-card h1 {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .launcher-logo-word {
        font-size: 0.92rem;
        letter-spacing: 0.14em;
    }

    .launcher-lockcard {
        padding: 24px 20px;
    }
}
