:root {
    --primary: #00f2ff;
    --secondary: #7000ff;
    --bg: #0a0a0f;
    --glass: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: white;
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a0f 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    display: block;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#score-board {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 40px;
    border-radius: 20px;
    display: flex;
    gap: 40px;
    align-self: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

#score { color: var(--primary); }
#wickets { color: #ff4d4d; }

#msg-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

#game-msg {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

#sub-msg {
    font-size: 1.2rem;
    opacity: 0.8;
}

#power-bar-container {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 250px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

#power-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.1s ease;
}

#shot-indicator {
    position: absolute;
    bottom: 60px;
    left: 40px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

#start-screen h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#start-btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    font-family: var(--font-main);
    font-weight: 700;
    background: white;
    color: black;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
    pointer-events: all;
}

#start-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--primary);
}

#debug-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-family: monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}
