:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --neon-purple: #bf5fff;
    --neon-cyan: #00f0ff;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: #fff;
    font-family: var(--font-main);
    background-image: linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--neon-cyan);
    margin-top: 0;
}

h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(191, 95, 255, 0.5);
    color: var(--neon-purple);
    text-align: center;
}

.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.l-huge {
    font-size: 3rem;
    vertical-align: middle;
}

/* -- LAYOUT -- */
.container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: 100vh;
    box-sizing: border-box;
}

.header {
    margin-bottom: 20px;
}

.content-wrapper {
    display: flex;
    flex: 1;
    gap: 20px;
    overflow: hidden;
}

/* -- SIDEBAR (Spieler Liste) -- */
.sidebar {
    width: 250px;
    background: rgba(17, 17, 17, 0.85);
    border: 1px solid var(--neon-purple);
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(191, 95, 255, 0.1);
}

.player-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.player-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 3px solid var(--neon-cyan);
}

.player-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.score {
    color: var(--neon-purple);
    font-weight: bold;
}

.status-ready { color: #0f0; font-size: 0.8rem; font-family: var(--font-display); }
.status-typing { color: var(--neon-cyan); font-size: 0.8rem; font-style: italic; }
.status-waiting { color: #f90; font-size: 0.8rem; }

/* -- MAIN BOARD -- */
.main-board {
    flex: 1;
    background: rgba(17, 17, 17, 0.85);
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    padding: 30px;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

/* -- LOGIN SCREEN -- */
.login-box {
    max-width: 400px;
    margin: 100px auto;
    background: rgba(17, 17, 17, 0.9);
    padding: 40px;
    border: 1px solid var(--neon-purple);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 30px rgba(191, 95, 255, 0.2);
}

.login-box input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: #000;
    border: 1px solid var(--neon-cyan);
    color: #fff;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* -- FORM ELEMENTS -- */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: var(--neon-purple);
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1.1rem;
}

.cat-input {
    width: 100%;
    padding: 15px;
    background: #080808;
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1.1rem;
    border-radius: 6px;
    box-sizing: border-box;
    transition: all 0.3s;
}

.cat-input:focus {
    border-color: var(--neon-cyan);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.cat-input:disabled {
    background: #222;
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 1.2rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-primary:hover:not(:disabled) {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.btn-primary:disabled {
    border-color: #555;
    color: #555;
    cursor: not-allowed;
}

/* -- PLAY AREA HEADER -- */
.play-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.timer {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: #ff0055;
    text-shadow: 0 0 15px #ff0055;
}

/* -- VOTING -- */
.voting-card {
    text-align: center;
    padding: 20px;
}

.word-display {
    font-size: 3rem;
    color: #fff;
    margin: 40px 0;
    font-family: var(--font-display);
    border: 2px dashed var(--neon-purple);
    padding: 30px;
    background: rgba(191, 95, 255, 0.05);
    border-radius: 12px;
    word-break: break-all;
}

.btn-vote {
    font-size: 1.5rem;
    padding: 15px 30px;
    margin: 10px;
    cursor: pointer;
    border: 2px solid;
    background: #000;
    border-radius: 8px;
    font-family: var(--font-display);
    transition: all 0.2s;
}

.btn-vote.up { border-color: #0f0; color: #0f0; }
.btn-vote.down { border-color: #f00; color: #f00; }
.btn-vote.up:hover { background: #0f0; color: #000; box-shadow: 0 0 15px #0f0; }
.btn-vote.down:hover { background: #f00; color: #000; box-shadow: 0 0 15px #f00; }

.vote-stats {
    margin-top: 20px;
    color: #888;
}

/* -- MOBILE -- */
@media screen and (max-width: 768px) {
    .content-wrapper {
        flex-direction: column-reverse;
        overflow: visible;
    }
    
    .sidebar {
        width: 100%;
        box-sizing: border-box;
    }
    
    .container {
        height: auto;
    }
    
    h1 { font-size: 1.8rem; }
}
