/* Tag-Theme (6:00 - 20:00 Uhr) - Komplett überarbeitet */

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
    background: white;
    color: #2c3e50;
}

h1 {
    color: #667eea;
}

/* Lobby */
.lobby-title {
    color: #667eea;
}

.lobby-subtitle {
    color: #555;
}

.lobby-card {
    background: white;
    border: 3px solid #667eea;
}

.lobby-card:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: #764ba2;
}

.lobby-card h3 {
    color: #667eea;
}

.lobby-card p {
    color: #666;
}

/* Modal */
.modal {
    background: white;
}

.modal h2 {
    color: #667eea;
}

.modal-input {
    border: 2px solid #ddd;
    background: white;
    color: #2c3e50;
}

.modal-input:focus {
    border-color: #667eea;
    outline: none;
}

/* Waiting Screen */
.waiting-screen h2 {
    color: #667eea;
}

.room-code {
    background: #f0f4ff;
    color: #667eea;
    border: 2px solid #d0d8ff;
}

.player-item {
    background: #f8f9ff;
    border: 1px solid #e8ecff;
}

/* Game */
#status {
    background: #f0f4ff;
    color: #2c3e50;
    border: 1px solid #d0d8ff;
}

.cell {
    border: 3px solid #667eea;
    background: white;
}

.cell:hover {
    border-color: #764ba2;
    box-shadow: 0 4px 16px rgba(118, 75, 162, 0.25);
}

.controls h3 {
    color: #667eea;
}

.ring-option {
    background: rgba(255, 255, 255, 0.8);
    border: 3px solid #ddd;
}

.ring-option:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #667eea;
}

.ring-option.selected {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.ring-preview {
    background: rgba(102, 126, 234, 0.05);
}

.ring-label {
    color: #2c3e50;
}

.player-card {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    border: 3px solid transparent;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    position: relative;
    overflow: hidden;
    transform: scale(0.85);
    opacity: 0.7;
    background: #f0f4ff;
    border-color: #d0d8ff;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.player-card.active::before {
    left: 100%;
}

.player-card.active {
    animation: activePlayerPulse 1.5s ease-in-out infinite;
    transform: scale(1.15);
    font-size: 1.2em;
    font-weight: bold;
    border-width: 4px;
    z-index: 10;
    opacity: 1;
    border-color: #667eea;
}

@keyframes activePlayerPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.7);
        transform: scale(1.15);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.9);
        transform: scale(1.2);
    }
}

.winner-banner {
    background: white;
}

.winner-banner h2 {
    color: #667eea;
}

/* Stats Modal */
.stats-modal {
    background: white;
    color: #2c3e50;
}

.stats-modal h2 {
    color: #667eea;
}

.stat-item {
    background: #f0f4ff;
    color: #2c3e50;
}

.stat-label {
    color: #2c3e50;
}

.stat-value {
    color: #667eea;
}

.player-stat {
    background: #f0f4ff;
    border-left-color: #667eea;
}

.player-stat-name {
    color: #2c3e50;
}

.player-stat-details {
    color: #2c3e50;
}

.player-stat-details span {
    background: rgba(102, 126, 234, 0.1);
    color: #2c3e50;
}

/* Move Announcement Popup */
.move-announcement {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.95);
    border-radius: 20px;
    padding: 30px 50px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid;
    text-align: center;
    min-width: 300px;
}

.move-announcement.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.move-announcement-player {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.move-announcement-action {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.9;
}

.move-announcement-move {
    font-size: 2.5rem;
    margin: 15px 0;
    font-weight: bold;
    font-family: monospace;
    text-shadow: 0 0 10px currentColor;
}