/* =========================================
   START GAME PAGE (NO SCROLL SNAP - STANDARD SCROLL)
   ========================================= */

/* --- 1. GLOBAL LAYOUT --- */
* {
    margin: 0; padding: 0; box-sizing: border-box;
}

html, body {
    height: auto;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden; 
    overflow-y: auto; 
}

.start-page-body {
    background-color: #05070a;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.snap-container {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 5;
    scroll-snap-type: none; 
}

.snap-area {
    position: relative; 
    width: 100%; 
    min-height: 100vh; 
    height: auto;
    display: flex; 
    align-items: center; 
    justify-content: center;
    scroll-snap-align: none; 
    overflow: visible; 
}


/* =========================================
   SECTION 1: HERO & REGISTRATION
   ========================================= */

.start-hero-section {
    position: relative;
    padding-top: 150px; 
    padding-bottom: 100px; 
}

.hero-bg-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('../img/bg/login-art.jpg') no-repeat center top;
    background-size: cover; 
    background-attachment: scroll;
    z-index: 0; 
}

.sparks-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; pointer-events: none;
}

.hero-container {
    display: flex; justify-content: space-between; align-items: center; gap: 50px;
    max-width: 1200px; margin: 0 auto; position: relative; z-index: 10; padding: 0 15px;
}

/* --- TEXT SIDE --- */
.start-text-side { flex: 1; max-width: 600px; }

.servers-title h3 {
    font-family: 'Rajdhani', sans-serif; color: #FFAD33; font-size: 1.2rem;
    letter-spacing: 2px; margin-bottom: 10px;
}

.start-main-title {
    font-size: 4rem; line-height: 0.95; font-weight: 800; margin: 0 0 30px 0;
    text-transform: uppercase; color: #ffffff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.start-main-title span {
    color: #FFAD33; text-shadow: 0 0 30px rgba(255, 173, 51, 0.4);
}

.desc {
    color: #aebfd6; font-size: 1.1rem; line-height: 1.6; margin-bottom: 40px; font-weight: 500;
}

.hero-stats { display: flex; gap: 40px; margin-bottom: 40px; }
.stat-item { display: flex; flex-direction: column; }
.stat-item .val {
    font-family: 'Rajdhani', sans-serif; font-size: 2.5rem; font-weight: 700; color: #FFAD33; line-height: 1;
}
.stat-item .lbl {
    font-size: 0.8rem; color: #5d6f85; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}

/* BUTTON: Hero Connect */
.btn-hero-connect {
    display: inline-block; padding: 15px 45px;
    background: linear-gradient(135deg, #FFAD33 0%, #ff8c00 100%);
    color: black; font-family: 'Rajdhani', sans-serif; font-weight: 700;
    text-transform: uppercase; text-decoration: none; border-radius: 20px;
    transform: skewX(-10deg); transition: 0.3s;
    box-shadow: 0 10px 25px rgba(255, 173, 51, 0.3);
}
.btn-hero-connect span { display: block; transform: skewX(10deg); }
.btn-hero-connect:hover {
    transform: skewX(-10deg) translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 173, 51, 0.6); filter: brightness(1.1);
}


/* --- NEW LOGIN/REGISTER CARD STYLES --- */
.start-reg-side { flex: 0 0 450px; }

.auth-form-card {
    background: rgba(13, 20, 36, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.form-title {
    text-align: center; color: white; font-family: 'Rajdhani', sans-serif;
    font-weight: 700; font-size: 2rem; text-transform: uppercase;
    margin-bottom: 25px; letter-spacing: 1px;
}

/* SERVER SELECTOR */
.server-selector-wrapper { margin-bottom: 25px; }
.server-selector { display: flex; gap: 15px; }
.server-option { flex: 1; cursor: pointer; position: relative; }
.server-option input { display: none; }

/* Base Server Button */
.server-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transform: skewX(-10deg);
    transition: all 0.3s ease;
}
.server-btn > * { transform: skewX(10deg); }

.s-name { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.2rem; line-height: 1; text-transform: uppercase; color: #aebfd6; transition: 0.3s; }
.s-rate { font-size: 0.8rem; color: #5d6f85; font-weight: 600; transition: 0.3s; }

/* Hover */
.server-option:hover .server-btn:not(.active) { border-color: rgba(255, 173, 51, 0.5); background: rgba(255, 173, 51, 0.05); }

/* Active State */
.server-option input:checked + .server-btn {
    background: linear-gradient(180deg, #FFAD33 0%, #E69500 100%);
    border-color: #FFAD33;
    box-shadow: 0 0 20px rgba(255, 173, 51, 0.4);
}
.server-option input:checked + .server-btn .s-name { color: #0b1521; }
.server-option input:checked + .server-btn .s-rate { color: #422d05; }

/* INPUTS */
.input-group { margin-bottom: 20px; }
.input-group label {
    display: block; font-size: 0.75rem; color: #aebfd6; font-weight: 600;
    margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.input-group label i { color: #FFAD33; margin-right: 5px; width: 15px; text-align: center; }

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 15px;
    color: white; font-family: 'Montserrat', sans-serif; font-size: 0.95rem;
    transition: 0.3s; box-sizing: border-box;
}
.input-group input:focus {
    border-color: #FFAD33; outline: none; background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 173, 51, 0.15);
}

/* ACTIONS */
.form-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; font-size: 0.85rem;
}
.check-group { display: flex; align-items: center; gap: 8px; color: #aebfd6; cursor: pointer; }
.check-group input { accent-color: #FFAD33; width: 16px; height: 16px; }
.forgot-link { color: #5d6f85; text-decoration: none; transition: 0.3s; }
.forgot-link:hover { color: #FFAD33; }

/* MAIN ACTION BUTTON */
.btn-full { width: 100%; text-align: center; font-size: 1.1rem; }
.btn-gold-action {
    display: inline-block;
    background: linear-gradient(135deg, #FFAD33 0%, #ff8c00 100%);
    color: #0b0f16; padding: 14px 30px;
    border-radius: 12px; transform: skewX(-10deg);
    border: 1px solid #FFAD33;
    font-family: 'Rajdhani', sans-serif; font-weight: 700;
    text-transform: uppercase; text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 173, 51, 0.2);
    position: relative; z-index: 10; cursor: pointer;
}
.btn-gold-action:hover {
    transform: skewX(-10deg) translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 173, 51, 0.5); color: black;
}

/* SWITCHER BOTTOM */
.auth-switch {
    margin-top: 25px; text-align: center; font-size: 0.9rem; color: #5d6f85;
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px;
}
.btn-text-gold {
    background: none; border: none; color: #FFAD33; font-weight: 700;
    cursor: pointer; text-decoration: none; font-family: 'Montserrat', sans-serif;
    margin-left: 5px; transition: 0.3s; font-size: 0.9rem;
}
.btn-text-gold:hover { color: white; text-shadow: 0 0 10px #FFAD33; }


/* =========================================
   SECTION 2: DOWNLOAD (REFERENCED STYLE - GRID)
   ========================================= */

.start-download-section {
    position: relative;
    padding-top: 120px; 
    
    /* ДОЗВОЛЯЄМО РОЗТЯГУВАННЯ ДЛЯ БУДЬ-ЯКОГО КОНТЕНТУ */
    display: block; 
    width: 100%; 
    min-height: 100vh; /* Мінімум екран */
    height: auto;      
    
    overflow: visible; 
    z-index: 0; 
    
    /* ВІДСТУП ЗНИЗУ ДЛЯ ФУТЕРА */
    padding-bottom: 50vh; 
}

.dl-bg-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; opacity: 1; 
    background: url('../img/bg/login-kalima.jpg') no-repeat center bottom;
    background-size: cover;
    background-attachment: scroll;
}

.download-container {
    z-index: 5; text-align: center; width: 100%; 
    min-height: auto; 
    padding-bottom: 50px; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}

/* Decorations */
.dl-composition {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 2; overflow: visible;
}
.char-img {
    position: absolute; bottom: 0; padding-bottom: 5vh; 
    max-height: 85%; width: auto; filter: drop-shadow(0 0 40px rgba(0,0,0,0.7)); 
    will-change: transform;
}
.char-left { left: -2%; bottom: 5%; animation: idleLeft 7s ease-in-out infinite; }
.char-right { right: -3%; bottom: 7%; scale: 1.1; animation: idleRight 8s ease-in-out infinite; animation-delay: 0.5s; }


/* --- NEW CENTER CONTENT --- */
.dl-center-content-new {
    position: relative; z-index: 10; width: 100%; max-width: 1100px;
}

.dl-main-header { margin-bottom: 50px; }
.dl-main-header span { color: #FFAD33; letter-spacing: 3px; font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 10px; }
.dl-main-header h2 { font-size: 3.5rem; color: white; margin: 0 0 15px 0; font-family: 'Rajdhani', sans-serif; font-weight: 700; text-transform: uppercase; line-height: 0.9; text-shadow: 0 5px 20px rgba(0,0,0,0.5); }
.dl-main-header p { color: #aebfd6; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- SERVERS GRID SYSTEM --- */
.dl-servers-grid {
    display: flex;
    justify-content: center;
    gap: 40px; 
    align-items: stretch;
}

.dl-server-card {
    flex: 1;
    max-width: 400px;
    display: flex; flex-direction: column;
}

.dl-card-header { margin-bottom: 20px; text-align: center; }
.dl-card-header .srv-name {  font-size: 3.5rem; color: white; margin: 0 0 15px 0; font-family: 'Rajdhani', sans-serif; font-weight: 700; text-transform: uppercase; line-height: 0.9; text-shadow: 0 5px 20px rgba(0,0,0,0.5); }
.dl-card-header .srv-rate { font-size: 1.2rem; color: white; font-weight: 700; letter-spacing: 2px; }

/* Transparent Box Style */
.dl-card-box {
    background: rgba(8, 12, 24, 0.85); /* Темний напівпрозорий фон */
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px;
    flex-grow: 1;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: 0.3s;
}
.dl-server-card:hover .dl-card-box {
    border-color: rgba(255, 173, 51, 0.3);
    box-shadow: 0 30px 60px rgba(255, 173, 51, 0.15);
}

/* Buttons Stack */
.dl-buttons-stack {
    display: flex; flex-direction: column; gap: 20px;
    margin-bottom: 30px; flex-grow: 1;
}

/* --- NEW BUTTON STYLE (COMPACT & CLEAN) --- */
.dl-btn-ref {
    display: flex; align-items: center; justify-content: center; /* Центруємо все */
    text-decoration: none;
    height: 60px; 
    border-radius: 10px;
    transform: skewX(-10deg); 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0 20px;
    position: relative; overflow: hidden;
}

/* Unskew content */
.dl-btn-ref > * { transform: skewX(10deg); }

.dl-btn-ref .icon-box {
    font-size: 1.5rem; 
    margin-right: 15px;
    display: flex; align-items: center; 
}

.dl-btn-ref .btn-txt {
    text-align: left; display: flex; flex-direction: column; justify-content: center;
}

.dl-btn-ref strong {
    display: block; font-size: 1.1rem; 
    font-family: 'Rajdhani', sans-serif; 
    text-transform: uppercase; color: white; line-height: 1; 
    font-weight: 700; letter-spacing: 0.5px;
}

/* Прибираємо або ховаємо дрібний текст */
.dl-btn-ref .size {
    display: none; 
}

/* Primary (Orange Gradient) */
.btn-primary {
    background: linear-gradient(135deg, #FFAD33 0%, #ff8c00 100%);
    border: none; color: #0b0f16;
}
.btn-primary strong { color: #0b0f16; }
.btn-primary .icon-box { color: #0b0f16; }
.btn-primary:hover {
    transform: skewX(-10deg) translateY(-3px); 
    box-shadow: 0 10px 25px rgba(255, 173, 51, 0.4);
}

/* Secondary (Glassy) */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}
.btn-secondary .icon-box { color: #FFAD33; }
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 173, 51, 0.5);
    transform: skewX(-10deg) translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.btn-secondary:hover .icon-box { color: white; text-shadow: 0 0 10px #FFAD33; }

/* Drivers Footer */
.dl-drivers-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex; justify-content: center; align-items: center; gap: 15px;
    font-size: 0.85rem; color: #8faab9;
}
.dl-drivers-footer a {
    color: #aebfd6; text-decoration: none; transition: 0.3s;
    display: flex; align-items: center; gap: 8px; font-weight: 600;
}
.dl-drivers-footer a i { color: #FFAD33; font-size: 0.9rem; }
.dl-drivers-footer a:hover { color: white; }
.dl-drivers-footer .sep { color: rgba(255,255,255,0.2); }
/* =========================================
   ADAPTATION: MID-SCREENS & NOTEBOOKS
   ========================================= */

/* 1. NOTEBOOKS (1366 x 768) & Tablets Landscape */
@media screen and (max-width: 1440px) {
    
    .start-download-section {
        min-height: 140vh; 
        padding-top: 100px;
        /* Важливо: достатній відступ знизу для футера */
        padding-bottom: 80vh; 
    }

    .dl-center-content-new { 
        padding: 30px; 
        max-width: 900px; 
    }
    
    .dl-main-header h2 { font-size: 3rem; }
    
    /* Зменшуємо картки, щоб влізли поруч */
    .dl-servers-grid { gap: 20px; }
    .dl-card-box { padding: 25px; }
    
    /* Персонажі трохи менші */
    .char-img { max-height: 70%; opacity: 1.0; } 
}

/* 2. SMALL HEIGHT SCREENS (Laptop 1366x768 specific adjustment) */
@media screen and (max-width: 1440px) and (max-height: 800px) {
    .start-download-section {
        padding-top: 80px;
        padding-bottom: 50vh; /* Ще більше місця для футера на низьких екранах */
    }
    .dl-main-header { margin-bottom: 30px; }
     .char-img { max-height: 70%; opacity: 1.0; } 
    .char-left { left: 1%; bottom: 30%; scale: 1.3; animation: idleLeft 7s ease-in-out infinite; }
.char-right { right: -10%; bottom: 15%; scale: 1.5; animation: idleRight 8s ease-in-out infinite; animation-delay: 0.5s; }

}


/* =========================================
   MOBILE ADAPTATION (PHONES & TABLETS PORTRAIT)
   ========================================= */

/* TABLET (Portrait) & LARGE PHONES */
@media (max-width: 932px) {
    .snap-area { min-height: auto; padding: 120px 0; }
    .hero-container { flex-direction: column; text-align: center; gap: 50px; }
    .start-text-side { flex: auto; width: 100%; max-width: 600px; }
    .start-reg-side { width: 100%; max-width: 450px; }
    .hero-stats { justify-content: center; }

    .start-download-section {
        padding-top: 100px;
        padding-bottom: 80vh; /* Великий запас знизу */
        min-height: auto;
    }

    .dl-composition { display: none; } /* Ховаємо декорації */
    .dl-center-content { background: none; padding-bottom: 40px; }
    
    /* Робимо картки в стовпчик */
    .dl-servers-grid { flex-direction: column; align-items: center; gap: 40px; }
    .dl-server-card { width: 100%; max-width: 450px; }
    
    .dl-main-header h2 { font-size: 2.8rem; }
    .dl-card-box { padding: 30px 20px; }
}

/* SMALL MOBILE (360x740) - Враховано футер */
@media (max-width: 740px) {
    .start-download-section { 
        padding-top: 80px; 
        /* Максимальний запас знизу, щоб контент не заліз під футер */
        padding-bottom: 150vh; 
    }
    
    .dl-main-header h2 { font-size: 2.2rem; }
    
    .dl-btn-ref { height: auto; padding: 15px 20px; }
    
    .dl-drivers-footer { flex-wrap: wrap; gap: 10px; }
    .dl-drivers-footer .sep { display: none; }
}




/* =========================================
   FOOTER
   ========================================= */
.glass-footer {
    position: absolute; bottom: 0; left: 0; width: 100%; z-index: 50; 
    background: linear-gradient(to top, rgba(0, 5, 15, 0) 0%, rgba(0, 10, 30, 0) 100%);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0);
    padding-top: 40;
}
.glass-footer footer, .glass-footer .footer-section, .glass-footer div {
    background: transparent !important; box-shadow: none !important; margin-top: 0 !important;
}


/* =========================================
   STARS
   ========================================= */
.stars-wrapper {
    position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: 1; 
    pointer-events: none; overflow: hidden;
}
.stars {
    width: 1px; height: 1px; position: absolute; background: white;
    box-shadow: 2vw 5vh 2px white, 10vw 8vh 2px white, 15vw 15vh 1px white, 28vw 12vh 2px white, 48vw 25vh 2px white;
    animation: twinkle 8s infinite linear;
}
.shooting-star {
    position: absolute; width: 100px; height: 2px;
    background: linear-gradient(90deg, white, transparent);
    animation: shoot 3s infinite ease-in;
}
.shooting-star:nth-child(1) { top: 20%; left: -100px; animation-delay: 0s; }
.shooting-star:nth-child(2) { top: 35%; left: -100px; animation-delay: 1s; }
.shooting-star:nth-child(3) { top: 50%; left: -100px; animation-delay: 2s; }

@keyframes twinkle { 0%, 100% { opacity: 0.8; } 50% { opacity: 0.4; } }
@keyframes shoot { 0% { transform: translateX(0) translateY(0) rotate(25deg); opacity: 1; } 100% { transform: translateX(120vw) translateY(50vh) rotate(25deg); opacity: 0; } }