:root {
    --ow-red: #ff3838;
    --ow-yellow: #f1c40f;
    --ow-blue: #0984e3;
    --bg-dark: #0f172a;
    --ow-font: 'Fredoka', 'Oswald', sans-serif;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--ow-font);
    user-select: none;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* TOP HUD */
#hud {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    box-sizing: border-box;
    color: white;
}

#status-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prank-count {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 10px;
    border-left: 5px solid var(--ow-yellow);
    font-weight: 900;
}

#detection-meter {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
}

.meter-bg {
    width: 100px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

#meter-fill {
    width: 0%;
    height: 100%;
    background: var(--ow-red);
    box-shadow: 0 0 10px var(--ow-red);
}

#inventory-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 30px;
    border-radius: 20px;
    border: 3px solid #fff;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* MISSION BOARD */
#mission-board {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 15px 30px;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    text-align: center;
    max-width: 400px;
}

.mission-label {
    font-size: 0.8rem;
    color: var(--ow-yellow);
    font-weight: 900;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

#mission-text {
    font-size: 1.1rem;
    font-weight: 700;
}

#mission-status {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 900;
    white-space: nowrap;
    animation: pulse 1s infinite;
    z-index: 50;
    border: 4px solid white;
}

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

/* OVERLAYS */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.menu-box {
    text-align: center;
    background: #fff;
    padding: 60px;
    border-radius: 40px;
    border: 6px solid #e74c3c;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
}

.logo-emoji {
    font-size: 5rem;
    margin-bottom: 10px;
}

.logo-text {
    font-size: 4rem;
    color: #2c3e50;
    font-weight: 900;
    margin-bottom: 20px;
}

.logo-text span {
    color: #e74c3c;
}

.controls-guide {
    background: #f1f2f6;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #555;
    font-weight: bold;
}

button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 20px 60px;
    font-family: inherit;
    font-size: 2rem;
    font-weight: 900;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 8px 0 #c0392b;
    transition: 0.2s;
}

button:hover {
    transform: translateY(-5px);
    background: #ff5252;
    box-shadow: 0 12px 0 #c0392b;
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #c0392b;
}

.scary-title {
    font-size: 4rem;
    color: #e74c3c;
    font-weight: 900;
    margin-bottom: 15px;
}

.win-title {
    font-size: 4rem;
    color: #2ecc71;
    font-weight: 900;
    margin-bottom: 15px;
}

.hidden {
    display: none !important;
}