/* style.css - This file is kept as you provided. */ :root { --primary-bg: rgba(20, 20, 20, 0.9); --secondary-bg: rgba(30, 30, 30, 0.95); --border-color: rgba(60, 60, 60, 0.8); --text-color: #e0e0e0; --header-color: #ffffff; --accent-color: #007bff; --shadow-color: rgba(0, 0, 0, 0.5); --hover-color: rgba(0, 123, 255, 0.2); --scroll-thumb: #007bff; --scroll-track: #333; } body { font-family: 'Inter', sans-serif; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: transparent; overflow: hidden; } .leaderboard-container { background-color: var(--primary-bg); border-radius: 15px; box-shadow: 0 10px 30px var(--shadow-color); width: 90%; max-width: 800px; padding: 25px; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; border: 1px solid var(--border-color); opacity: 0; transform: scale(0.95); transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; } .leaderboard-container.visible { opacity: 1; transform: scale(1); } .leaderboard-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 15px; } .leaderboard-header h1 { color: var(--header-color); font-size: 2.2em; font-weight: 700; margin: 0; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); } .close-button { background-color: var(--accent-color); color: var(--header-color); border: none; padding: 10px 20px; border-radius: 8px; font-size: 1em; font-weight: 600; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3); } .close-button:hover { background-color: #0056b3; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4); } .close-button:active { transform: translateY(0); box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2); } .leaderboard-table-wrapper { max-height: 50vh; overflow-y: auto; border-radius: 10px; border: 1px solid var(--border-color); background-color: var(--secondary-bg); box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2); } .leaderboard-table-wrapper::-webkit-scrollbar { width: 10px; } .leaderboard-table-wrapper::-webkit-scrollbar-track { background: var(--scroll-track); border-radius: 10px; } .leaderboard-table-wrapper::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 10px; transition: background 0.3s ease; } .leaderboard-table-wrapper::-webkit-scrollbar-thumb:hover { background: #0056b3; } .leaderboard-table { width: 100%; border-collapse: collapse; color: var(--text-color); font-size: 0.95em; } .leaderboard-table th, .leaderboard-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border-color); } .leaderboard-table th { background-color: var(--secondary-bg); color: var(--header-color); font-weight: 600; text-transform: uppercase; position: sticky; top: 0; z-index: 1; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } .leaderboard-table tbody tr:last-child td { border-bottom: none; } .leaderboard-table tbody tr:hover { background-color: var(--hover-color); } .leaderboard-table th:nth-child(1), .leaderboard-table td:nth-child(1) { width: 5%; text-align: center; } .leaderboard-table th:nth-child(2), .leaderboard-table td:nth-child(2) { width: 35%; } .leaderboard-table th:nth-child(3), .leaderboard-table td:nth-child(3), .leaderboard-table th:nth-child(4), .leaderboard-table td:nth-child(4), .leaderboard-table th:nth-child(5), .leaderboard-table td:nth-child(5), .leaderboard-table th:nth-child(6), .leaderboard-table td:nth-child(6) { width: 15%; text-align: center; } .no-data-message { text-align: center; padding: 20px; font-style: italic; color: #aaa; } .player-stats-section { background-color: var(--secondary-bg); border-radius: 10px; padding: 15px 20px; border: 1px solid var(--border-color); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); margin-top: 15px; } .player-stats-section h2 { color: var(--header-color); font-size: 1.6em; font-weight: 600; margin-top: 0; margin-bottom: 15px; text-align: center; } .player-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px; text-align: center; } .stat-item { display: flex; flex-direction: column; align-items: center; padding: 10px; background-color: rgba(40, 40, 40, 0.8); border-radius: 8px; border: 1px solid rgba(80, 80, 80, 0.7); } .stat-label { color: #b0b0b0; font-size: 0.85em; font-weight: 400; margin-bottom: 5px; } .stat-value { color: var(--accent-color); font-size: 1.2em; font-weight: 700; } @media (max-width: 768px) { .leaderboard-container { width: 95%; padding: 15px; } .leaderboard-header h1 { font-size: 1.8em; } .close-button { padding: 8px 15px; font-size: 0.9em; } .leaderboard-table th, .leaderboard-table td { padding: 10px 8px; font-size: 0.85em; } .player-stats-section { padding: 10px 15px; } .player-stats-section h2 { font-size: 1.4em; } .player-stats-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; } .stat-value { font-size: 1.1em; } } @media (max-width: 480px) { .leaderboard-container { padding: 10px; } .leaderboard-header { flex-direction: column; gap: 10px; padding-bottom: 10px; margin-bottom: 10px; } .leaderboard-header h1 { font-size: 1.5em; text-align: center; } .close-button { width: 100%; } .leaderboard-table th, .leaderboard-table td { padding: 8px 5px; font-size: 0.75em; } .player-stats-grid { grid-template-columns: 1fr; } }