:root {
    --ow-red: #ff3838;
    --ow-blue: #0984e3;
    --ow-yellow: #f1c40f;
    --bg-dark: #000;
}

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

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

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

/* TOP HUD */
#hud {
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

#status-bar {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 10px;
    border-left: 5px solid var(--ow-red);
}

#role-tag {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.imposter {
    color: var(--ow-red);
}

.crewmate {
    color: var(--ow-blue);
}

#task-info {
    margin-left: 20px;
    color: #fff;
    opacity: 0.9;
}

.mission-bar-container {
    width: 300px;
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

#mission-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#kill-timer {
    margin-left: 20px;
    color: #fff;
    opacity: 0.8;
}

#interaction-prompt {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid white;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); box-shadow: 0 0 10px white; }
    to { transform: scale(1.1); box-shadow: 0 0 30px white; }
}

/* ACTION HUD NEW */
#action-hud {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 20px;
    z-index: 50;
    pointer-events: auto;
}

.action-btn-new {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: rgba(44, 62, 80, 0.8);
    border: 3px solid #fff;
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    backdrop-filter: blur(5px);
}

.action-btn-new:hover { transform: scale(1.1); }
.action-btn-new:active { transform: scale(0.9); }

.m-btn .red-square {
    width: 30px;
    height: 30px;
    background: #ff3333;
    border: 2px solid white;
    margin-bottom: 5px;
    box-shadow: 0 0 15px #ff3333;
}

.t-btn .scary-eye {
    font-size: 2.5rem;
    margin-bottom: 5px;
    animation: eye-flash 0.3s infinite alternate;
    text-shadow: 0 0 20px red;
}

@keyframes eye-flash {
    from { opacity: 0.4; transform: scale(0.8); filter: hue-rotate(0deg); }
    to { opacity: 1; transform: scale(1.2); filter: hue-rotate(360deg); }
}

#interaction-prompt {
    display: none; /* Replaced by localized buttons but keeping structure */
}

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

.menu-box {
    text-align: center;
    background: #000;
    padding: 60px;
    border-radius: 20px;
    border: 3px solid #333;
    max-width: 500px;
}

.character-preview {
    font-size: 6rem;
    margin-bottom: 20px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-20px);
    }
}

.logo-text {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: 5px;
}

.logo-text span {
    color: var(--ow-blue);
}

.controls {
    background: #111;
    color: #888;
    padding: 10px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 0.9rem;
}

button {
    background: #fff;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-family: inherit;
    font-weight: 900;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 5px;
}

.win-title {
    color: var(--ow-blue);
    font-size: 4rem;
    text-shadow: 0 0 20px var(--ow-blue);
}

.lose-title {
    color: #888;
    font-size: 4rem;
}

.hidden {
    display: none !important;
}

/* Meeting Styles */
.meeting-title {
    color: var(--ow-red);
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.meeting-speaker {
    font-size: 5rem;
    margin: 20px 0;
    animation: pulse 0.5s infinite alternate;
}

#meeting-status {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #fff;
}