* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
    overflow: hidden;
    touch-action: none;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: url('half.jpg') center center/cover no-repeat, linear-gradient(180deg, #2d1b1b 0%, #1a0f0f 100%);
    background-attachment: fixed;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    -webkit-user-select: none;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 100vw;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    touch-action: manipulation;
    z-index: 2;
}

.content {
    text-align: center;
    width: 100%;
    max-width: 320px;
    margin-bottom: 40px;
}

.title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.description {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.name-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    touch-action: manipulation;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.name-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.name-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.continue-btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    touch-action: manipulation;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.continue-btn:hover {
    background: linear-gradient(135deg, #c53030 0%, #9c2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
}

.continue-btn:active {
    transform: translateY(0);
}


/* Tablet and larger screens */
@media (min-width: 481px) {
    .container {
        padding: 20px;
        max-width: 400px;
    }
    
    .content {
        max-width: 400px;
        margin-bottom: 60px;
    }
    
    .title {
        font-size: 2.8rem;
        margin-bottom: 1.2rem;
    }
    
    .description {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        max-width: 350px;
    }
    
    .name-input,
    .continue-btn {
        padding: 18px 24px;
        font-size: 1.1rem;
    }
    
    .continue-btn {
        font-size: 1.2rem;
    }
}

/* Desktop screens */
@media (min-width: 769px) {
    .title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
    
    .description {
        font-size: 1.1rem;
        margin-bottom: 3rem;
        max-width: 400px;
    }
    
    .content {
        margin-bottom: 80px;
    }
}

/* Animation for smooth entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    animation: fadeInUp 0.8s ease-out;
}

.form {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
