@font-face {
    font-family: 'Sokochi';
    src: url('font/Sokochi.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sokochi', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.game-container {
    text-align: center;
    position: relative;
}

h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.game-info {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#gameCanvas {
    border: 5px solid white;
    border-radius: 20px;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: none;
}

.game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 3rem;
    border-radius: 20px;
    color: white;
    display: none;
    text-align: center;
    z-index: 10;
}

.game-over-screen h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FFD700;
}

.game-over-screen p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    font-family: 'Sokochi', sans-serif;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.instructions {
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.back-home {
    margin-top: 1rem;
}

.back-home a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-home a:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .game-info {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
        max-width: 100vw;
        border: 3px solid white;
    }
    
    .instructions {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .game-over-screen {
        width: 90%;
        padding: 2rem 1rem;
    }
    
    .game-over-screen h2 {
        font-size: 2rem;
    }
    
    .game-over-screen p {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .back-home {
        margin-top: 0.5rem;
    }
    
    .back-home a {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }
    
    .desktop-instruction {
        display: none !important;
    }
    
    .mobile-instruction {
        display: inline !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .game-info {
        font-size: 1rem;
    }
    
    .instructions {
        font-size: 0.8rem;
    }
}
