/* Velthara's Dominion Styles */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: #151520;
    --text-primary: #ffffff;
    --text-secondary: #8888aa;
    --accent-primary: #00ffaa;
    --accent-secondary: #ff00aa;
    --xp-color: #4ade80;
    --danger: #ff4466;

    /* Rarity Colors */
    --common: #b8b8b8;
    --rare: #4da6ff;
    --epic: #a855f7;
    --legendary: #fbbf24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    user-select: none;
}

body {
    background: var(--bg-dark);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#game-canvas {
    display: block;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0f 100%);
}

/* Menu Overlays */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a0008 0%, #1a0010 50%, #0a0008 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    overflow: hidden;
}

/* Blood drip animation container */
.menu-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Blood drips - multiple positioned across the top */
        radial-gradient(ellipse 8px 120px at 5% 0%, #8b0000 0%, transparent 100%),
        radial-gradient(ellipse 6px 180px at 12% 0%, #660000 0%, transparent 100%),
        radial-gradient(ellipse 10px 250px at 20% 0%, #8b0000 0%, transparent 100%),
        radial-gradient(ellipse 5px 100px at 28% 0%, #550000 0%, transparent 100%),
        radial-gradient(ellipse 12px 300px at 35% 0%, #8b0000 0%, transparent 100%),
        radial-gradient(ellipse 7px 150px at 45% 0%, #660000 0%, transparent 100%),
        radial-gradient(ellipse 9px 200px at 55% 0%, #8b0000 0%, transparent 100%),
        radial-gradient(ellipse 6px 130px at 62% 0%, #550000 0%, transparent 100%),
        radial-gradient(ellipse 11px 280px at 70% 0%, #8b0000 0%, transparent 100%),
        radial-gradient(ellipse 8px 160px at 78% 0%, #660000 0%, transparent 100%),
        radial-gradient(ellipse 10px 220px at 88% 0%, #8b0000 0%, transparent 100%),
        radial-gradient(ellipse 7px 140px at 95% 0%, #550000 0%, transparent 100%);
    animation: bloodDrip 8s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.8;
}

/* Second layer of drips with offset timing */
.menu-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 7px 170px at 8% 0%, #990000 0%, transparent 100%),
        radial-gradient(ellipse 9px 230px at 18% 0%, #770000 0%, transparent 100%),
        radial-gradient(ellipse 6px 110px at 25% 0%, #880000 0%, transparent 100%),
        radial-gradient(ellipse 11px 290px at 38% 0%, #990000 0%, transparent 100%),
        radial-gradient(ellipse 8px 180px at 50% 0%, #770000 0%, transparent 100%),
        radial-gradient(ellipse 10px 240px at 60% 0%, #880000 0%, transparent 100%),
        radial-gradient(ellipse 7px 150px at 72% 0%, #990000 0%, transparent 100%),
        radial-gradient(ellipse 9px 200px at 82% 0%, #770000 0%, transparent 100%),
        radial-gradient(ellipse 6px 120px at 92% 0%, #880000 0%, transparent 100%);
    animation: bloodDrip 8s ease-in-out infinite 4s;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes bloodDrip {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.menu-overlay.hidden {
    display: none;
}

.menu-content {
    text-align: center;
    padding: 3rem;
    position: relative;
    z-index: 10;
}

.game-title {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(0, 255, 170, 0.5), 0 2px 10px rgba(0,0,0,0.8);
}

.game-title span {
    color: var(--accent-primary);
    text-shadow: 0 0 30px rgba(0, 255, 170, 0.8), 0 2px 10px rgba(0,0,0,0.8);
}

.game-subtitle {
    color: #cccccc;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.alpha-tag {
    color: #ff9800;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(255, 152, 0, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 152, 0, 0.4);
    margin-bottom: 1.5rem;
    display: inline-block;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    animation: pulse-alpha 2s infinite;
}

@keyframes pulse-alpha {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.game-version {
    color: #666;
    font-size: 0.75rem;
    margin-top: 1rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.menu-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 1rem auto;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.menu-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #00cc88 100%);
    color: #000;
}

.menu-btn.primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.5);
}

.menu-btn.secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
}

.menu-btn.secondary:hover {
    border-color: var(--accent-primary);
}

.controls-info {
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.controls-info p {
    margin: 0.5rem 0;
}

/* Class Selection */
.class-selection {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem 0;
}

.class-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.2rem;
    width: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.class-card:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px currentColor;
}

/* Game HUD */
#game-hud {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 50;
}

#game-hud.hidden {
    display: none;
}

.hud-top {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    align-items: center;
    pointer-events: auto;
}

.timer-display {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
}

.wave-display {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.wave-display span {
    color: var(--danger);
    font-weight: 700;
}

.hud-bottom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.xp-bar-container {
    width: 300px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--xp-color);
}

.xp-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--xp-color) 0%, #22c55e 100%);
    transition: width 0.3s ease;
}

#level-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    color: white;
    text-shadow: 0 0 5px black;
}

.stats-display {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Level Up Menu */
#levelup-menu {
    background: rgba(10, 10, 20, 0.98) !important;
}

.levelup-content {
    text-align: center;
    padding: 2rem;
    background: rgba(20, 20, 35, 0.95);
    border-radius: 20px;
    border: 2px solid rgba(74, 222, 128, 0.3);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.levelup-content h2 {
    font-size: 2.5rem;
    color: var(--xp-color);
    margin-bottom: 0.5rem;
    animation: pulse 1s infinite;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.choose-text {
    color: #cccccc;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.upgrade-choices {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.upgrade-card {
    background: rgba(30, 30, 50, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    width: 220px;
    cursor: pointer;
    transition: all 0.2s;
    border: 3px solid transparent;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.upgrade-card:hover {
    transform: translateY(-5px);
}

.upgrade-card.common {
    border-color: var(--common);
}

.upgrade-card.rare {
    border-color: var(--rare);
}

.upgrade-card.epic {
    border-color: var(--epic);
}

.upgrade-card.legendary {
    border-color: var(--legendary);
}

.upgrade-card.common:hover {
    box-shadow: 0 0 20px var(--common);
}

.upgrade-card.rare:hover {
    box-shadow: 0 0 20px var(--rare);
}

.upgrade-card.epic:hover {
    box-shadow: 0 0 20px var(--epic);
}

.upgrade-card.legendary:hover {
    box-shadow: 0 0 20px var(--legendary);
}

.upgrade-rarity {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.common .upgrade-rarity {
    color: var(--common);
}

.rare .upgrade-rarity {
    color: var(--rare);
}

.epic .upgrade-rarity {
    color: var(--epic);
}

.legendary .upgrade-rarity {
    color: var(--legendary);
}

.upgrade-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.upgrade-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.upgrade-desc {
    font-size: 0.85rem;
    color: #bbbbcc;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Game Over */
.gameover h1 {
    font-size: 3rem;
    color: var(--danger);
    margin-bottom: 1.5rem;
}

.final-stats {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem 3rem;
    margin-bottom: 2rem;
}

.final-stats p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.final-stats span {
    color: var(--text-primary);
    font-weight: 700;
}

/* ==================== MOBILE UI - Clean Modern Design ==================== */
@media (max-width: 768px) {
    .game-title {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .game-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* HUD - Clean Minimal */
    #game-hud {
        padding: 0.5rem;
    }

    .hud-top {
        top: 10px;
        padding: 0.5rem;
        gap: 0.75rem;
        pointer-events: auto;
    }

    #hud-pause-btn {
        font-size: 2.2rem !important;
        padding: 0.8rem 1rem;
        background: rgba(0, 0, 0, 0.7) !important;
        border-radius: 14px;
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
        pointer-events: auto !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-width: 50px;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1000;
    }
    
    #hud-pause-btn:active {
        background: rgba(0, 255, 170, 0.3) !important;
        transform: scale(0.95);
    }

    .timer-display {
        font-size: 1.1rem;
        padding: 0.4rem 1rem;
        border-radius: 20px;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 255, 170, 0.3);
    }

    .wave-display {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        border-radius: 16px;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(10px);
    }

    /* Bottom HUD */
    .hud-bottom {
        bottom: 15px;
    }

    .xp-bar-container {
        width: 85vw;
        max-width: 320px;
        height: 20px;
        border-radius: 10px;
        border-width: 1px;
    }

    #level-display {
        font-size: 0.85rem;
    }

    .stats-display {
        font-size: 0.95rem;
    }

    /* Menu Content - Modern Card */
    .menu-content {
        padding: 1.75rem;
        width: 92%;
        max-width: 400px;
        background: rgba(15, 15, 25, 0.95);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
    }

    .menu-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        border-radius: 14px;
        margin: 0.6rem auto;
    }

    .menu-btn.primary {
        box-shadow: 0 4px 20px rgba(0, 255, 170, 0.25);
    }

    .controls-info {
        margin-top: 1.5rem;
        font-size: 0.8rem;
        opacity: 0.7;
    }

    .controls-info p {
        margin: 0.3rem 0;
    }

    /* Level Up Menu - Clean Cards */
    .levelup-content {
        padding: 1.5rem;
        background: rgba(15, 15, 25, 0.98);
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        max-width: 95vw;
        margin: 0 auto;
    }

    .levelup-content h2 {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }

    .choose-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        opacity: 0.7;
    }

    .upgrade-choices {
        flex-direction: column;
        align-items: stretch;
        max-height: 55vh;
        overflow-y: auto;
        padding: 0.25rem;
        gap: 0.6rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.2) transparent;
    }

    .upgrade-choices::-webkit-scrollbar {
        width: 4px;
    }

    .upgrade-choices::-webkit-scrollbar-track {
        background: transparent;
    }

    .upgrade-choices::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 4px;
    }

    .upgrade-card {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 1rem;
        text-align: left;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.03);
        border-width: 2px;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .upgrade-card:active {
        transform: scale(0.98);
    }

    .upgrade-rarity {
        position: absolute;
        top: 0.5rem;
        right: 0.75rem;
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
        border-radius: 6px;
        background: rgba(0, 0, 0, 0.3);
    }

    .upgrade-icon {
        font-size: 2rem;
        margin-bottom: 0;
        margin-right: 1rem;
        min-width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }

    .upgrade-details-container {
        flex: 1;
        min-width: 0;
    }

    .upgrade-name {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .upgrade-desc {
        font-size: 0.75rem;
        line-height: 1.3;
        opacity: 0.7;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .upgrade-stats {
        font-size: 0.7rem !important;
        margin-top: 0.25rem !important;
        opacity: 0.8;
    }

    /* Diamond Augments */
    #augment-menu .levelup-content {
        border-color: rgba(0, 255, 255, 0.2);
    }

    #augment-menu .upgrade-choices {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    #augment-menu .upgrade-card {
        min-height: auto;
    }

    /* Game Over */
    .gameover h1 {
        font-size: 2.2rem;
    }

    .final-stats {
        padding: 1.25rem 1.5rem;
        border-radius: 14px;
    }

    .final-stats p {
        font-size: 1rem;
    }
}

/* Tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .upgrade-choices {
        max-height: 50vh;
    }

    .upgrade-card {
        padding: 1.1rem;
    }

    .upgrade-icon {
        font-size: 2.2rem;
        min-width: 54px;
        height: 54px;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .game-title {
        font-size: 1.8rem;
    }

    .levelup-content h2 {
        font-size: 1.5rem;
    }

    .upgrade-card {
        padding: 0.75rem;
    }

    .upgrade-icon {
        font-size: 1.6rem;
        min-width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }

    .upgrade-name {
        font-size: 0.85rem;
    }

    .upgrade-desc {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
    }

    .menu-content {
        padding: 1.25rem;
    }

    .timer-display {
        font-size: 1rem;
        padding: 0.35rem 0.8rem;
    }

    .xp-bar-container {
        width: 90vw;
        height: 18px;
    }
}

/* ==================== NEW AUTH PAGE STYLES ==================== */

.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('velthara-bg.jpg') center top / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 1rem;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.75) 100%);
    pointer-events: none;
}

.auth-container.hidden {
    display: none;
}

.auth-card {
    background: rgba(20, 20, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(0, 255, 170, 0.05);
    animation: cardFadeIn 0.4s ease-out;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.auth-logo span {
    color: var(--accent-primary);
}

.auth-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.auth-form input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.03);
    box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.1);
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Remember Me Checkbox */
.remember-row {
    display: flex;
    align-items: center;
    margin-top: -0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.875rem;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label:hover .checkmark {
    border-color: var(--accent-primary);
}

.checkbox-label input:checked ~ .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.auth-error {
    color: var(--danger);
    font-size: 0.875rem;
    min-height: 0;
    padding: 0.5rem 0;
    text-align: center;
}

.auth-error:empty {
    display: none;
}

/* Auth Buttons */
.auth-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.auth-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #00cc88 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 170, 0.3);
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 170, 0.4);
}

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

.auth-btn.ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-btn.ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #00ffcc;
    text-decoration: underline;
}

/* ==================== AUTH MOBILE RESPONSIVE ==================== */
@media (max-width: 480px) {
    .auth-container {
        padding: 0.75rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
        margin: 0;
        width: 100%;
        max-width: none;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .auth-header {
        margin-bottom: 1.5rem;
    }

    .auth-logo {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .auth-tagline {
        font-size: 0.85rem;
    }

    .auth-form {
        gap: 1rem;
    }

    .input-group label {
        font-size: 0.8rem;
    }

    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        padding: 0.9rem 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 10px;
    }

    .remember-row {
        margin-top: -0.25rem;
    }

    .checkbox-label {
        font-size: 0.8rem;
    }

    .checkmark {
        width: 18px;
        height: 18px;
        border-radius: 5px;
    }

    .auth-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .auth-btn.primary {
        box-shadow: 0 4px 15px rgba(0, 255, 170, 0.25);
    }

    .auth-divider {
        margin: 1.25rem 0;
    }

    .auth-divider span {
        font-size: 0.75rem;
    }

    .auth-footer {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }

    .auth-footer p {
        font-size: 0.85rem;
    }
}

/* Tablet / Landscape Mobile */
@media (min-width: 481px) and (max-width: 768px) {
    .auth-card {
        max-width: 400px;
    }
}

/* Desktop enhancements */
@media (min-width: 769px) {
    .auth-card {
        padding: 3rem;
    }

    .auth-logo {
        font-size: 3rem;
    }
}

/* Leaderboard Styles */
.lb-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 2px solid #333;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lb-tab:first-child {
    border-radius: 8px 0 0 8px;
}

.lb-tab:last-child {
    border-radius: 0 8px 8px 0;
}

.lb-tab.active {
    background: var(--legendary);
    color: var(--bg-dark);
    border-color: var(--legendary);
}

.lb-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lb-entry {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 2px solid #333;
    border-radius: 8px;
    gap: 1rem;
}

.lb-entry.lb-me {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.1);
}

.lb-rank {
    font-size: 1.25rem;
    min-width: 3rem;
    text-align: center;
}

.lb-name {
    flex: 1;
    color: var(--text-primary);
    font-weight: 600;
}

.lb-value {
    color: var(--legendary);
    font-weight: 700;
    font-size: 1.1rem;
}

.lb-loading,
.lb-empty,
.lb-error {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.lb-error {
    color: var(--danger);
}

/* Settings Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #888;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: #fff;
}

/* Volume Slider */
#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #333;
    border-radius: 4px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #00ffcc;
}

#volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}