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

body {
    background-color: #000000;
}

.creative-tag {
    color: #8B0000;
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: 20px;
    font-family: 'Playfair Display', serif;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
}

.creative-tag:hover {
    color: #B22222;
    text-shadow: 0 0 20px rgba(178, 34, 34, 1);
}

.game-container {
    width: 800px;
    height: 400px;
    position: relative;
    overflow: hidden;
    margin: 50px auto;
    border: 3px solid #8B0000;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.5), inset 0 0 50px rgba(0, 0, 0, 0.5);
    font-family: 'Playfair Display', serif;
    background: #0a0a0a;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background-image: url('background.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: 0 0;
    z-index: 1;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(30, 0, 0, 0.95) 100%);
    color: #C0C0C0;
    z-index: 1000;
}

.screen h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #B22222;
    text-shadow: 0 0 20px rgba(178, 34, 34, 0.8), 2px 2px 8px rgba(0, 0, 0, 0.9);
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
}

.screen p {
    font-size: 20px;
    margin-bottom: 20px;
    color: #A9A9A9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    font-style: italic;
    max-width: 600px;
    text-align: center;
}

.instructions {
    color: #DC143C !important;
    font-weight: bold;
    font-size: 16px !important;
}

.eye-quote {
    color: #696969 !important;
    font-size: 16px !important;
    margin-top: 10px;
    font-style: italic;
    opacity: 0.8;
}

.mafia-quote {
    font-size: 24px;
    color: #C0C0C0;
}

.screen button {
    padding: 15px 35px;
    font-size: 18px;
    background-color: #1a1a1a;
    color: #B22222;
    border: 2px solid #8B0000;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.3);
}

.screen button:hover {
    background-color: #8B0000;
    color: #FFFFFF;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(139, 0, 0, 0.6);
}

.share-btn {
    margin-top: 10px;
    background-color: #1a1a1a !important;
    border: 2px solid #696969 !important;
    color: #A9A9A9 !important;
}

.share-btn:hover {
    background-color: #696969 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 20px rgba(105, 105, 105, 0.5) !important;
}

.hidden {
    display: none;
}

.ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, #0a0a0a 0%, #000000 100%);
    border-top: 2px solid #1a1a1a;
    z-index: 0;
}

.health-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

#health-bar {
    display: flex;
    gap: 15px;
}

/* Pixel Art Heart */
.heart {
    width: 20px;
    height: 20px;
    background: #ff0000;
    position: relative;
    transform: rotate(45deg);
    transition: all 0.3s;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.9));
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.heart::before,
.heart::after {
    content: '';
    width: 20px;
    height: 20px;
    background: #ff0000;
    position: absolute;
}

.heart::before {
    left: -10px;
    border-radius: 50% 0 0 50%;
}

.heart::after {
    top: -10px;
    border-radius: 50% 50% 0 0;
}

.heart.lost {
    background: #1a1a1a;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
    opacity: 0.3;
}

.heart.lost::before,
.heart.lost::after {
    background: #1a1a1a;
}

.score-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 1000;
    font-family: Arial, sans-serif;
}

#score, #high-score {
    font-size: 24px;
    color: #B22222;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 0 10px rgba(178, 34, 34, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.9);
    font-weight: bold;
}

#player {
    width: 50px;
    height: 70px;
    position: absolute;
    bottom: 60px;
    left: 50px;
    background-image: url('player.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
}

#game-area {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.barrier {
    width: 30px;
    height: 50px;
    position: absolute;
    bottom: 60px;
    background-image: url('barrier.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
}

/* Different barrier types */
.barrier.small {
    width: 25px;
    height: 40px;
    filter: brightness(1.2);
}

.barrier.large {
    width: 40px;
    height: 65px;
    filter: brightness(0.8);
}

/* Balloons (Power-ups) */
.balloon {
    width: 35px;
    height: 35px;
    position: absolute;
    border-radius: 50%;
    z-index: 10;
    animation: floatBalloon 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

@keyframes floatBalloon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.balloon.health {
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #c92a2a);
    border: 2px solid #ff0000;
}

.balloon.health::before {
    content: '❤️';
    font-size: 18px;
}

.balloon.slowdown {
    background: radial-gradient(circle at 30% 30%, #4dabf7, #1971c2);
    border: 2px solid #0066ff;
}

.balloon.slowdown::before {
    content: '⏱️';
    font-size: 18px;
}

.balloon.bonus {
    background: radial-gradient(circle at 30% 30%, #ffd700, #ff8c00);
    border: 2px solid #ffaa00;
}

.balloon.bonus::before {
    content: '⭐';
    font-size: 18px;
}
