* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background: #09090e;
    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: #12121c;
    border-radius: 20px;
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.2);
    border: 2px solid #2a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    width: 100%;
}

.header h2 {
    text-align: center;
    font-size: 20px;
    color: #ef4444;
    text-shadow: 0 0 10px #ef4444;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.score-board {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    color: #a0a0c0;
    margin-bottom: 10px;
    background: #161626;
    padding: 6px 15px;
    border-radius: 10px;
    border: 1px solid #252538;
}

#currentScore { color: #39ff14; text-shadow: 0 0 5px #39ff14; }
#highScore { color: #00f2fe; text-shadow: 0 0 5px #00f2fe; }

/* EXP BAR STYLE */
.exp-container {
    width: 100%;
    height: 18px;
    background: #1c1c2e;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid #3b3b5c;
}

.exp-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #eab308, #f97316);
    box-shadow: 0 0 10px #f97316;
    transition: width 0.2s ease;
}

.exp-text {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 1px;
    left: 0;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 480px;
    background: #030305;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #ef4444;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ANIMASI MELAYANG TOMBOL ULTIMATE GOKIL */
.ult-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ff0055, #ffcc00);
    border: 2px solid #fff;
    padding: 12px 25px;
    color: white;
    font-weight: 900;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 0 25px #ff0055, inset 0 0 10px #fff;
    z-index: 10;
    animation: floatingUltimate 1.2s infinite alternate ease-in-out;
}

@keyframes floatingUltimate {
    0% { transform: translate(-50%, 0px) scale(1); box-shadow: 0 0 15px #ff0055; }
    100% { transform: translate(-50%, -12px) scale(1.08); box-shadow: 0 0 30px #ffcc00; }
}

.ult-btn:active {
    transform: translate(-50%, -4px) scale(0.95);
}

.hidden {
    display: none !important;
}

/* OVERLAY SCREEN */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.overlay-content {
    text-align: center;
}

.overlay-content h1 {
    color: #ef4444;
    text-shadow: 0 0 15px #ef4444;
    font-size: 36px;
    margin-bottom: 12px;
}

.overlay-content p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #a0a0c0;
}

#restartBtn {
    background: linear-gradient(45deg, #ef4444, #f97316);
    border: none;
    padding: 12px 35px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 0 15px #ef4444;
}

/* KONTROL BUTTON ATAS BAWAH */
.controls {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

.ctrl-btn {
    flex: 1;
    height: 60px;
    background: #1f1f33;
    border: 2px solid #3b3b5c;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 0 #11111a;
    transition: all 0.05s;
}

.ctrl-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #11111a;
    background: #ef4444;
    border-color: #ff6b6b;
}

.sound-btn {
    cursor: pointer;
    font-size: 16px;
    padding: 0 5px;
}