* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: 
        linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%),
        url('images/bg.png') center/cover no-repeat fixed;
    min-height: 100vh;
    color: #e0e0e0;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 140, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

/* Floating particles effect */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 165, 0, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 140, 0, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 165, 0, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 140, 0, 0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 165, 0, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-100px) translateX(100px); }
    66% { transform: translateY(-200px) translateX(-100px); }
    100% { transform: translateY(-300px) translateX(0px); }
}

.header {
    text-align: center;
    margin-bottom: 50px;
    color: #ffa500;
    position: relative;
    padding: 30px 0;
}

.main-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(255, 165, 0, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

.header::before {
    display: none;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 50%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.8)); }
}

.tagline {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 400;
    color: #e0e0e0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Navigation Styles */
.main-nav {
    margin-bottom: 30px;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(45, 45, 45, 0.8);
    border: 2px solid rgba(255, 165, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-links a:hover {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.2);
}

.nav-links a.active {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    color: #1a1a1a;
    border-color: #ffa500;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
}

.nav-links a.user-info {
    background: rgba(255, 165, 0, 0.15);
    border-color: rgba(255, 165, 0, 0.4);
    color: #ffa500;
    font-weight: 600;
}

.nav-links a.user-info:hover {
    background: rgba(255, 165, 0, 0.25);
    border-color: rgba(255, 165, 0, 0.6);
}

/* Welcome Screen */
.welcome-card {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255, 165, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    animation: cardEntrance 0.8s ease-out;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 165, 0, 0.05), transparent);
    animation: shimmer 3s linear infinite;
}

@keyframes cardEntrance {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.welcome-card h2 {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.welcome-card p {
    margin-bottom: 35px;
    line-height: 1.7;
    color: #d0d0d0;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.player-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-form input {
    padding: 18px 20px;
    border: 2px solid rgba(85, 85, 85, 0.8);
    border-radius: 15px;
    font-size: 1.1rem;
    background: rgba(26, 26, 26, 0.8);
    color: #e0e0e0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.player-form input:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 
        0 0 0 3px rgba(255, 165, 0, 0.2),
        0 8px 25px rgba(255, 165, 0, 0.15);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    padding: 18px 35px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 50%, #ff7f00 100%);
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 165, 0, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(45, 45, 45, 0.9);
    color: #ffa500;
    border: 2px solid #ffa500;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: #ffa500;
    color: #1a1a1a;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 165, 0, 0.3);
}

/* Countdown Screen */
.countdown-container {
    text-align: center;
    color: #e0e0e0;
    padding: 60px 40px;
    background: rgba(45, 45, 45, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    max-width: 500px;
    margin: 0 auto;
}

.countdown-container h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.countdown {
    font-size: 10rem;
    font-weight: 700;
    margin: 50px 0;
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 50%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: countdownPulse 1s infinite;
    filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.6));
}

@keyframes countdownPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.6));
    }
    50% { 
        transform: scale(1.15);
        filter: drop-shadow(0 0 30px rgba(255, 165, 0, 0.8));
    }
}

/* Game Screen */
.game-container {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255, 165, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: gameEntrance 0.8s ease-out;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffa500, #ff8c00, #ffa500);
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

@keyframes gameEntrance {
    from { 
        opacity: 0; 
        transform: scale(0.95) translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding: 20px 25px;
    background: rgba(26, 26, 26, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(255, 165, 0, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.player-info {
    font-weight: 600;
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
}

.timer, .score {
    font-weight: 600;
    font-size: 1.2rem;
    color: #e0e0e0;
    padding: 8px 15px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.3);
    backdrop-filter: blur(5px);
}

.target-word-container {
    text-align: center;
    margin-bottom: 30px;
}

.target-word-container h3 {
    color: #ccc;
    margin-bottom: 15px;
}

.target-word {
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 50%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 25px 30px;
    background-color: rgba(26, 26, 26, 0.9);
    border: 2px solid rgba(255, 165, 0, 0.4);
    border-radius: 20px;
    display: inline-block;
    min-width: 250px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: wordPulse 2s ease-in-out infinite;
}

@keyframes wordPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 15px 35px rgba(0,0,0,0.3), 0 0 0 0 rgba(255, 165, 0, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 8px rgba(255, 165, 0, 0.1);
    }
}

.input-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.input-container input {
    flex: 1;
    padding: 18px 20px;
    border: 2px solid rgba(85, 85, 85, 0.8);
    border-radius: 15px;
    font-size: 1.1rem;
    background: rgba(26, 26, 26, 0.9);
    color: #e0e0e0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.input-container input:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 
        0 0 0 3px rgba(255, 165, 0, 0.2),
        0 8px 25px rgba(255, 165, 0, 0.15),
        inset 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    background: rgba(26, 26, 26, 0.95);
}

.submitted-words h4 {
    margin-bottom: 15px;
    color: #ccc;
}

.words-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.word-tag {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 50%, #ff7f00 100%);
    color: #1a1a1a;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
    transition: all 0.3s ease;
    animation: tagSlideIn 0.5s ease-out;
}

.word-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4);
}

@keyframes tagSlideIn {
    from { 
        opacity: 0; 
        transform: translateX(-20px) scale(0.8); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0) scale(1); 
    }
}

.word-score {
    background: rgba(26,26,26,0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #1a1a1a;
}

.calculating {
    animation: pulse 1s infinite;
    color: #ffa500;
}

/* Results Screen */
.results-container {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255, 165, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    animation: resultsEntrance 1s ease-out;
}

.results-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 165, 0, 0.03), transparent);
    animation: shimmer 4s linear infinite;
}

@keyframes resultsEntrance {
    from { 
        opacity: 0; 
        transform: scale(0.9) translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.results-container h2 {
    color: #ffa500;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.final-score {
    margin-bottom: 30px;
}

.score-label {
    display: block;
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 10px;
}

.score-value {
    font-size: 4rem;
    font-weight: 700;
    color: #ffa500;
}

.game-summary {
    background: #1a1a1a;
    border: 2px solid #555;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.game-summary p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.game-summary span {
    font-weight: 600;
    color: #ffa500;
}

.share-section {
    margin-bottom: 30px;
}

.share-section p {
    margin-bottom: 15px;
    font-weight: 600;
    color: #ccc;
}

.share-section input {
    width: 100%;
    padding: 10px;
    border: 2px solid #555;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    background: #1a1a1a;
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px 10px;
    }
    
    .header::before {
        width: 80px;
        height: 80px;
    }
    
    .logo {
        font-size: 2.5rem;
        margin-top: 100px;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }
    
    .nav-links a {
        padding: 12px 16px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .admin-badge {
        font-size: 10px;
        padding: 3px 8px;
        margin-left: 6px;
    }
    
    .welcome-card, .game-container, .results-container, .countdown-container {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .game-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .target-word {
        font-size: 2.2rem;
        min-width: 200px;
        padding: 20px 25px;
    }
    
    .input-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .countdown {
        font-size: 6rem;
    }
    
    .btn {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .words-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .word-display-tag {
        padding: 10px 12px;
    }
}
/* Updated Shared Game Styles - Matching Dark Theme */
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.word-display-tag .word {
    font-weight: 500;
}

.word-display-tag .score {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-container {
    max-width: 500px;
    margin: 0 auto;
}

.error-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.error-card h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-card p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .game-details {
        grid-template-columns: 1fr;
    }
    
    .words-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .player-name-large {
        font-size: 1.4rem;
    }
    
    .final-score-large {
        font-size: 2.5rem;
    }
}
/* Sha
re Page Styles */
.shared-game-container, .error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.game-card, .error-card {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 165, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 165, 0, 0.3);
    max-width: 700px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: cardEntrance 0.8s ease-out;
}

.game-card::before, .error-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 165, 0, 0.05), transparent);
    animation: shimmer 3s linear infinite;
}

.game-card h2, .error-card h2 {
    color: #ffa500;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.player-result {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15) 0%, rgba(255, 140, 0, 0.1) 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 15px 35px rgba(255, 165, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.player-name-large {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffa500;
    margin-bottom: 10px;
}

.final-score-large {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 50%, #66bb6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 4px 8px rgba(76, 175, 80, 0.3));
    animation: scoreGlow 2s ease-in-out infinite alternate;
}

@keyframes scoreGlow {
    from { filter: drop-shadow(0 4px 8px rgba(76, 175, 80, 0.3)); }
    to { filter: drop-shadow(0 6px 12px rgba(76, 175, 80, 0.5)); }
}

.game-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    font-weight: 500;
    color: #b0b0b0;
}

.detail-item .value {
    font-weight: 600;
    color: #e0e0e0;
}

.target-word-display {
    color: #ffa500 !important;
    font-size: 1.2rem;
    font-weight: 700;
}

.submitted-words-display {
    margin-bottom: 30px;
}

.submitted-words-display h3 {
    color: #ffa500;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.word-display-tag {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15) 0%, rgba(255, 140, 0, 0.1) 100%);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.1);
}

.word-display-tag:hover {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.25) 0%, rgba(255, 140, 0, 0.2) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.2);
    border-color: rgba(255, 165, 0, 0.5);
}

.word-display-tag .word {
    font-weight: 500;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.word-display-tag .score {
    font-weight: 700;
    color: #4CAF50;
    font-size: 0.8rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-card p {
    color: #b0b0b0;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Responsive adjustments for share page */
@media (max-width: 768px) {
    .game-card, .error-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .player-name-large {
        font-size: 1.5rem;
    }
    
    .final-score-large {
        font-size: 2.5rem;
    }
    
    .words-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .action-buttons {
        flex-direction: column;
    }
}
/* Pr
ofessional Enhancement Effects */
.screen {
    position: relative;
}

.screen.active {
    animation: screenTransition 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes screenTransition {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced loading states */
.calculating {
    animation: calculatingPulse 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, #ffa500, #ff8c00, #ffa500);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes calculatingPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Enhanced focus states */
*:focus-visible {
    outline: 2px solid #ffa500;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Smooth scrolling for words list */
.words-list, .words-grid {
    scroll-behavior: smooth;
}

.words-grid {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 165, 0, 0.5) rgba(45, 45, 45, 0.3);
}

.words-grid::-webkit-scrollbar {
    width: 8px;
}

.words-grid::-webkit-scrollbar-track {
    background: rgba(45, 45, 45, 0.3);
    border-radius: 4px;
}

.words-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 165, 0, 0.5);
    border-radius: 4px;
}

.words-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 165, 0, 0.7);
}

/* Enhanced button interactions */
.btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Professional loading spinner for async operations */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 50%;
    border-top-color: #ffa500;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced game completion celebration */
.celebration-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.celebration-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffa500;
    border-radius: 50%;
    animation: celebrate 3s ease-out forwards;
}

@keyframes celebrate {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
    
    .welcome-card, .game-container, .results-container {
        border-width: 3px;
    }
}

/* Dark mode enhancements (already dark, but for consistency) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0a0a0a;
    }
}/
* Force override any remaining white backgrounds */
.shared-game-container .game-card,
.shared-game-container .error-card {
    background: rgba(45, 45, 45, 0.95) !important;
    color: #e0e0e0 !important;
}

.shared-game-container .game-card h2,
.shared-game-container .error-card h2 {
    color: #ffa500 !important;
}

.shared-game-container .detail-item {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.shared-game-container .detail-item .label {
    color: #b0b0b0 !important;
}

.shared-game-container .detail-item .value {
    color: #e0e0e0 !important;
}

.shared-game-container .submitted-words-display h3 {
    color: #ffa500 !important;
}

/* Ensure all text is properly colored */
.shared-game-container * {
    color: inherit;
}

.shared-game-container .target-word-display {
    color: #ffa500 !important;
}/*
 Loading Overlay for Score Calculation */
.score-calculation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.score-calculation-overlay.active {
    opacity: 1;
    visibility: visible;
}

.calculation-content {
    text-align: center;
    padding: 30px;
    background: rgba(45, 45, 45, 0.95);
    border-radius: 25px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.calculation-content h2 {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.calculation-content p {
    color: #d0d0d0;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.calculation-progress {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
    flex-shrink: 1;
}

/* Custom scrollbar for progress area */
.calculation-progress::-webkit-scrollbar {
    width: 8px;
}

.calculation-progress::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.3);
    border-radius: 4px;
}

.calculation-progress::-webkit-scrollbar-thumb {
    background: rgba(255, 165, 0, 0.5);
    border-radius: 4px;
}

.calculation-progress::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 165, 0, 0.7);
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(26, 26, 26, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.2);
    min-height: 44px;
    flex-shrink: 0;
}

.progress-word {
    font-weight: 500;
    color: #e0e0e0;
}

.progress-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 50%;
    border-top-color: #ffa500;
    animation: spin 1s linear infinite;
}

.progress-score {
    font-weight: 600;
    color: #4CAF50;
    min-width: 30px;
    text-align: right;
}

.progress-complete {
    color: #4CAF50;
    font-weight: 600;
}

.calculation-summary {
    padding: 16px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 165, 0, 0.3);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.summary-text {
    color: #ffa500;
    font-weight: 600;
    font-size: 1.1rem;
}

.finalize-button {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.finalize-button.ready {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .calculation-content {
        padding: 20px 15px;
        margin: 10px;
        max-height: 90vh;
        width: calc(100% - 20px);
    }
    
    .calculation-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .calculation-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .calculation-progress {
        max-height: 40vh;
        gap: 8px;
    }
    
    .progress-item {
        padding: 8px 12px;
        min-height: 40px;
    }
    
    .progress-word {
        font-size: 0.9rem;
    }
    
    .calculation-summary {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .summary-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .calculation-content {
        padding: 15px 10px;
        margin: 5px;
        max-height: 95vh;
    }
    
    .calculation-content h2 {
        font-size: 1.6rem;
    }
    
    .calculation-progress {
        max-height: 35vh;
    }
    
    .progress-item {
        padding: 6px 10px;
        min-height: 36px;
    }
    
    .progress-word {
        font-size: 0.85rem;
    }
    
    .progress-status {
        gap: 6px;
    }
    
    .progress-spinner {
        width: 14px;
        height: 14px;
    }
}
/* Old auth styles removed - using clean version at end of file */

/* Old navigation styles removed - using clean version at end of file */

/* Leaderboards Styles */
.leaderboards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.leaderboards-container h1 {
    text-align: center;
    color: #ffa500;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-prompt {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.login-prompt p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.login-prompt a {
    color: #ffa500;
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.leaderboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border-color: rgba(255, 165, 0, 0.4);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: #ffa500;
    margin-bottom: 10px;
}

.section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.word-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.word-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.2);
    border-color: rgba(255, 165, 0, 0.4);
}

.word-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffa500;
    margin-bottom: 15px;
    text-align: center;
}

.word-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.stat-value {
    color: white;
    font-weight: 600;
}

.word-card-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    background: rgba(255, 255, 255, 0.15);
}

.leaderboard-entry.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.4);
}

.leaderboard-entry.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(169, 169, 169, 0.1));
    border-color: rgba(192, 192, 192, 0.4);
}

.leaderboard-entry.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(184, 115, 51, 0.1));
    border-color: rgba(205, 127, 50, 0.4);
}

.rank {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffa500;
    min-width: 40px;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.player-details {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.target-word {
    color: #ffa500;
    font-weight: 500;
}

.score {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffa500;
}

.loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px;
    font-size: 1.1rem;
}

.no-data {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px;
    font-style: italic;
}

.error {
    text-align: center;
    color: #ff6b6b;
    padding: 40px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #ffa500;
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffa500;
}

.modal-body {
    padding: 20px 30px 30px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .leaderboards-container {
        padding: 0 15px;
    }

    .words-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 200px;
        text-align: center;
    }

    .leaderboard-entry {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .player-details {
        justify-content: center;
        flex-wrap: wrap;
    }

    .modal-content {
        margin: 10px;
        max-height: 90vh;
    }

    .modal-header,
    .modal-body {
        padding: 15px 20px;
    }
}/* Guest N
otice Styles */
.guest-notice {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 10px;
    padding: 12px 20px;
    margin-top: 15px;
    text-align: center;
}

.guest-notice p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.guest-notice a {
    color: #ffa500;
    text-decoration: none;
    font-weight: 600;
}

.guest-notice a:hover {
    text-decoration: underline;
}

/* Leaderboard Status in Results */
.leaderboard-status {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.leaderboard-status.guest {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.leaderboard-status p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.leaderboard-status.guest p {
    color: rgba(255, 193, 7, 0.9);
}

.leaderboard-status a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 600;
}

.leaderboard-status.guest a {
    color: #ffc107;
}

.leaderboard-status a:hover {
    text-decoration: underline;
}/* 
Profile Page Styles */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.profile-container h1 {
    text-align: center;
    color: #ffa500;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.profile-info h2 {
    color: #ffa500;
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.username {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.2);
    border-color: rgba(255, 165, 0, 0.4);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffa500;
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

.leaderboard-positions h3 {
    color: #ffa500;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.positions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.position-entry {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.position-entry:hover {
    background: rgba(255, 255, 255, 0.15);
}

.position-entry.top-three {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.4);
}

.position-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffa500;
    min-width: 50px;
}

.position-info {
    flex: 1;
}

.word-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.position-details {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.crown {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.no-positions,
.no-stats {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

.no-positions h3,
.no-stats h3 {
    color: #ffa500;
    margin-bottom: 15px;
}

.no-positions p,
.no-stats p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
    .profile-header {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .position-entry {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .position-details {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}/* R
esponsive Design for Navigation and Header */
@media (max-width: 768px) {
    .main-nav {
        margin: 10px auto 20px auto;
        padding: 12px 20px;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }

    .main-logo {
        width: 150px;
        height: 150px;
    }

    .header {
        padding: 20px 0;
        margin-bottom: 30px;
    }

    .tagline {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-nav {
        margin: 10px 10px 20px 10px;
        padding: 10px 15px;
    }

    .nav-links {
        gap: 10px;
        font-size: 0.8rem;
    }

    .nav-links a,
    .user-info {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .main-logo {
        width: 120px;
        height: 120px;
    }

    .header {
        padding: 15px 0;
        margin-bottom: 20px;
    }

    .tagline {
        font-size: 0.9rem;
        padding: 0 20px;
    }

    .guest-notice {
        margin: 15px 10px 0 10px;
        padding: 10px 15px;
    }

    .guest-notice p {
        font-size: 0.8rem;
    }
}/* Auth
entication Styles */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

/* Old auth-card removed - using clean version at end of file */

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(255, 165, 0, 0.3));
}

.logo-section h1 {
    color: #ffa500;
    margin: 0 0 10px 0;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-section p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #ffa500;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Old form input styles removed - using clean version at end of file */

.form-group input:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-btn {
    padding: 14px 20px;
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-links p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.auth-links a {
    color: #ffa500;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #ffb347;
    text-decoration: underline;
}

/* Logged-in Welcome Styles */
.logged-in-welcome {
    text-align: center;
}

.user-greeting {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.user-greeting h3 {
    color: #ffa500;
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.user-greeting p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

/* Leaderboard Action Buttons */
.leaderboard-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-leaderboard {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-leaderboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

/* Enhanced Leaderboard Status */
.leaderboard-status {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}

.leaderboard-status p {
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 500;
}/* Mat
ch History Styles */
.match-history {
    margin-top: 40px;
}

.match-history h3 {
    color: #ffa500;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-entry {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.match-entry:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-word {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffa500;
}

.match-details {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    align-items: center;
}

.match-score {
    color: white;
    font-weight: 600;
}

.match-rank {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.match-status {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive Match History */
@media (max-width: 768px) {
    .match-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .match-details {
        flex-wrap: wrap;
        gap: 10px;
    }
}/* Cele
bration Animation */
@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced User Info Link */
.user-info {
    color: #ffa500 !important;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(255, 165, 0, 0.2);
    transform: translateY(-1px);
}

.user-info.active {
    background: rgba(255, 165, 0, 0.3);
    border: 1px solid rgba(255, 165, 0, 0.4);
}/* 
Authentication Pages Styling */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.logo-section h1 {
    color: #ffa500;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.logo-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #ffa500;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ffa500;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-btn {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #ff8c00, #ff7700);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-links p {
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0;
    font-size: 0.9rem;
}

.auth-links a {
    color: #ffa500;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #ff8c00;
    text-decoration: underline;
}

.error-message {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.success-message {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #4caf50;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.success-message a {
    color: #4caf50;
    font-weight: 600;
    text-decoration: underline;
}

/* Responsive Auth Pages */
@media (max-width: 768px) {
    .auth-container {
        padding: 10px;
        min-height: calc(100vh - 100px);
    }
    
    .auth-card {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .logo-section h1 {
        font-size: 1.8rem;
    }
    
    .auth-logo {
        width: 60px;
        height: 60px;
    }
}/* Wor
d validation and error styles */
.rejected-word {
    background: rgba(255, 107, 107, 0.1) !important;
    border-color: rgba(255, 107, 107, 0.3) !important;
    opacity: 0.7;
}

.rejected-word .word-score .rejected {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.1em;
}

/* Error message animations */
@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
}

/* Enhanced word tag styles for validation states */
.word-tag .calculating {
    color: #ffa500;
    animation: pulse 1.5s infinite;
}

.word-tag .word-score .rejected {
    color: #ff6b6b;
    font-weight: bold;
}

/* Pulse animation for calculating state */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Enhanced confetti animation for celebrations */
@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Score boost animation */
@keyframes scoreBoost {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #4caf50; }
    100% { transform: scale(1); }
}
/* Le
aderboards Page Styles */
.leaderboards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.leaderboards-container h1 {
    text-align: center;
    color: #ffa500;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.login-prompt {
    text-align: center;
    background: rgba(45, 45, 45, 0.9);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.login-prompt p {
    color: #d0d0d0;
    margin-bottom: 10px;
}

.login-prompt a {
    color: #ffa500;
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    background: rgba(45, 45, 45, 0.9);
    color: #d0d0d0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.5);
    color: #ffa500;
}

.tab-btn.active {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    color: #1a1a1a;
    border-color: #ffa500;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 25px;
}

.section-header h2 {
    color: #ffa500;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.section-header p {
    color: #b0b0b0;
    font-size: 1rem;
}

.loading {
    text-align: center;
    color: #ffa500;
    font-size: 1.1rem;
    padding: 40px;
    animation: pulse 1.5s infinite;
}

.words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(26, 26, 26, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.words-grid::-webkit-scrollbar {
    width: 10px;
}

.words-grid::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
    border-radius: 5px;
}

.words-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 165, 0, 0.5);
    border-radius: 5px;
}

.words-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 165, 0, 0.7);
}

.word-card {
    background: rgba(45, 45, 45, 0.9);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.word-card:hover {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 165, 0, 0.2);
}

.word-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffa500;
    margin-bottom: 15px;
    text-align: center;
}

.word-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.stat-value {
    color: #e0e0e0;
    font-weight: 600;
}

.word-card-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 165, 0, 0.2);
    color: #888;
    font-size: 0.85rem;
}

.leaderboard-list {
    max-height: 600px;
    overflow-y: auto;
    background: rgba(26, 26, 26, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(255, 165, 0, 0.2);
    padding: 20px;
}

.leaderboard-list::-webkit-scrollbar {
    width: 10px;
}

.leaderboard-list::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
    border-radius: 5px;
}

.leaderboard-list::-webkit-scrollbar-thumb {
    background: rgba(255, 165, 0, 0.5);
    border-radius: 5px;
}

.leaderboard-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 165, 0, 0.7);
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: rgba(45, 45, 45, 0.6);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 165, 0, 0.2);
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.4);
}

.leaderboard-entry.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.1) 100%);
    border-color: #ffd700;
}

.leaderboard-entry.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(169, 169, 169, 0.1) 100%);
    border-color: #c0c0c0;
}

.leaderboard-entry.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, rgba(184, 115, 51, 0.1) 100%);
    border-color: #cd7f32;
}

.rank {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffa500;
    min-width: 40px;
}

.rank-1 .rank {
    color: #ffd700;
}

.rank-2 .rank {
    color: #c0c0c0;
}

.rank-3 .rank {
    color: #cd7f32;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.player-details {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.target-word {
    color: #ffa500;
    font-weight: 500;
}

.score {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4CAF50;
    min-width: 60px;
    text-align: right;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.no-data h3 {
    color: #ffa500;
    margin-bottom: 15px;
}

.error {
    text-align: center;
    padding: 40px 20px;
    color: #ff6b6b;
}

.error h3 {
    margin-bottom: 15px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(45, 45, 45, 0.95);
    margin: 5% auto;
    padding: 0;
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 165, 0, 0.2);
    background: rgba(26, 26, 26, 0.5);
}

.modal-header h3 {
    color: #ffa500;
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #ffa500;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 165, 0, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Navigation Styles */
.main-nav {
    background: rgba(45, 45, 45, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 15px;
    padding: 15px 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #d0d0d0;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #ffa500;
    background: rgba(255, 165, 0, 0.1);
}

.nav-links a.active {
    color: #1a1a1a;
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    font-weight: 600;
}

.user-info {
    color: #ffa500 !important;
    font-weight: 600 !important;
}

/* Responsive Design for Leaderboards */
@media (max-width: 768px) {
    .words-grid {
        grid-template-columns: 1fr;
        max-height: 500px;
        padding: 15px;
    }
    
    .word-card {
        padding: 15px;
    }
    
    .leaderboard-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 200px;
    }
    
    .leaderboard-entry {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .player-details {
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .nav-links {
        justify-content: center;
        gap: 15px;
    }
    
    .nav-links a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}
/* ===== C
LEAN AUTH STYLES - MATCHING SITE THEME ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 25px;
    padding: 50px;
    width: 100%;
    max-width: 450px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255, 165, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: cardEntrance 0.8s ease-out;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 165, 0, 0.05), transparent);
    animation: shimmer 3s linear infinite;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.auth-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 16px rgba(255, 165, 0, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-section h1 {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 50%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 15px 0;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: none;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.logo-section p {
    color: #d0d0d0;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #ffa500;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.form-group input {
    padding: 18px 20px;
    border: 2px solid rgba(85, 85, 85, 0.8);
    border-radius: 15px;
    font-size: 1.1rem;
    background: rgba(26, 26, 26, 0.8);
    color: #e0e0e0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 
        0 0 0 3px rgba(255, 165, 0, 0.2),
        0 8px 25px rgba(255, 165, 0, 0.15);
    transform: translateY(-2px);
    background: rgba(26, 26, 26, 0.95);
}

.form-group input::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

.auth-btn {
    padding: 18px 35px;
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 50%, #ff7f00 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 165, 0, 0.4);
    filter: brightness(1.1);
}

.auth-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.auth-links p {
    margin: 10px 0;
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.6;
}

.auth-links a {
    color: #ffa500;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.auth-links a:hover {
    color: #ffb347;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.5);
}

.error-message {
    background: rgba(231, 76, 60, 0.15);
    border: 2px solid rgba(231, 76, 60, 0.3);
    color: #ff6b6b;
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.1);
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 1;
}

.success-message {
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.1);
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 1;
}

.success-message a {
    color: #66bb6a;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 187, 106, 0.3);
    transition: all 0.3s ease;
}

.success-message a:hover {
    color: #81c784;
    border-bottom-color: rgba(129, 199, 132, 0.6);
}

/* Navigation for auth pages */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 30px;
    background: rgba(45, 45, 45, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 165, 0, 0.2);
    border-radius: 20px;
    margin: 20px auto 30px auto;
    max-width: 800px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: #d0d0d0;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1a1a1a;
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.3);
}

/* Responsive auth pages */
@media (max-width: 768px) {
    .auth-container {
        padding: 15px;
        min-height: calc(100vh - 100px);
    }
    
    .auth-card {
        padding: 35px 25px;
        border-radius: 20px;
        max-width: 100%;
    }
    
    .logo-section h1 {
        font-size: 1.8rem;
    }
    
    .logo-section p {
        font-size: 1rem;
    }
    
    .auth-logo {
        width: 80px;
        height: 80px;
    }
    
    .form-group input {
        padding: 16px 18px;
        font-size: 1rem;
    }
    
    .auth-btn {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .main-nav {
        padding: 12px 20px;
        margin: 15px 10px 25px 10px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 25px 20px;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}/* Ens
ure consistent body background for auth pages */
body.auth-page {
    background: 
        linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%),
        url('images/bg.png') center/cover no-repeat fixed;
}

/* Additional shimmer effect for auth cards */
@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Additional logo float animation */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Additional title glow animation */
@keyframes titleGlow {
    from { filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.8)); }
}

/* Additional slide down animation for messages */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}/* ===== SL
EEK FOOTER STYLES ===== */
.site-footer {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(45, 45, 45, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(255, 165, 0, 0.3);
    margin-top: 60px;
    padding: 40px 0 30px 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 165, 0, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 140, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-brand {
    margin-bottom: 25px;
}

.footer-brand h3 {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 50%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: none;
    animation: subtleGlow 3s ease-in-out infinite alternate;
}

@keyframes subtleGlow {
    from { filter: drop-shadow(0 0 5px rgba(255, 165, 0, 0.3)); }
    to { filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.5)); }
}

.footer-tagline {
    color: #d0d0d0;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0.9;
}

.developer-credit {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.1);
    transition: all 0.3s ease;
}

.developer-credit:hover {
    background: rgba(255, 165, 0, 0.15);
    border-color: rgba(255, 165, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 165, 0, 0.15);
}

.developer-credit p {
    color: #ffa500;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.development-notice {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    animation: pulseWarning 4s ease-in-out infinite;
}

@keyframes pulseWarning {
    0%, 100% { 
        background: rgba(231, 76, 60, 0.1);
        border-color: rgba(231, 76, 60, 0.2);
    }
    50% { 
        background: rgba(231, 76, 60, 0.15);
        border-color: rgba(231, 76, 60, 0.3);
    }
}

.development-notice p {
    color: #ff6b6b;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.development-notice .warning-icon {
    font-size: 1.1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d0d0d0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.1), transparent);
    transition: left 0.5s;
}

.footer-links a:hover::before {
    left: 100%;
}

.footer-links a:hover {
    color: #ffa500;
    background: rgba(255, 165, 0, 0.1);
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.3);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.copyright p {
    margin: 5px 0;
}

.copyright .year {
    color: #ffa500;
    font-weight: 600;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        margin-top: 40px;
        padding: 30px 0 25px 0;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-brand h3 {
        font-size: 1.5rem;
    }
    
    .footer-tagline {
        font-size: 0.9rem;
    }
    
    .developer-credit {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .developer-credit p {
        font-size: 1rem;
    }
    
    .development-notice {
        padding: 12px 15px;
        margin-bottom: 20px;
    }
    
    .development-notice p {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-links {
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .footer-links a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .copyright {
        font-size: 0.8rem;
        padding-top: 15px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .footer-links a {
        display: inline-block;
        min-width: 120px;
        text-align: center;
    }
    
    .development-notice p {
        font-size: 0.8rem;
    }
}/* ===
== NEW SLEEK MINIMAL FOOTER ===== */
.site-footer-new {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 165, 0, 0.2);
    margin-top: 50px;
    padding: 25px 0;
    position: relative;
}

.footer-content-new {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left-new {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand-new {
    color: #ffa500;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-brand-new:hover {
    color: #ffb347;
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.4);
}

.developer-credit-new {
    color: #b0b0b0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.developer-credit-new .studio-name {
    color: #ffa500;
    font-weight: 500;
}

.footer-right-new {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links-new {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links-new a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 5px 0;
    border-bottom: 1px solid transparent;
}

.footer-links-new a:hover {
    color: #ffa500;
    border-bottom-color: rgba(255, 165, 0, 0.3);
}

.copyright-new {
    color: #888;
    font-size: 0.8rem;
    white-space: nowrap;
}

.copyright-new .year {
    color: #ffa500;
}

/* Development notice - minimal */
.dev-notice-new {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 15px;
    text-align: center;
}

.dev-notice-new p {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content-new {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-left-new,
    .footer-right-new {
        justify-content: center;
    }
    
    .footer-links-new {
        gap: 15px;
    }
    
    .copyright-new {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .footer-left-new {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links-new {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .footer-right-new {
        flex-direction: column;
        gap: 15px;
    }
}/* ==
=== LEGAL PAGES STYLES ===== */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.legal-card {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255, 165, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.legal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 165, 0, 0.03), transparent);
    animation: shimmer 4s linear infinite;
}

.legal-card h1 {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 50%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.last-updated {
    text-align: center;
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.legal-content {
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.legal-content section {
    margin-bottom: 35px;
}

.legal-content h2 {
    color: #ffa500;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 165, 0, 0.3);
}

.legal-content h3 {
    color: #ffb347;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

.legal-content p {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.legal-content ul {
    color: #d0d0d0;
    margin: 15px 0;
    padding-left: 25px;
}

.legal-content li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.legal-content a {
    color: #ffa500;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: #ffb347;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.4);
}

.legal-content strong {
    color: #ffa500;
    font-weight: 600;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-container {
        padding: 15px;
    }
    
    .legal-card {
        padding: 30px 25px;
        border-radius: 15px;
    }
    
    .legal-card h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.2rem;
    }
    
    .legal-content h3 {
        font-size: 1rem;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .legal-card {
        padding: 25px 20px;
    }
    
    .legal-card h1 {
        font-size: 1.8rem;
    }
    
    .legal-content {
        font-size: 0.85rem;
    }
}/* 
Admin Badge Styles */
.admin-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #ffffff !important;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.4);
    animation: adminGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    white-space: nowrap;
}

@keyframes adminGlow {
    from {
        box-shadow: 0 2px 4px rgba(238, 90, 36, 0.3);
    }
    to {
        box-shadow: 0 2px 8px rgba(238, 90, 36, 0.6);
    }
}

/* Site Message Styles */
.site-message {
    background: rgba(0, 0, 0, 0.8);
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.site-message-info {
    border-left-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.site-message-warning {
    border-left-color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.site-message-success {
    border-left-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.site-message-error {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.message-icon {
    font-size: 18px;
}

/* Update navigation to show admin badge */
.nav-links .user-info {
    display: flex;
    align-items: center;
}

/* Leaderboard admin badges */
.leaderboard-entry .player-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.leaderboard-entry .admin-badge {
    background: linear-gradient(135deg, #ff4757, #c44569) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 800 !important;
    font-size: 9px !important;
}

/* Profile admin badge */
.profile-header .user-name {
    display: flex;
    align-items: center;
    gap: 10px;
}