:root {
    --bg-color: #0b0c10;
    --card-bg: #1f2833;
    --text-main: #c5c6c7;
    --neon-blue: #66fcf1;
    --neon-blue-dim: #45a29e;
    --neon-red: #ff003c;
    --neon-green: #00ff87;
    --radius: 12px;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1, h2 {
    color: var(--neon-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
}

.header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(102, 252, 241, 0.2);
}

button {
    font-family: 'Space Grotesk', sans-serif;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none !important;
}

.btn-glow {
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    padding: 0.8rem 1.5rem;
}

.btn-glow:hover:not(:disabled) {
    background: var(--neon-blue);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--neon-blue);
}

.cards-grid {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--neon-blue-dim);
}

.card.danger::before { background: var(--neon-red); }
.card.danger {
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.2);
    border-color: rgba(255, 0, 60, 0.5);
    animation: dangerPulse 2s infinite;
}

@keyframes dangerPulse {
    0% { box-shadow: 0 0 10px rgba(255, 0, 60, 0.2); }
    50% { box-shadow: 0 0 25px rgba(255, 0, 60, 0.6); }
    100% { box-shadow: 0 0 10px rgba(255, 0, 60, 0.2); }
}

.player-name {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;
    outline: none;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    padding-bottom: 5px;
}
.player-name:focus { border-bottom-color: var(--neon-blue); }

.points-display {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
    margin: 1rem 0;
}

.card-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 1rem;
}

.btn-add, .btn-sub {
    flex: 1;
    padding: 10px;
    font-size: 1.2rem;
}

.btn-add { background: rgba(0, 255, 135, 0.1); color: var(--neon-green); border: 1px solid var(--neon-green); }
.btn-add:hover { background: var(--neon-green); color: var(--bg-color); box-shadow: 0 0 10px var(--neon-green); }

.btn-sub { background: rgba(255, 0, 60, 0.1); color: var(--neon-red); border: 1px solid var(--neon-red); }
.btn-sub:hover { background: var(--neon-red); color: var(--bg-color); box-shadow: 0 0 10px var(--neon-red); }

.btn-delete {
    width: 100%;
    background: transparent;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    padding: 8px;
}
.btn-delete:hover { color: var(--neon-red); }

.bottom-panels {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.panel {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
}

.hidden { display: none !important; }

.alert {
    background: rgba(255, 0, 60, 0.1);
    color: var(--neon-red);
    border: 1px solid var(--neon-red);
    padding: 1rem;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.btn-spin {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    background: var(--neon-blue);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.4);
}
.btn-spin:hover:not(:disabled) { box-shadow: 0 0 25px rgba(102, 252, 241, 0.8); }

.result-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--neon-red);
    min-height: 24px;
    border: 1px solid rgba(255, 0, 60, 0.2);
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.input-group input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 6px;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    outline: none;
}
.input-group input:focus { border-color: var(--neon-blue); }

.btn-add-p {
    background: var(--neon-blue-dim);
    color: var(--bg-color);
    padding: 0 1rem;
}

ul { list-style: none; padding: 0; margin: 0; }
li {
    background: rgba(0,0,0,0.2);
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--neon-blue-dim);
}

.delete-punishment {
    background: transparent;
    color: rgba(255,255,255,0.4);
    padding: 5px;
}
.delete-punishment:hover { color: var(--neon-red); }

@media (max-width: 768px) {
    .bottom-panels { grid-template-columns: 1fr; }
    .header { flex-direction: column; gap: 1rem; text-align: center; }
}