* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d0d0d;
    color: white;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 100vh;
    max-height: 800px;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.screen.active {
    display: flex;
}

/* Intro Screen */
.logo {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

.intro-text {
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 2s forwards 2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Game Screen */
#game {
    padding: 20px;
}

#tetris {
    border: 2px solid white;
    background-color: #0d0d0d;
}

.game-stats {
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    width: 240px;
}

.controls {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 240px;
}

.controls button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
    color: white;
    padding: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

#rotate {
    grid-column: 2;
}

#down {
    grid-column: 2;
}

/* Completion Screen */
#completion {
    text-align: center;
    padding: 20px;
}

#completion h2 {
    margin-bottom: 1rem;
}

#email-form {
    margin-top: 2rem;
}

#email {
    padding: 10px;
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
    background: transparent;
    border: 1px solid white;
    color: white;
}

#email-form button {
    padding: 10px 20px;
    background: white;
    color: #0d0d0d;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

#email-form button:hover {
    opacity: 0.9;
}

@media (max-width: 600px) {
    .logo {
        font-size: 2rem;
    }
    
    .controls {
        width: 100%;
    }
}