* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: "Segoe UI", Arial, sans-serif; background: linear-gradient(0deg, #0d1733 0%, #223c83 100%); min-height: 100vh; padding: 20px; } .back-btn { position: fixed; top: 20px; left: 20px; background: rgba(255, 255, 255, 0.2); border: 2px solid rgba(255, 255, 255, 0.3); color: white; padding: 15px; border-radius: 50%; text-decoration: none; font-size: 1.5rem; transition: all 0.3s ease; z-index: 1000; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; } .back-btn:hover { background: rgba(255, 255, 255, 0.3); border-color: rgba(255, 255, 255, 0.5); transform: scale(1.1); } .container { max-width: 800px; margin: 0 auto; background: rgba(255, 255, 255, 0.95); border-radius: 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); overflow: visible; backdrop-filter: blur(10px); } .header { background: linear-gradient(135deg, #49bae4 0%, #223c83 100%); color: white; padding: 30px; text-align: center; position: relative; } .header h1 { font-size: 2.5em; margin-bottom: 10px; position: relative; z-index: 1; font-weight: bold; text-transform: uppercase; font-family: "Segoe UI", Arial, sans-serif; } .content { padding: 30px; } .leaderboard-container { background: white; border-radius: 12px; padding: 20px; border: 2px solid #e9ecef; min-height: 150px; max-height: none; overflow: visible; } .leaderboard-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; } .leaderboard-row:last-child { margin-bottom: 0; } @media (min-width: 768px) { .leaderboard-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; grid-auto-rows: min-content; } .leaderboard-row { margin-bottom: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; } } .leaderboard-entry { display: flex; justify-content: space-between; align-items: center; margin: 15px 0; font-size: 1.1em; font-weight: 600; background: #f8f9fa; padding: 15px 20px; border-radius: 10px; border: 2px solid #e9ecef; transition: all 0.3s ease; } .leaderboard-entry:hover { background: #e9ecef; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); } .leaderboard-entry.gold { background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%); border-color: #ffd700; color: #b8860b; font-weight: bold; box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); } .leaderboard-entry.silver { background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%); border-color: #c0c0c0; color: #696969; font-weight: bold; box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3); } .leaderboard-entry.bronze { background: linear-gradient(135deg, #cd7f32 0%, #e6a85c 100%); border-color: #cd7f32; color: #8b4513; font-weight: bold; box-shadow: 0 4px 15px rgba(205, 127, 50, 0.3); } .leaderboard-entry .rank { font-weight: bold; min-width: 40px; font-size: 1.2em; text-align: center; } .leaderboard-entry .name { flex: 1; margin: 0 20px; font-weight: 600; } .leaderboard-entry .time { font-weight: bold; font-family: 'Courier New', monospace; min-width: 100px; text-align: right; font-size: 1.1em; } .no-entries { text-align: center; color: #6c757d; font-style: italic; font-size: 1.1em; padding: 40px; } .loading { text-align: center; color: #49bae4; font-size: 1.1em; padding: 40px; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } } /* Modern Notification Toast */ .notification-toast { position: fixed; top: 24px; right: 24px; min-width: 320px; max-width: 400px; background: rgba(255, 255, 255, 0.98); border-radius: 16px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.05); backdrop-filter: blur(20px); z-index: 99999; display: none; align-items: flex-start; gap: 12px; padding: 16px; transform: translateX(100%); opacity: 0; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: auto; border: 1px solid rgba(255, 255, 255, 0.2); } .notification-toast.show { transform: translateX(0); opacity: 1; } .notification-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; color: white; background: linear-gradient(135deg, #10b981, #059669); } .notification-body { flex: 1; min-width: 0; } .notification-title { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 4px; line-height: 1.2; } .notification-message { font-size: 13px; color: #6b7280; line-height: 1.4; word-wrap: break-word; } .notification-close { flex-shrink: 0; width: 32px; height: 32px; border: none; background: none; color: #9ca3af; cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; margin-top: -4px; margin-right: -4px; } .notification-close:hover { background: rgba(0, 0, 0, 0.05); color: #374151; } .notification-close:active { transform: scale(0.95); } /* Toast Types */ .notification-toast.success .notification-icon { background: linear-gradient(135deg, #10b981, #059669); } .notification-toast.error .notification-icon { background: linear-gradient(135deg, #ef4444, #dc2626); } .notification-toast.info .notification-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); } .notification-toast.warning .notification-icon { background: linear-gradient(135deg, #f59e0b, #d97706); } /* Mobile Responsiveness */ @media (max-width: 768px) { .container { margin: 10px; border-radius: 15px; } .content { padding: 20px; } .leaderboard-entry { flex-direction: column; gap: 10px; text-align: center; } .leaderboard-entry .name { margin: 0; order: 1; } .leaderboard-entry .rank { order: 2; } .leaderboard-entry .time { order: 3; } /* Mobile notification adjustments */ .notification-toast { top: 10px; right: 10px; left: 10px; max-width: none; font-size: 14px; padding: 12px 16px; } } @media (max-width: 480px) { .header h1 { font-size: 2em; } .leaderboard-entry { padding: 12px 15px; font-size: 1em; } .leaderboard-entry .rank { font-size: 1.1em; } .leaderboard-entry .time { font-size: 1em; } }