.challenge-results-page{max-width:1200px;margin:0 auto;padding:20px;font-family:Arial,sans-serif}.challenge-header{background:#303030;padding:20px;border-radius:8px;margin-bottom:30px;border:1px solid #e9ecef}.challenge-header h1{margin:0 0 15px;color:#6181a0;font-size:2em}.challenge-results-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:15px}.info-item{display:flex;flex-direction:column;gap:5px}.info-item strong{color:#5b738b;font-size:.9em}.status{display:inline-block;padding:4px 8px;border-radius:4px;font-size:.8em;font-weight:700;text-transform:uppercase}.status-pending{background:#fff3cd;color:#856404}.status-started{background:#d1ecf1;color:#0c5460}.status-finished{background:#d4edda;color:#155724}.user-participation{background:#303030;padding:20px;border-radius:8px;margin-bottom:30px;border:1px solid #b8daff}.user-participation h2{margin:0 0 15px;color:#6181a0}.participation-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px}.detail-item{display:flex;flex-direction:column;gap:5px}.detail-item strong{color:#6181a0;font-size:.9em}.participants-section h2{margin-bottom:20px;color:#6181a0}.teams-section{margin-bottom:30px}.teams-section h2{margin-bottom:20px;color:#6181a0}.teams-table{border:1px solid #dee2e6;border-radius:8px;overflow:hidden;margin-bottom:30px}.teams-table .table-header,.teams-table .table-row{display:grid;grid-template-columns:50px 2fr 100px 120px 140px;gap:0;min-width:600px}.teams-table .table-header{background:#303030;font-weight:700;color:#6181a0}.teams-table .table-header>div,.teams-table .table-row>div{padding:12px 8px;border-right:1px solid #dee2e6;display:flex;align-items:center}.teams-table .table-header>div:last-child,.teams-table .table-row>div:last-child{border-right:none}.teams-table .table-row{border-bottom:1px solid #dee2e6}.teams-table .table-row:last-child{border-bottom:none}.teams-table .table-row.current-user-team{background:#2a4a2e}.col-team-name{font-weight:500}.col-players{justify-content:center}.no-participants{text-align:center;color:#6c757d;font-style:italic;padding:40px}.participants-table{border:1px solid #dee2e6;border-radius:8px;overflow:hidden}.participants-table .table-header,.participants-table .table-row{display:grid;grid-template-columns:50px 2fr 75px 1fr;gap:0;min-width:600px}.participants-table .table-header:has(.col-team),.participants-table .table-row:has(.col-team){grid-template-columns:50px 1fr 1fr 75px 1fr}.participants-table .table-header{background:#303030;font-weight:700;color:#6181a0}.participants-table .table-header>div,.participants-table .table-row>div{padding:12px 8px;border-right:1px solid #dee2e6;display:flex;align-items:center}.participants-table .table-header>div:last-child,.participants-table .table-row>div:last-child{border-right:none}.participants-table .table-row{border-bottom:1px solid #dee2e6}.participants-table .table-row:last-child{border-bottom:none}.participants-table .table-row.current-user{background:#564612}.participants-table .table-row.current-user .col-name:after{font-weight:700;color:#856404}.col-team{color:#8892b0;font-size:.9em}.col-rank{justify-content:center;font-weight:700}.col-score,.col-duration,.col-correct,.col-attempts{justify-content:center}.actions{margin-top:40px;display:flex;gap:15px;justify-content:center}.email-optin-section{margin-top:20px;text-align:center}.email-optin-btn{background:#28a745;color:#fff;border:none;padding:10px 20px;border-radius:6px;cursor:pointer;font-size:.9em;font-weight:500;transition:background-color .2s;display:inline-flex;align-items:center;justify-content:center;gap:8px}.email-optin-btn:hover:not(:disabled){background:#218838}.email-optin-btn:disabled{background:#6c757d;cursor:not-allowed}.loading-spinner-button{animation:spin 1s linear infinite;font-size:1.2em}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.back-button,.join-button{display:inline-block;padding:12px 24px;border-radius:6px;text-decoration:none;font-weight:700;transition:background-color .2s}.back-button{background:#6c757d;color:#fff}.back-button:hover{background:#5a6268}.join-button{background:#007bff;color:#fff}.join-button:hover{background:#0056b3}.loading,.error{text-align:center;padding:60px 20px}.error h2{color:#dc3545;margin-bottom:15px}.error a{color:#007bff;text-decoration:none}.error a:hover{text-decoration:underline}@media (max-width: 768px){.challenge-results-page{padding:10px}.challenge-results-info,.participation-details{grid-template-columns:1fr}.participants-table{font-size:.9em}.table-header,.table-row{grid-template-columns:50px 2fr 80px 80px 80px 80px 120px}.teams-table .table-header,.teams-table .table-row{grid-template-columns:40px 2fr 70px 90px 110px;font-size:.85em}.actions{flex-direction:column;align-items:center}}
