@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

.page {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/promotions/persistent/leaderboard-sprint/img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 50px;
    position: relative;
    overflow-x: hidden;
}

/* Glassmorphism Containers */
.main-sprint-info, .main-info, .points, .scrollit, .game-info {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.main-sprint-info {
    max-width: 800px;
    padding: 30px;
    border-radius: 20px;
    margin: 0 auto 30px;
}

.main-info {
    max-width: 600px;
    padding: 30px;
    border-radius: 20px;
    margin: 40px auto;
    text-align: center;
}

.caps-fix {
    text-transform: none !important;
}

h1, .h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #fdd217;
    text-shadow: 0 2px 10px rgba(253, 210, 23, 0.3);
    margin-bottom: 10px;
}

h2, .h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #e2e8f0;
    margin-bottom: 20px;
}

h3, .h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fdd217;
    margin-bottom: 15px;
}

p {
    color: #cbd5e1;
    font-size: 1rem;
}

/* Buttons */
.btn-sprint, .submitPoints, .btnmain, .about-btn {
    background: linear-gradient(135deg, #fdd217 0%, #d97706 100%);
    color: #0f172a;
    border: none;
    border-radius: 12px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn-sprint:hover, .submitPoints:hover, .btnmain:hover, .about-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
    background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
    color: #000;
}

.btn-sprint:active, .submitPoints:active {
    transform: translateY(0);
}

.btntsandcs {
    min-width: 150px;
    font-size: 0.9rem !important;
    padding: 10px 20px !important;
}

.adjust-width {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Modal Styling */
.modal-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(253, 210, 23, 0.3);
    border-radius: 24px;
    color: #f8fafc;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
}

.modal-header h3 {
    color: #fdd217;
    margin: 0;
}

.modal-body {
    padding: 30px;
}

.modal-body ul {
    text-align: left;
    list-style-type: none;
    padding-left: 0;
}

.modal-body li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    color: #e2e8f0;
}

.modal-body li::before {
    content: "•";
    color: #fdd217;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5em;
    top: -4px;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

/* Table Styling */
.scrollit {
    max-width: 800px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin: 0;
}

th {
    color: #fdd217;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 20px;
    text-align: left;
    font-size: 0.9rem;
    background: transparent;
}

td {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    font-size: 1rem;
}

td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

/* Countdown Styling */
.game-info {
    max-width: 600px;
    margin: 20px auto;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.game-info ul {
    padding: 0;
    margin: 15px 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.game-info li {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-info li span {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fdd217;
    line-height: 1;
    margin-bottom: 5px;
}

.game-info li {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

/* Input Fields */
input[type="text"] {
    width: 100%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    height: 50px;
    color: #fff;
    padding: 0 20px;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

input[type="text"]:focus {
    outline: none;
    border-color: #fdd217;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(253, 210, 23, 0.2);
}

#loginErrorMessage {
    color: #ef4444;
    margin-top: 15px;
    font-weight: 500;
}

.reward-icon {
    width: 24px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Preloader */
#preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    z-index: 100;
}

.textCon {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fdd217;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    z-index: 101;
    width: 100%;
    text-shadow: 0 0 20px rgba(253, 210, 23, 0.4);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.98); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
}

.hidden-loader {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Responsive fixes */
@media (max-width: 768px) {
    h1, .h1 {
        font-size: 2.5rem;
    }
    
    .game-info ul {
        gap: 10px;
    }
    
    .game-info li {
        min-width: 60px;
        padding: 10px;
    }
    
    .game-info li span {
        font-size: 1.5rem;
    }
    
    .main-sprint-info, .main-info, .scrollit {
        width: 95%;
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-sprint-info, .main-info, .scrollit, .game-info {
    animation: fadeIn 0.6s ease-out forwards;
}

