/* CybersZone Universal Aesthetic Game Launcher & Legal Shield */
#cz-launcher-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.88) 0%, rgba(5, 8, 18, 0.96) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 1;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #f1f5f9;
    padding: 16px;
    box-sizing: border-box;
    user-select: none;
}

#cz-launcher-backdrop.cz-launcher-dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cz-launcher-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px var(--cz-accent-glow, rgba(0, 240, 255, 0.25));
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    padding: 28px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.cz-launcher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cz-accent, #00f0ff), transparent);
}

.cz-launcher-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cz-launcher-cover {
    width: 88px;
    height: 118px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    background: #0f172a;
}

.cz-launcher-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cz-launcher-badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--cz-accent, #00f0ff);
    border: 1px solid var(--cz-accent-border, rgba(0, 240, 255, 0.3));
    text-transform: uppercase;
}

.cz-launcher-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cz-launcher-sub {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* Legal Disclaimer Box (The Vice City Standard) */
.cz-launcher-disclaimer {
    background: rgba(2, 6, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cz-disclaimer-tag {
    font-size: 11px;
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cz-disclaimer-text {
    font-size: 11.5px;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0;
}

.cz-disclaimer-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.4;
    color: #e2e8f0;
    margin-top: 4px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

.cz-disclaimer-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.06);
}

.cz-disclaimer-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--cz-accent, #00f0ff);
    flex-shrink: 0;
    cursor: pointer;
}

/* Actions */
.cz-launcher-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cz-btn-play-launch {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #000000;
    background: var(--cz-accent-gradient, linear-gradient(135deg, #00f0ff 0%, #0077ff 100%));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--cz-accent-glow, rgba(0, 240, 255, 0.4));
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cz-btn-play-launch:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px var(--cz-accent-glow, rgba(0, 240, 255, 0.6));
    filter: brightness(1.1);
}

.cz-btn-play-launch:active {
    transform: translateY(1px);
}

.cz-btn-play-launch:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    filter: grayscale(1);
}

.cz-launcher-back-btn {
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cz-launcher-back-btn:hover {
    color: #cbd5e1;
}

/* THEMES BASED ON GENRE/GAME */
/* Spartan / God of War / Dark Action */
.cz-theme-gow {
    --cz-accent: #ff3333;
    --cz-accent-glow: rgba(255, 51, 51, 0.4);
    --cz-accent-gradient: linear-gradient(135deg, #ff3333 0%, #990000 100%);
    --cz-accent-border: rgba(255, 51, 51, 0.4);
}
.cz-theme-gow .cz-btn-play-launch { color: #ffffff; }

/* GTA Vice City / 80s Retro */
.cz-theme-gtavc {
    --cz-accent: #ff4193;
    --cz-accent-glow: rgba(255, 65, 147, 0.4);
    --cz-accent-gradient: linear-gradient(135deg, #ff4193 0%, #7c3aed 100%);
    --cz-accent-border: rgba(255, 65, 147, 0.4);
}
.cz-theme-gtavc .cz-btn-play-launch { color: #ffffff; }

/* CS / Tactical Military */
.cz-theme-military {
    --cz-accent: #4ade80;
    --cz-accent-glow: rgba(74, 222, 128, 0.4);
    --cz-accent-gradient: linear-gradient(135deg, #4ade80 0%, #166534 100%);
    --cz-accent-border: rgba(74, 222, 128, 0.4);
}

/* Gothic / Diablo 2 / Warcraft */
.cz-theme-gothic {
    --cz-accent: #f59e0b;
    --cz-accent-glow: rgba(245, 158, 11, 0.4);
    --cz-accent-gradient: linear-gradient(135deg, #f59e0b 0%, #78350f 100%);
    --cz-accent-border: rgba(245, 158, 11, 0.4);
}

/* Speed / NFS / Racing */
.cz-theme-racing {
    --cz-accent: #06b6d4;
    --cz-accent-glow: rgba(6, 182, 212, 0.4);
    --cz-accent-gradient: linear-gradient(135deg, #06b6d4 0%, #0369a1 100%);
    --cz-accent-border: rgba(6, 182, 212, 0.4);
}

/* Resident Evil / Horror */
.cz-theme-horror {
    --cz-accent: #ef4444;
    --cz-accent-glow: rgba(239, 68, 68, 0.4);
    --cz-accent-gradient: linear-gradient(135deg, #ef4444 0%, #450a0a 100%);
    --cz-accent-border: rgba(239, 68, 68, 0.4);
}
.cz-theme-horror .cz-btn-play-launch { color: #ffffff; }
