body {
    background: linear-gradient(135deg, #232526, #414345);
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #fff;
}

canvas {
    border: 8px solid #00ff99;
    background: #111;
    box-shadow: 0 0 40px #00ff99;
}

h1 {
    color: #00ff99;
    text-align: center;
    margin-bottom: 20px;
}

#score {
    color: #ffffff;
    font-size: 24px;
    position: absolute;
    top: 10px;
    left: 10px;
}

#controls {
    color: #ffffff;
    font-size: 18px;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.button {
    background-color: #00ff99;
    border: none;
    color: #111;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s;
}

.button:hover {
    background-color: #00cc77;
}

.speedup {
    background-color: #ffcc00;
}

.speedup:hover {
    background-color: #e6b800;
}

.game-over {
    color: #ff0000;
    font-size: 48px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

#gameCanvas {
    border: 8px solid #00ff99;
    background: #111;
    box-shadow: 0 0 40px #00ff99;
}

#scoreboard {
    margin-top: 20px;
    background: linear-gradient(90deg, #00ff99 0%, #00c3ff 100%);
    padding: 18px 60px;
    border-radius: 25px;
    box-shadow: 0 0 30px #00ff99, 0 0 60px #00c3ff;
    display: inline-block;
    min-width: 320px;
    position: relative;
    z-index: 10;
}

#scoreboard h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 2px 8px #00c3ff, 0 0 2px #00ff99;
}

#scoreboard #score {
    color: #ffeb3b;
    font-size: 2.7rem;
    font-weight: bold;
    padding-left: 300px;
    padding-top: 7px;
    text-shadow: 0 2px 8px #ffeb3b, 0 0 2px #fff;
    transition: color 0.2s, text-shadow 0.2s;
}

#mainmenu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #232526 0%, #00ff99 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadein 1s;
}

#mainmenu-content {
    background: rgba(0, 0, 0, 0.85);
    padding: 60px 80px;
    border-radius: 30px;
    box-shadow: 0 0 60px #00ff99, 0 0 120px #00c3ff;
    text-align: center;
    color: #fff;
    animation: pop 0.7s;
}

#mainmenu h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #00ff99;
    text-shadow: 0 2px 16px #00c3ff, 0 0 2px #00ff99;
}

#startBtn {
    font-size: 1.5rem;
    padding: 18px 60px;
    border-radius: 18px;
    border: none;
    background: linear-gradient(90deg, #00ff99 0%, #00c3ff 100%);
    color: #222;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 20px #00ff99;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

#startBtn:hover {
    background: linear-gradient(90deg, #00c3ff 0%, #00ff99 100%);
    color: #fff;
    transform: scale(1.08);
}

#fake-scoreboard {
    margin-left: 40px;
    margin-top: 10px;
    width: 320px;
    background: #181f2a;
    border-radius: 18px;
    box-shadow: 0 0 24px #00c3ff44;
    padding: 24px 18px 18px 18px;
    color: #fff;
    font-family: 'Consolas', 'Courier New', monospace;
    min-height: 400px;
    max-height: 900px;
    overflow-y: auto;
    border: 2px solid #00c3ff;
    position: relative;
    z-index: 2;
}

#fake-scoreboard h2 {
    margin: 0 0 18px 0;
    font-size: 1.4rem;
    color: #00ff99;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #00c3ff;
    text-align: center;
}

#score-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#score-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 1.15rem;
    border-bottom: 1px solid #222c;
    transition: background 0.2s;
}

#score-list li.me {
    color: #ffeb3b;
    font-weight: bold;
    background: #222c;
    border-radius: 6px;
    animation: highlightMe 0.7s;
}

@keyframes highlightMe {
    0% {
        background: #00c3ff44;
    }

    100% {
        background: #222c;
    }
}

#score-list li .rank {
    font-size: 1.1rem;
    color: #00c3ff;
    width: 2.2em;
    text-align: right;
    margin-right: 10px;
}

#score-list li .name {
    flex: 1;
    margin-left: 5px;
    margin-right: 5px;
    font-family: inherit;
}

#score-list li .score {
    font-family: inherit;
    font-weight: bold;
    color: #00ff99;
    min-width: 3em;
    text-align: right;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}