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

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

.game-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.score-board {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.score-board span {
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

#game-area {
    width: 600px;
    height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

#player {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #00ffff, #0066ff);
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    transition: left 0.1s ease, top 0.1s ease;
    z-index: 100;
}

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

.controls button {
    background: linear-gradient(45deg, #00ffff, #0066ff);
    border: none;
    padding: 10px 30px;
    color: white;
    font-size: 1.2em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.controls button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.controls button:disabled {
    background: linear-gradient(45deg, #666, #333);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#start-btn {
    background: linear-gradient(45deg, #00ffff, #0066ff);
    border: none;
    padding: 10px 30px;
    color: white;
    font-size: 1.2em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.instructions {
    margin-top: 20px;
    text-align: left;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.instructions h3 {
    color: #00ffff;
    margin-bottom: 10px;
}

.instructions p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #ccc;
}

.obstacle {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 0, 0.6);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.quantum-particle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ff00ff, #9900ff);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00ffff;
    font-size: 48px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    z-index: 1000;
    display: none;
}

.pause-overlay.active {
    display: flex;
}

.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.share-modal.active {
    display: flex;
}

.share-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    max-width: 400px;
    width: 90%;
}

.share-content h3 {
    color: #00ffff;
    margin-bottom: 20px;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.share-content p {
    color: #fff;
    margin: 10px 0;
    font-size: 18px;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.share-buttons button {
    background: linear-gradient(45deg, #00ffff, #0066ff);
    border: none;
    padding: 12px 20px;
    color: white;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-buttons button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.close-share {
    background: rgba(255, 255, 255, 0.1) !important;
    margin-top: 10px;
}

.close-share:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

#share-btn {
    background: linear-gradient(45deg, #ff00ff, #9900ff) !important;
}

#share-btn:hover {
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5) !important;
}

.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.download-modal.active {
    display: flex;
}

.download-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    max-width: 400px;
    width: 90%;
}

.download-content h3 {
    color: #00ffff;
    margin-bottom: 20px;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.download-content p {
    color: #fff;
    margin: 10px 0;
    font-size: 18px;
}

.download-steps {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.download-steps p {
    margin: 10px 0;
    font-size: 16px;
    color: #ccc;
}

.download-game-btn {
    background: linear-gradient(45deg, #00ff00, #00cc00) !important;
    border: none;
    padding: 15px 30px;
    color: white;
    font-size: 1.2em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.download-game-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.close-download {
    background: rgba(255, 255, 255, 0.1) !important;
    margin-top: 10px;
}

.close-download:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

#download-btn {
    background: linear-gradient(45deg, #00ff00, #00cc00) !important;
}

#download-btn:hover {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5) !important;
} 