body {
    background-color: #0d0914;
    color: #f8f9fa;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

#game-wrapper {
    position: relative;
    border: 1px solid #7b2cbf;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(123, 44, 191, 0.3);
    background: #000;
}

canvas {
    display: block;
    max-width: 100%;
    height: auto;
    touch-action: none;
}

#hud {
    position: absolute;
    top: -35px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    color: #9d4edd;
    font-weight: 500;
    pointer-events: none;
}

#overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 9, 20, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.title {
    font-size: 3rem;
    color: #f8f9fa;
    margin: 0 0 15px 0;
    font-weight: 700;
    letter-spacing: 2px;
}

#overlay p {
    font-size: 1.2rem;
    color: #9d4edd;
    margin-bottom: 25px;
    font-weight: 400;
}

.controls {
    font-size: 0.9rem;
    color: #f8f9fa;
    background: rgba(123, 44, 191, 0.2);
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid #7b2cbf;
}

.back {
    margin-top: 30px;
    color: #9d4edd;
    font-size: 1rem;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #7b2cbf;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: transparent;
}

.back:hover {
    background: rgba(123, 44, 191, 0.2);
    color: #f8f9fa;
}

/* Mobile Controls */
.virtual-controls { display: none; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; z-index: 999; position: relative; }
.v-row { display: flex; gap: 10px; }
.v-btn { width: 50px; height: 50px; background: rgba(157, 78, 221, 0.2); border: 2px solid #9d4edd; color: #fff; font-size: 20px; border-radius: 8px; user-select: none; touch-action: none; display: flex; justify-content: center; align-items: center; cursor: pointer; }
.v-btn:active { background: rgba(157, 78, 221, 0.6); }
.action-btn { background: rgba(224, 170, 255, 0.2); border-color: #e0aaff; border-radius: 50%; }
@media (max-width: 768px) {
    .virtual-controls { display: flex; }
    #game-wrapper, #game-container { flex-direction: column; }
}
