* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    text-align: center;
    color: #ffffff;
    font-size: 3em;
    margin-bottom: 50px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: 1px;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

.game-selection {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.game-card {
    background-image: url('IngegneriCorrottiSyntrael.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    padding: 80px 60px;
    width: 600px;
    min-height: 400px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    z-index: 1;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.game-card:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.game-card h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    font-weight: bold;
}

.game-card p {
    color: #f0f0f0;
    font-size: 1.3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.game-card .game-category {
    color: #ffd700;
    font-size: 0.9em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    margin-top: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.95;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('IngegneriCorrottiSyntrael.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-y: auto;
}

.modal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.modal-content {
    background-color: #dce5dc;
    margin: 50px auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    position: relative;
    overflow-x: hidden;
    word-wrap: break-word;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #000;
}

.setup-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
}

.player-input {
    margin-bottom: 10px;
}

.player-input input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.role-card {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hidden-role {
    cursor: pointer;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hidden-role:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hidden-role.revealed {
    cursor: pointer;
}

.narrator-card {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe9a3 100%);
}

.player-name-only {
    font-size: 1.15em;
    color: #333;
    text-align: center;
    margin: 0;
}

.role-card h3 {
    color: #667eea;
    margin-bottom: 8px;
    font-size: 1.15em;
}

.role-card .player-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.role-card .role-name {
    font-size: 1.15em;
    color: #764ba2;
    margin-bottom: 8px;
}

.role-card .role-description {
    color: #666;
    line-height: 1.5;
    font-size: 1em;
}

.click-to-hide {
    margin-top: 10px;
    padding: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 5px;
    text-align: center;
    color: #667eea;
    font-size: 0.9em;
    font-style: italic;
}

.instructions-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.instructions-title {
    color: #1976d2;
    font-size: 1.15em;
    margin: 0;
    text-align: center;
}

.instructions-content {
    margin-top: 12px;
}

.instructions-box p {
    color: #424242;
    line-height: 1.5;
    margin-bottom: 8px;
    font-size: 1em;
}

.instructions-box p:last-of-type {
    margin-bottom: 0;
}

.instructions-box strong {
    color: #1565c0;
}

#rolesContainer {
    max-height: 60vh;
    overflow-y: auto;
}

.btn-story {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #333;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.btn-story:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.modal-story {
    max-width: 800px;
}

.story-content {
    max-height: 65vh;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.story-content h3 {
    color: #667eea;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.story-content h3:first-child {
    margin-top: 0;
}

.story-content h4 {
    color: #764ba2;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.story-content p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 12px;
}

.story-content em {
    color: #555;
    font-style: italic;
}

.story-content ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.story-content li {
    color: #333;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Stili per il modal di modifica giocatori */
.modify-player-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.modify-player-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.modify-player-input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-remove-player {
    background: #dc3545;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-remove-player:hover {
    background: #c82333;
    transform: scale(1.1);
}

.btn-add-player {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-add-player:hover {
    background: #218838;
    transform: scale(1.02);
}

#modifyPlayersContainer {
    margin-bottom: 10px;
}

/* Stili per i pulsanti in riga */
.button-container {
    margin-top: 20px;
}

.button-row-top {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-secondary {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    color: white;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    transition: transform 0.2s;
    line-height: 1.4;
}

.btn-secondary:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
}

.btn-close {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s;
}

.btn-close:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
}

/* Stili per la card del narratore cliccabile */
.narrator-card {
    cursor: pointer;
}

.narrator-card .narrator-name-only {
    font-size: 1.15em;
    color: #333;
    text-align: center;
    margin: 0;
}

.narrator-card .narrator-details {
    margin-top: 12px;
}

/* Stili per il tracciamento del gioco */
.game-tracker {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.game-tracker h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.tracker-section {
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 5px;
}

.tracker-section strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.checkbox-label {
    display: inline-block;
    margin-right: 10px;
    cursor: pointer;
    font-size: 1.2em;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    accent-color: #dc3545;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: #dc3545;
}

.status-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    margin-top: 5px;
}

.status-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #dc3545;
}

.status-label input[type="checkbox"]:checked {
    background-color: #dc3545;
}

/* Stili per le note del narratore */
.narrator-notes {
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid #667eea;
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
}

.narrator-notes label {
    display: block;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.narrator-notes textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95em;
    resize: vertical;
    min-height: 50px;
}

.narrator-notes textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

/* Stili per il modal di vittoria */
.victory-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.victory-content {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    margin: 15% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: slideDown 0.5s ease;
    border: 5px solid #ff8c00;
}

.victory-content h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.victory-content p {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.victory-content strong {
    color: #d32f2f;
    font-size: 1.1em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Stili per il bottone email */
.email-button {
    display: inline-block;
    margin-left: 15px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.email-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.email-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Stili per il modal email */
.email-modal {
    display: none;
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.email-modal-content {
    background-color: #dce5dc;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.email-modal-content h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.email-modal-content p {
    margin-bottom: 15px;
    color: #333;
}

.email-modal-content .form-group {
    margin-bottom: 20px;
}

.email-modal-content input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.email-modal-content input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
}

/* Stili per il layout con bottone email */
.card-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.card-header-with-button h3 {
    flex: 1;
    margin: 0;
}

.player-name-only {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Stili per il titolo del modal risultati */
#resultsModal h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
    font-size: 2em;
}

/* Stili per il modal di avviso personalizzato */
.alert-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
    pointer-events: auto;
}

.alert-modal-content {
    background-color: #dce5dc;
    margin: 20% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
    text-align: center;
    animation: slideDown 0.4s ease;
    border: 3px solid #3a3a3a;
}

.alert-modal-content h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.alert-modal-content p {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.6;
}

.alert-modal-content .btn-primary {
    margin-top: 0;
}

/* Stili per il modal della guida ai ruoli */
.roles-guide-content {
    max-height: 65vh;
    overflow-y: auto;
    padding: 10px;
}

.roles-guide-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.role-guide-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid #3a3a3a;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.role-guide-card:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.role-guide-icon {
    font-size: 3em;
    min-width: 60px;
    text-align: center;
}

.role-guide-info {
    flex: 1;
}

.role-guide-info h3 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 1.3em;
}

.role-guide-team {
    color: #666;
    font-weight: 600;
    margin: 0 0 10px 0;
    font-size: 0.95em;
}

.role-guide-desc {
    color: #555;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95em;
}

.role-guide-arrow {
    font-size: 2em;
    color: #3a3a3a;
    font-weight: bold;
}

/* Stili per il banner di installazione PWA */
#install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 500px;
    animation: slideUp 0.5s ease;
}

.install-banner-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.install-banner-text strong {
    font-size: 1.2em;
    display: block;
    margin-bottom: 5px;
}

.install-banner-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95em;
}

.install-banner-buttons {
    display: flex;
    gap: 10px;
}

.btn-install {
    flex: 1;
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-install:hover {
    transform: scale(1.05);
}

.btn-dismiss {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Responsive per mobile */
@media (max-width: 600px) {
    #install-banner {
        bottom: 10px;
        width: 95%;
    }
    
    .install-banner-content {
        padding: 15px;
    }
    
    .install-banner-buttons {
        flex-direction: column;
    }
}


/* ============================================
   GLITCH MIND STYLES
   ============================================ */

.glitch-card {
    background-image: url('GlitchMind.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.neondm-card {
    background-image: url('NeonDM_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.neondm-card::before {
    background: rgba(0, 20, 40, 0.5);
}

.neondm-card:hover::before {
    background: rgba(0, 20, 40, 0.3);
}

.neondm-card h2 {
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.neondm-card p {
    color: #f0f0f0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.neondm-card .game-category {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

/* Stile per i modal di NeonDM con sfondo */
.neondm-modal-content {
    background: linear-gradient(135deg, rgba(220, 229, 220, 0.95) 0%, rgba(220, 229, 220, 0.95) 100%), 
                url('NeonDM_background.png') center/cover !important;
    background-attachment: fixed !important;
}

/* Sfondo specifico per i modal di NeonDM */
.modal.neondm-modal-backdrop {
    background-image: url('NeonDM_background.png') !important;
}

/* Overlay più luminoso per i modal di NeonDM */
.modal.neondm-modal-backdrop::before {
    background: rgba(0, 0, 0, 0.1) !important;
}

.glitch-card::before {
    background: rgba(10, 10, 30, 0.6);
}

.glitch-card:hover::before {
    background: rgba(10, 10, 30, 0.4);
}

/* Sfondo per i modal di Glitch Mind */
#glitchSetupModal.modal,
#glitchGameModal.modal,
#glitchVoteModal.modal,
#glitchGuessModal.modal,
#modifyGlitchModal.modal {
    background-image: url('GlitchMind.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#glitchSetupModal.modal::before,
#glitchGameModal.modal::before,
#glitchVoteModal.modal::before,
#glitchGuessModal.modal::before,
#modifyGlitchModal.modal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 30, 0.4);
    z-index: -1;
}

.glitch-rules-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.glitch-rules-title {
    color: #1976d2;
    font-size: 1.15em;
    margin: 0;
    text-align: center;
}

.glitch-rules-content {
    margin-top: 12px;
}

.glitch-rules-content p {
    color: #424242;
    line-height: 1.5;
    margin-bottom: 8px;
    font-size: 1em;
}

.glitch-rules-content ul {
    margin-left: 20px;
    margin-top: 10px;
}

.glitch-rules-content li {
    color: #424242;
    margin-bottom: 5px;
    line-height: 1.5;
}

.glitch-rules-content strong {
    color: #1565c0;
}

.glitch-player-card {
    border-left-color: #00ffff;
}

.glitch-player-card.revealed {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}

.vote-option {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.vote-option:hover {
    transform: scale(1.05);
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.vote-option strong {
    color: #333;
    font-size: 1.1em;
}

/* Responsive per le card del gioco */
@media (max-width: 768px) {
    .game-selection {
        flex-direction: column;
        align-items: center;
    }
    
    .game-card {
        width: 100%;
        max-width: 500px;
    }
}


/* Stili per le sezioni di gioco Glitch Mind */
.glitch-game-order-box,
.glitch-voting-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.glitch-game-order-box h3,
.glitch-voting-box h3 {
    color: #2e7d32;
    margin-bottom: 15px;
    text-align: center;
}

.glitch-voting-box p {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

#glitchPlayOrderList ol {
    background: white;
    padding: 20px 20px 20px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#glitchPlayOrderList li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

#glitchPlayOrderList li:last-child {
    border-bottom: none;
}

#glitchEliminationList {
    margin-top: 15px;
}

/* ============================================
   GITHUB FOOTER BANNER
   ============================================ */

.github-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.github-footer p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.github-footer a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.github-footer a:hover {
    color: #ffed4e;
    border-bottom: 2px solid #ffed4e;
    text-shadow: 0 0 10px rgba(255, 237, 78, 0.5);
}

@media (max-width: 768px) {
    .github-footer {
        padding: 15px;
        margin-top: 40px;
    }
    
    .github-footer p {
        font-size: 1em;
    }
}
