* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a1a2b;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0d2b45, #1a4a6b);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 10px #00d4ff;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
}
nav a:hover {
    background: #00d4ff;
    color: #0a1a2b;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(180deg, #0a1a2b, #1a3a5a);
    border-bottom: 2px solid #00d4ff;
}
.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffd700;
}
.hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, #00d4ff, #0088cc);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
}
.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00d4ff;
}
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}
.card {
    background: #1a3a5a;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    text-align: center;
}
.card:hover {
    transform: translateY(-5px);
}
.card h3 {
    margin-bottom: 0.5rem;
    color: #00d4ff;
}
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}
#gameCanvasWrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    background: linear-gradient(180deg, #003366, #006699);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,150,255,0.3);
    border: 2px solid #00d4ff;
}
#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
}
#gameUI {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(0,0,0,0.6);
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
}
#gameUI span {
    background: rgba(255,255,255,0.1);
    padding: 3px 8px;
    border-radius: 5px;
}
#controls {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}
#controls button {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 20px;
    background: #1a4a6b;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}
#controls button:hover {
    background: #00d4ff;
    color: #0a1a2b;
}
#rankList {
    background: #1a3a5a;
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    margin: 2rem auto;
    text-align: left;
}
#rankList p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}
footer {
    background: #0d2b45;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}
footer a {
    color: #00d4ff;
    text-decoration: none;
}
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    nav {
        display: none;
        flex-direction: column;
        background: #0d2b45;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        border-radius: 0 0 10px 10px;
    }
    nav.show {
        display: flex;
    }
    nav a {
        margin: 0.5rem 0;
        padding: 0.5rem;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    #gameCanvasWrapper {
        height: 300px;
    }
}
input, button {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #00d4ff;
    background: #0d2b45;
    color: #fff;
}