:root {
    --player-color: #FF00FF; /* Bright Magenta */
    --glitch-bg-1: #00FFFF;  /* Cyan */
    --glitch-bg-2: #FFFF00;  /* Yellow */
    --text-color: #FF5733;   /* Bright Orange */
}

/* Garish, Clashing Background Pattern */
body {
    font-family: monospace;
    margin: 0;
    padding: 0;
    background: repeating-linear-gradient(
        45deg,
        var(--glitch-bg-1),
        var(--glitch-bg-1) 10px,
        var(--glitch-bg-2) 10px,
        var(--glitch-bg-2) 20px
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
}

header h1 {
    color: var(--text-color);
    text-shadow: 2px 2px 0 #000;
}

#game-container {
    position: relative;
    width: 900px;
    height: 300px;
    border: 10px dashed var(--text-color); /* Loud, distracting border */
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
}

#score-display, #fps-display {
    position: absolute;
    top: 10px;
    padding: 5px;
    background-color: var(--glitch-bg-2);
    border: 3px solid black;
    z-index: 100;
}

#fps-display { right: 10px; }
#score-display { left: 10px; }

/* Player */
#player {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--player-color);
    bottom: 0;
    left: 50px;
    transition: transform 0.1s; 
    border: 5px solid black;
    box-shadow: 0 0 10px var(--player-color);
    z-index: 50;
}

/* Obstacle Zone (Floor) */
#obstacle-zone {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px; 
    background-color: #333;
    border-top: 5px solid #000;
    z-index: 20;
}

/* --- THE BROKEN IMAGE TRICK --- */

/* Obstacle Wrapper */
.broken-obstacle {
    position: absolute;
    bottom: 0;
}

/* Obstacle Styling: Makes the native broken image icon large and prominent */
.broken-obstacle img {
    /* Large dimensions force the browser to display a giant broken icon */
    width: 80px; 
    height: 80px;
    border: 5px solid var(--text-color);
    background-color: #000; 
    transform: translateY(100%); /* Aligns the image bottom to the floor */
}

/* Power-up (The Unstyled Link Aesthetic) */
.power-up {
    position: absolute;
    bottom: 50px;
    left: 900px; 
    padding: 10px;
    font-size: 20px;
    color: blue; /* Default HTML link color */
    text-decoration: underline; /* Default HTML link style */
    background-color: white;
    border: 1px dashed black;
    z-index: 30;
}

.game-over-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    color: red;
    background-color: black;
    padding: 20px;
    border: 5px solid red;
    z-index: 1000;
}