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

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #2d4a5a);
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
    animation: lightning 10s infinite;
    padding: 20px;
}

@keyframes lightning {
    0%, 90%, 100% { background: linear-gradient(135deg, #1a1a2e, #16213e, #2d4a5a); }
    91%, 92% { background: linear-gradient(135deg, #4a4a6a, #5a5a7a, #6a6a8a); }
    93%, 94% { background: linear-gradient(135deg, #1a1a2e, #16213e, #2d4a5a); }
    95%, 96% { background: linear-gradient(135deg, #4a4a6a, #5a5a7a, #6a6a8a); }
}

#gameContainer {
    position: relative;
    border: 3px solid #8B4513;
    border-radius: 10px;
    background: #1a4a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

#gameUI {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
}

#gameCanvas {
    display: block;
    background: linear-gradient(to bottom, 
        #4a5568 0%, 
        #4a5568 15%, 
        #2d3748 15%, 
        #2d3748 85%, 
        #1a202c 85%, 
        #1a202c 100%);
}

#startScreen, #gameOverScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #4CAF50;
    z-index: 20;
}

#startScreen h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#startScreen p, #gameOverScreen p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

button {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

button:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

button:active {
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

#gameOverScreen h2 {
    color: #ff4444;
    font-size: 2.5em;
    margin-bottom: 20px;
}

#promptBubble {
    position: relative;
    max-width: 600px;
    margin: 30px auto 0;
    padding: 0;
}

.bubble-content {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 25px;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.9);
    position: relative;
    backdrop-filter: blur(10px);
}

.bubble-content p {
    margin: 8px 0;
    line-height: 1.4;
    font-size: 14px;
}

.bubble-content strong {
    color: #2d4a5a;
    font-weight: bold;
}

.thought-circles {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
}

.thought-circle {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.thought-circle:nth-child(1) {
    width: 20px;
    height: 20px;
    bottom: 0;
    left: 0;
}

.thought-circle:nth-child(2) {
    width: 12px;
    height: 12px;
    bottom: -8px;
    left: 15px;
}

.thought-circle:nth-child(3) {
    width: 8px;
    height: 8px;
    bottom: -12px;
    left: 25px;
}

.bubble-tail {
    display: none;
}