* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background: #0d0d13;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.arcade-container {
    width: 100%;
    max-width: 420px;
    padding: 15px;
    background: #14141f;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
    border: 2px solid #1f1f33;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header h2 {
    text-align: center;
    font-size: 22px;
    color: #00f2fe;
    text-shadow: 0 0 10px #00f2fe;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.score-board {
    display: flex;
    justify-content: space-between;
    width: 380px;
    font-weight: bold;
    font-size: 14px;
    color: #a0a0c0;
    margin-bottom: 15px;
    background: #1a1a2e;
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid #2a2a4a;
}

#currentScore { color: #39ff14; text-shadow: 0 0 5px #39ff14; }
#highScore { color: #ff007f; text-shadow: 0 0 5px #ff007f; }

.canvas-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    background: #050508;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #00f2fe;
    box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.5);
}

canvas {
    display: block;
}

/* Screen Overlay Style */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 19, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
}

.overlay-content h1 {
    color: #ff007f;
    text-shadow: 0 0 15px #ff007f;
    font-size: 32px;
    margin-bottom: 10px;
}

.overlay-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ccc;
}

#restartBtn {
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    border: none;
    padding: 12px 30px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 0 15px #00f2fe;
    transition: transform 0.1s;
}

#restartBtn:active {
    transform: scale(0.95);
}

/* D-PAD KONTROL MOBILE */
.dpad {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.dpad-row {
    display: flex;
    align-items: center;
}

.dbtn {
    width: 60px;
    height: 55px;
    background: #252538;
    border: 1px solid #3a3a58;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 0 #181825;
    transition: all 0.05s;
}

.dbtn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #181825;
    background: #00f2fe;
    color: #000;
}

.dpad-center {
    width: 60px;
    height: 55px;
}

.up { margin-bottom: 5px; }
.down { margin-top: 5px; }
.left { margin-right: 5px; }
.right { margin-left: 5px; }

/* Sembunyikan D-pad di layar PC gede kalau dirasa menuh-menuhin */
@media (min-width: 768px) {
    /* Lu bisa hapus/komen bagian ini kalau mau tetep nampilin dpad di PC */
    /*.dpad { display: none; }*/
}

/* TOMBOL VOLUME SPEAKER NEON */
.sound-btn {
    cursor: pointer;
    font-size: 16px;
    padding: 0 5px;
    transition: transform 0.1s, text-shadow 0.2s;
    text-shadow: 0 0 5px #fbbf24;
}
.sound-btn:active {
    transform: scale(0.85);
}