body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    overflow: auto;
    padding: 20px;
}

.top-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.gameContainer {
    position: relative;
    width: 800px;
    height: 700px; /* Fixed height instead of min-height */
    background: #DEB887; /* Match the main game background */
    border: 2px solid #8B4513;
    border-radius: 10px;
    overflow: visible; /* Allow content to overflow */
    margin: 0;
    padding: 20px 0 0 0;
    flex-shrink: 0;
}

.sidePanel {
    width: 220px;
    background: #000000;
    position: relative;
    border-radius: 10px;
    padding: 15px;
    flex-shrink: 0;
    height: 700px; /* Match game container height */
    color: white;
    display: flex;
    flex-direction: column;
    margin-top: 16px; /* Push sidebar down to align with game container */
    margin-left: -15px; /* Move sidebar closer to game */
}

.sidePanel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.gameCanvas {
    display: block;
    background: #87CEEB;
    margin-top: 50px; /* Space for stats above */
}

.ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10; /* Ensure stats are above game elements */
}

.ui .score, .ui .lives, .ui .level, .ui .combo, .ui .timer {
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.powerUpStatus {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white; /* White text */
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    pointer-events: none;
    min-width: 120px;
    text-align: center;
}

.startMenu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.startMenu h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.startMenu p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    line-height: 1.4;
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}



.startMenu .button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    position: relative;
    z-index: 10;
    margin-left: auto;
    margin-right: auto;
}

.startMenu .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
}

.startMenu .promptyImage {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 160px;
    height: 160px;
    z-index: 5;
    opacity: 0.9;
    object-fit: contain;
}

.levelComplete {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.levelComplete h1 {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.levelComplete p {
    margin: 10px 0;
    font-size: 1.2em;
}

.gameOver, .gameStart {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8); /* Dimmed backdrop */
    display: none;
    z-index: 1000;
    justify-content: center;
    align-items: flex-start; /* Start from top */
    padding: 0px 20px 20px 20px; /* NO top padding - force modal to very top */
    box-sizing: border-box;
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 600px;
    max-width: 90vw;
    max-height: 70vh; /* Reduced from 80vh to 70vh */
    overflow-y: auto;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 0 auto; /* Center horizontally only, start from top */
    position: relative; /* For positioning the close button */
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    color: #333;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.close-button:hover {
    background: #f44336;
    color: white;
    transform: scale(1.1);
}

.button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px;
}

.button:hover {
    background: #357abd;
}

.gameControls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
}

.gameControls button {
    background: #5F9EA0;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.gameControls button:hover {
    background: #4A7B7D;
}

.scoringKey {
    display: none; /* Hide scoring overlay to prevent leaderboard conflict */
}

.scoringKey h3 {
    margin: 0 0 10px 0;
    color: #5F9EA0;
    font-size: 16px;
}

.scoringKey p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

/* Name Input Styles */
.nameInputSection {
    margin: 20px 0;
    text-align: center;
}

.nameInputSection h3 {
    margin-bottom: 10px;
    color: #333;
}

.nameInput {
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-right: 10px;
    width: 200px;
    text-align: center;
}

.nameInput:focus {
    outline: none;
    border-color: #4f46e5;
}

/* Leaderboard Styles */
.leaderboardSection {
    margin: 20px 0;
    text-align: center;
}

.leaderboardSection h3 {
    margin-bottom: 15px;
    color: #333;
}

.leaderboard {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 10px;
}

.leaderboardItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    font-size: 14px;
}

.leaderboardItem.rank1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    font-weight: bold;
}

.leaderboardItem.rank2 {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    font-weight: bold;
}

.leaderboardItem.rank3 {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    font-weight: bold;
}

.leaderboardItem .score {
    font-weight: bold;
    color: #4f46e5;
}

.rank {
    font-weight: bold;
    min-width: 30px;
}

.playerName {
    flex: 1;
    text-align: left;
    margin: 0 10px;
}

.leaderboardItem .level, .fullLeaderboardItem .level {
    color: #666;
    font-size: 12px;
}

/* Full Leaderboard Modal */
.fullLeaderboardModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modalContent {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
}

.modalContent h2 {
    margin-bottom: 20px;
    color: #333;
}

.fullLeaderboard {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.fullLeaderboardItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4f46e5;
}

.fullLeaderboardItem.rank1 {
    border-left-color: #ffd700;
    background: linear-gradient(135deg, #fff8dc, #fffacd);
}

.fullLeaderboardItem.rank2 {
    border-left-color: #c0c0c0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.fullLeaderboardItem.rank3 {
    border-left-color: #cd7f32;
    background: linear-gradient(135deg, #fff8dc, #f5deb3);
}

.fullLeaderboardItem .score {
    font-weight: bold;
    color: #4f46e5;
}

/* Button Styles */
.button.secondary {
    background: #6c757d;
    color: white;
    margin: 5px;
}

.button.secondary:hover {
    background: #5a6268;
}

/* External controls outside game area */
.externalControls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.externalControls button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.externalControls button:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.externalControls button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
} 

/* Boss Showcase Styles */
.bossShowcase {
    text-align: center;
    margin: 30px 0 20px 0; /* Reduced margin to bring Start button up */
}

.bossShowcase h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.bossCircle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px; /* Increased from 40px to 60px */
    margin-bottom: 15px; /* Reduced to bring Start button up */
    padding: 15px; /* Reduced padding */
    flex-wrap: wrap;
}

.bossItem {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex: 0 0 auto;
    padding: 15px; /* Added padding around each villain */
}

.bossItem:hover {
    transform: scale(1.05);
}

.bossImage {
    width: 140px; /* Increased from 120px to 140px */
    height: 140px; /* Increased from 120px to 140px */
    border-radius: 50%;
    border: 4px solid #ffd700; /* Increased border from 3px to 4px */
    margin: 0 auto 15px; /* Increased bottom margin from 10px to 15px */
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); /* Enhanced shadow for bigger circles */
    aspect-ratio: 1 / 1;
}

.bossName {
    color: white;
    font-size: 1rem; /* Increased from 0.9rem to 1rem */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-top: 5px; /* Added top margin for better spacing */
}

.karenBoss {
    background-image: url('https://ltneloufqjktdplodvao.supabase.co/storage/v1/object/public/logos/prompt-assets/evil-karen.png');
    background-color: #fff3cd;
    background-position: center 60%;
    background-size: 85% 85%; /* Smaller characters within circle */
    background-repeat: no-repeat;
}

.evilGoogleBoss {
    background-image: url('https://ltneloufqjktdplodvao.supabase.co/storage/v1/object/public/logos/prompt-assets/evil-google-exec.png');
    background-color: #fff3cd;
    background-position: center 60%;
    background-size: 85% 85%; /* Smaller characters within circle */
    background-repeat: no-repeat;
}

.linkedinBoss {
    background-image: url('https://ltneloufqjktdplodvao.supabase.co/storage/v1/object/public/logos/prompt-assets/linkedin-spammer.png');
    background-color: #fff3cd;
    background-position: center 60%;
    background-size: 85% 85%; /* Smaller characters within circle */
    background-repeat: no-repeat;
}

/* Compact Instructions Styles */
.compactInstructions {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.titleSection {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
    padding-top: 10px;
    margin-top: 0;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.titleContent {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    position: relative;
}

.titleContent h1 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    top: 0;
}

.titleContent p {
    margin: 0px 0 15px 0;
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    max-width: 500px;
    position: relative;
    top: 0;
}

.promptyCharacter {
    position: absolute;
    left: 20px;
    top: 45px;
    width: 144px;
    height: 144px;
    background-image: url('https://ltneloufqjktdplodvao.supabase.co/storage/v1/object/public/logos/prompt-assets/prompty-slingshot-for-reviews.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    z-index: 2;
}

#startButton {
    margin-top: 15px;
    padding: 15px 30px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

#startButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

.instructionGrid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.instructionItem {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: white;
    text-align: left;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.instructionItem:hover {
    background: rgba(255, 255, 255, 0.2);
}

.instructionIcon {
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
} 

/* Boss Popup Styles */
.bossPopup {
    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;
}

.bossPopupContent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    max-height: 90vh; /* Increased from 80vh to 90vh */
    overflow-y: auto;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.bossPopupClose {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bossPopupClose:hover {
    background: #ff5252;
    transform: scale(1.1);
}

.bossPopupImage {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    margin: 0 auto 15px; /* Reduced from 20px to 15px */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid #ffd700;
    background-color: #fff3cd;
}

.bossPopupTitle {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 12px; /* Reduced from 15px to 12px */
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bossPopupDescription {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px; /* Reduced from 20px to 15px */
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.bossPopupAbilities {
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.bossPopupAbilities h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.bossPopupAbilities ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bossPopupAbilities li {
    margin-bottom: 6px; /* Reduced from 8px to 6px */
    padding-left: 20px;
    position: relative;
}

.bossPopupAbilities li::before {
    content: '💥';
    position: absolute;
    left: 0;
    top: 0;
} 

.goldStars {
    text-align: center;
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    position: relative;
    top: -10px;
} 

.gameOverMessage {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid #ffd700;
}

.gameOverMessage p {
    margin: 0;
    font-size: 1.2rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

        /* Game Controls Styles */
        .game-controls {
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: none;
        }

        .control-item {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            padding: 8px;
            background: transparent;
            border-radius: 6px;
        }

        .control-icon {
            font-size: 20px;
            margin-right: 12px;
            min-width: 30px;
            text-align: center;
            color: white;
        }

        .control-info {
            flex: 1;
        }

        .control-info strong {
            color: white;
            font-size: 14px;
        }

/* Mobile Notice Styles */
.mobile-notice {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ff6b6b;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mobile-notice-content h3 {
    color: #ff6b6b;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    text-align: center;
}

.mobile-notice-content p {
    color: white;
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
} 