/* --- 1. GLOBAL STYLE (App Theme) --- */
body {
    margin: 0;
    padding: 0;
    background-color: #1E463A; /* Updated to match Project Primary Color */
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

/* --- 2. TV CONTENT --- */
.tv-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.logo {
    width: 180px;
    height: 180px;
    margin-bottom: 30px;
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3));
}

h1 {
    font-size: 48px;
    margin: 0 0 20px 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    font-size: 24px;
    color: #e0e0e0;
    margin-bottom: 60px;
    max-width: 80%;
    line-height: 1.4;
}

/* --- 3. DOWNLOAD BUTTON (Remote Optimized) --- */
.download-btn {
    background-color: #C0A062; /* Brand Gold */
    color: #1E463A; /* Dark Text */
    font-size: 32px;
    font-weight: bold;
    padding: 20px 60px;
    border: 5px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    outline: none;
    display: inline-block;
}

/* Focus state for TV Remote D-Pad Navigation */
.download-btn:focus, .download-btn:hover {
    transform: scale(1.05);
    background-color: white;
    border-color: #C0A062;
    /* Glow effect removed as requested */
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.version-info {
    margin-top: 40px;
    font-size: 18px;
    opacity: 0.6;
}

/* --- 4. MOBILE OVERLAY (Warning) --- */
#mobile-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.warning-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.warning-text {
    font-size: 24px;
    line-height: 1.5;
    color: white;
}

/* --- 5. MEDIA QUERY (Detect Mobile/Portrait) --- */
@media (max-width: 900px) and (orientation: portrait) {
    .tv-container {
        display: none;
    }
    #mobile-warning {
        display: flex;
    }
}

@media (max-height: 500px) {
     .logo { width: 120px; height: 120px; margin-bottom: 15px; }
     h1 { font-size: 32px; margin-bottom: 10px; }
     p { font-size: 18px; margin-bottom: 30px; }
     .download-btn { font-size: 24px; padding: 15px 40px; }
}