:root {
    --bg-black: #0a0a0a;
    --card-dark: #141414;
    --blood-red: #8b0000;
    --bright-red: #ff3131;
    --text-white: #e0e0e0;
    --text-gray: #757575;
    --accent: red;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background: radial-gradient(circle, #1a0505 0%, #0a0a0a 100%);
    color: var(--text-white);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

.container {
    background: var(--card-dark);
    padding: 3rem;
    border-radius: 4px;
    border-left: 4px solid var(--blood-red);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
}

.container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
    opacity: 0.2;
    pointer-events: none;
}

h1 {
    font-size: 2.5rem;
    color: var(--bright-red);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0px #000;
}

.user-name {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

button {
    padding: 15px;
    border: 1px solid var(--blood-red);
    background: transparent;
    color: var(--bright-red);
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--blood-red);
    color: white;
    box-shadow: 0 0 15px var(--blood-red);
}

button[onclick*="createLobby"] {
    background: var(--blood-red);
    color: white;
}

.player-button {
    border-color: #333;
    color: var(--text-white);
}

.player-button:hover {
    border-color: var(--bright-red);
    background: rgba(255, 49, 49, 0.1);
}

.timer-component {
    color: var(--bright-red);
    font-family: 'Courier', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.dead-screen {
    border: 2px solid var(--bright-red);
    background: rgba(139, 0, 0, 0.1);
    padding: 20px;
}

.dead-screen h1 {
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 22%, 24%, 55% { opacity: 0.5; }
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.suggestion-list {
    position: absolute;
    top: 100%;
    left: 5%;
    width: 90%;
    background: #1a1a1a;
    border: 1px solid var(--blood-red);
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.suggestion-item {
    padding: 10px;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #333;
    transition: background 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--blood-red);
    color: white;
}

#spySearch {
    width: 90%;
    padding: 12px;
    background: #141414;
    border: 1px solid var(--blood-red);
    color: var(--text-white);
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 0;
    box-sizing: border-box;
}

.search-container {
    margin-top: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-button.selected-vote {
    background-color: #e94560 !important;
    border: 2px solid white;
    transform: scale(1.05);
}

.vote-count {
    float: right;
    background: rgba(0,0,0,0.3);
    padding: 0 5px;
    border-radius: 4px;
    font-weight: bold;
}

.vote-history {
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 10px;
    text-align: left;
    margin-top: 20px;
}