:root {
    --bg-color: #0b0e14;
    --sidebar-bg: #1a1f29;
    --text-color: #e0e6ed;
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-green: #39ff14;
    --neon-yellow: #fff01f;
    --neon-orange: #ff6700;
    --neon-red: #ff3131;
    --neon-purple: #9d00ff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.game-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--sidebar-bg);
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 150px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--neon-blue);
}

.stat-box h2 {
    font-size: 0.8rem;
    color: var(--neon-blue);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-box div {
    font-size: 1.5rem;
    font-weight: bold;
}

.main-board {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    line-height: 0;
}

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

#next {
    background: rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    border-radius: 5px;
}

.controls {
    margin-top: auto;
    font-size: 0.8rem;
    color: #8892b0;
}

.controls h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.controls p {
    margin-bottom: 5px;
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    margin-top: 10px;
}

.secondary-btn:hover {
    background: var(--neon-pink);
    color: black;
    box-shadow: 0 0 15px var(--neon-pink);
}

.sound-controls {
    text-align: center;
    margin-top: 10px;
}

#mute-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

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

#start-screen h1 {
    color: var(--neon-blue);
    font-size: 3rem;
    letter-spacing: 5px;
    text-shadow: 0 0 20px var(--neon-blue);
}

#start-screen p {
    color: var(--neon-pink);
    font-size: 1rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

#start-btn {
    background: none;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
}

#start-btn:hover {
    background: var(--neon-green);
    color: black;
    box-shadow: 0 0 30px var(--neon-green);
}

.hidden {
    display: none !important;
}

#game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    z-index: 10;
}

#game-over.hidden {
    display: none;
}

#game-over h1 {
    color: var(--neon-red);
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--neon-red);
}

#restart-btn {
    background: none;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

#restart-btn:hover {
    background: var(--neon-blue);
    color: black;
    box-shadow: 0 0 20px var(--neon-blue);
}
