@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto:wght@300;400;700&display=swap');

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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    max-width: 600px;
    width: 100%;
    margin: 20px;
    position: relative;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(90deg, #64ffda, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lang-selector {
    display: flex;
    background: rgba(100, 255, 218, 0.1);
    border: 2px solid #64ffda;
    border-radius: 10px;
    overflow: hidden;
}

.lang-option {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #8892b0;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.lang-option:hover {
    background: rgba(100, 255, 218, 0.2);
}

.lang-option.active {
    background: #64ffda;
    color: #0a192f;
}

.music-btn {
    padding: 12px 24px;
    border: 2px solid #64ffda;
    border-radius: 10px;
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.music-btn:hover {
    background: rgba(100, 255, 218, 0.2);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.game-area {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.main-game {
    position: relative;
    border: 4px solid #64ffda;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
}

#game-canvas {
    display: block;
    background: #0a192f;
    border-radius: 6px;
}

.info-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 150px;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.info-box h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #64ffda;
    margin-bottom: 10px;
}

.info-box p {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

#next-canvas {
    display: block;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.controls-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
}

.controls-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #64ffda;
    margin-bottom: 10px;
    text-align: center;
}

.controls-info p {
    font-size: 0.8rem;
    color: #8892b0;
    margin: 5px 0;
}

.start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    z-index: 100;
}

.game-over, .pause-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
}

.start-settings {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.start-screen h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    background: linear-gradient(90deg, #64ffda, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.start-screen p {
    color: #8892b0;
    margin-bottom: 30px;
}

.game-over p, .pause-screen p {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.pause-screen p {
    color: #64ffda;
}

.btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 15px 40px;
    background: linear-gradient(135deg, #64ffda, #00bcd4);
    border: none;
    border-radius: 10px;
    color: #0a192f;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.5);
}

.hidden {
    display: none !important;
}