/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
}

body {
    background: linear-gradient(135deg, #000428, #004e92, #000428);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00ffcc;
}

#gameContainer {
    position: relative;
    width: 800px;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 
        0 0 60px rgba(0, 255, 204, 0.3),
        inset 0 0 100px rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.2);
    backdrop-filter: blur(10px);
}

canvas {
    background: #000;
    display: block;
    position: relative;
    z-index: 1;
}

/* Minimalist UI - Floating Glass Panels */
#ui {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    background: rgba(0, 20, 40, 0.6);
    padding: 8px 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    backdrop-filter: blur(20px);
    font-size: 0.9rem;
    color: #00ffcc;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#ui div {
    margin: 2px 0;
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* Time info - separate window - Top Right */
#timeInfo {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    background: rgba(0, 20, 40, 0.6);
    padding: 8px 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    backdrop-filter: blur(20px);
    font-size: 0.9rem;
    color: #00ffcc;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Powerup Indicators - Holographic Style - Lower Left */
#powerupIndicators {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 5;
    background: rgba(0, 20, 40, 0.6);
    padding: 8px 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    backdrop-filter: blur(20px);
    font-size: 0.9rem;
    color: #00ffcc;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.powerup-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 0 12px currentColor;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.powerup-indicator.active {
    transform: scale(1.2);
    box-shadow: 0 0 20px currentColor;
}

.double-fire { background: linear-gradient(45deg, #ff6600, #ff3300); }
.shield { background: linear-gradient(45deg, #0066ff, #00ccff); }
.clone { background: linear-gradient(45deg, #9900ff, #cc66ff); }
.autofire { background: linear-gradient(45deg, #00cc66, #00ff99); }
.slowdown { background: linear-gradient(45deg, #ff69b4, #ff1493); }
.extra-life { background: linear-gradient(45deg, #ff0000, #ff6600); }

/* Progress Bar - Sleek Modern Design - Lower Right */
#levelProgress {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 180px;
    height: 24px;
    background: rgba(0, 20, 40, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    overflow: hidden;
    z-index: 5;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#progressBar {
    height: 100%;
    background: linear-gradient(90deg, #006666, #00ffcc, #00ffff);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.6);
}

#progressText {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Current Level Info - Floating Card - Top Center */
#currentLevelInfo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 20, 40, 0.6);
    padding: 10px 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    z-index: 5;
    font-size: 0.95rem;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Screens - Glass Morphism */
#loginScreen, #startScreen, #gameOverScreen, #levelUpScreen, #winScreen, #highScoresScreen, #masterTestScreen, #settingsScreen, #mastery20Screen, #helpScreen, #missionsScreen, #mastery40Screen, #mastery60Screen, #mastery80Screen, #megaMasterScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 20, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(30px);
    border-radius: 24px;
}

#startScreen, #gameOverScreen, #levelUpScreen, #winScreen, #highScoresScreen, #masterTestScreen, #settingsScreen, #mastery20Screen, #helpScreen, #missionsScreen, #mastery40Screen, #mastery60Screen, #mastery80Screen, #megaMasterScreen {
    display: none;
}

/* Glass Panel */
.glass-panel {
    background: rgba(0, 20, 40, 0.8);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    backdrop-filter: blur(40px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 50px rgba(0, 255, 204, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 204, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite linear;
}

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

/* Futuristic Text */
h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(45deg, #00ffcc, #006666, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #00ffcc;
    font-style: italic;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #00ffcc;
    text-align: center;
    font-weight: 600;
}

/* Input Group */
.input-group {
    margin: 20px 0;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #00ffcc;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(0, 255, 204, 0.3);
    border-radius: 12px;
    background: rgba(0, 30, 60, 0.6);
    color: #00ffcc;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

/* Buttons - Neumorphic Style */
button {
    padding: 16px 32px;
    margin: 12px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(145deg, #006666, #00ffcc);
    color: #000;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(0, 255, 204, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 255, 204, 0.5),
        0 0 40px rgba(0, 255, 255, 0.6);
    background: linear-gradient(145deg, #00ffcc, #00ffff);
}

button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 
        0 5px 15px rgba(0, 255, 204, 0.3),
        0 0 10px rgba(0, 255, 255, 0.4);
}

/* Special Buttons */
#restartButton, #winRestartButton {
    background: linear-gradient(145deg, #006633, #00ff99);
}

#restartButton:hover, #winRestartButton:hover {
    background: linear-gradient(145deg, #00ff99, #00ffcc);
}

#homeButton, #returnHomeButton, #winHomeButton, #closeHelpButton, #closeMissionsButton {
    background: linear-gradient(145deg, #993300, #ff6600);
}

#homeButton:hover, #returnHomeButton:hover, #winHomeButton:hover, #closeHelpButton:hover, #closeMissionsButton:hover {
    background: linear-gradient(145deg, #ff6600, #ff9900);
}

#highScoresButton {
    background: linear-gradient(145deg, #660066, #cc00cc);
}

#highScoresButton:hover {
    background: linear-gradient(145deg, #cc00cc, #ff00ff);
}

#settingsButton, #closeSettingsButton {
    background: linear-gradient(145deg, #003366, #0066cc);
}

#settingsButton:hover, #closeSettingsButton:hover {
    background: linear-gradient(145deg, #0066cc, #0099ff);
}

#clearScoresButton {
    background: linear-gradient(145deg, #990000, #cc0000);
}

#clearScoresButton:hover {
    background: linear-gradient(145deg, #cc0000, #ff0000);
}

#helpButton {
    background: linear-gradient(145deg, #336600, #66cc00);
}

#helpButton:hover {
    background: linear-gradient(145deg, #66cc00, #99ff00);
}

#missionsButton {
    background: linear-gradient(145deg, #663300, #cc9900);
}

#missionsButton:hover {
    background: linear-gradient(145deg, #cc9900, #ffcc00);
}

/* Mission buttons */
.mission-button {
    background: linear-gradient(145deg, #336699, #66ccff);
    width: 100%;
    margin: 10px 0;
}

.mission-button:hover {
    background: linear-gradient(145deg, #66ccff, #99ffff);
}

/* High Scores List */
#highScores, #fullHighScoresList {
    margin-top: 20px;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: rgba(0, 30, 60, 0.6);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    backdrop-filter: blur(20px);
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
    color: #00ffcc;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.score-item.master,
.score-item.master-plus,
.score-item.master20,
.score-item.master40,
.score-item.master60,
.score-item.master80,
.score-item.mega-master {
    color: gold;
    font-weight: bold;
    text-shadow: 0 0 10px gold;
}

.score-item:hover {
    background: rgba(0, 255, 204, 0.1);
    transform: translateX(5px);
}

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

/* Creator Credit */
#creatorCredit {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 0.8rem;
    color: rgba(0, 255, 204, 0.4);
    z-index: 5;
}

/* Beta Version Text */
#betaVersion {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 0.8rem;
    color: rgba(0, 255, 204, 0.4);
    z-index: 15;
}

/* Effects and Animations */
.explosion {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #00ffcc 0%, #006666 70%, transparent 100%);
    pointer-events: none;
    z-index: 4;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
}

.powerup-effect {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

/* Level up animation */
@keyframes levelUp {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.level-up {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    color: #00ffcc;
    text-shadow: 0 0 30px rgba(0, 255, 204, 0.8);
    animation: levelUp 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    pointer-events: none;
    background: rgba(0, 20, 40, 0.9);
    padding: 25px 45px;
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 204, 0.5);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(0, 255, 204, 0.4);
    font-weight: 700;
}

/* Powerup timer bars */
.powerup-timer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 12px;
    background: rgba(0, 20, 40, 0.6);
    border-radius: 6px;
    overflow: hidden;
    z-index: 6;
    border: 1px solid rgba(0, 255, 204, 0.3);
    backdrop-filter: blur(10px);
}

.timer-bar {
    height: 100%;
    width: 100%;
    transition: width 0.1s linear;
}

.double-fire-bar { background: linear-gradient(90deg, #ff3300, #ff9900); }
.shield-bar { background: linear-gradient(90deg, #0066ff, #00ccff); }
.clone-bar { background: linear-gradient(90deg, #9900ff, #cc66ff); }
.autofire-bar { background: linear-gradient(90deg, #00cc66, #00ff99); }
.slowdown-bar { background: linear-gradient(90deg, #ff1493, #ff69b4); }
.extra-life-bar { background: linear-gradient(90deg, #ff0000, #ff6600); }

/* Feedback messages */
.feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    border-radius: 20px;
    font-size: 2.2rem;
    font-weight: 700;
    z-index: 1000;
    animation: fadeInOut 2s forwards;
    backdrop-filter: blur(30px);
    border: 3px solid currentColor;
    text-align: center;
    box-shadow: 0 0 60px currentColor;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

.correct {
    background: rgba(0, 51, 0, 0.8);
    color: #00ff99;
    border-color: #00ff99;
}

.incorrect {
    background: rgba(51, 0, 0, 0.8);
    color: #ff6666;
    border-color: #ff6666;
}

/* Trophy */
.trophy {
    font-size: 4.5rem;
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
    text-shadow: 0 0 30px gold;
    color: gold;
}

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

/* Weapon upgrade */
.weapon-upgrade {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #00ff99;
    text-shadow: 0 0 30px rgba(0, 255, 153, 0.8);
    animation: levelUp 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    pointer-events: none;
    background: rgba(0, 20, 40, 0.9);
    padding: 30px 50px;
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 153, 0.5);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(0, 255, 153, 0.4);
    text-align: center;
    font-weight: 700;
}

/* Settings slider */
.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.slider-container button {
    padding: 10px 15px;
    font-size: 1.2rem;
    min-width: 40px;
}

.slider-label {
    font-size: 1.1rem;
    color: #00ffcc;
    font-weight: 600;
    text-align: center;
    margin: 5px 0;
}

.slider-wrapper {
    width: 100%;
    margin: 10px 0;
}

.slider-title {
    font-size: 1.2rem;
    color: #00ffcc;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="range"] {
    width: 100%;
    height: 12px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00);
    border-radius: 6px;
    outline: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, #00ffcc, #006666);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.8);
    border: 2px solid #000;
}

#speedValue, #accelerationValue, #powerupSpeedValue {
    font-size: 1.2rem;
    min-width: 120px;
    color: #00ffcc;
    font-weight: 600;
    text-align: center;
}

/* Help screen */
.help-section {
    margin: 15px 0;
    text-align: left;
}

.help-section h2 {
    margin-bottom: 12px;
    color: #00ffcc;
    font-size: 1.3rem;
}

.help-section p {
    margin: 8px 0;
    color: #00ffcc;
    line-height: 1.5;
    font-size: 1rem;
}

.powerup-help {
    display: flex;
    align-items: center;
    margin: 12px 0;
    padding: 8px;
    border-radius: 12px;
    background: rgba(0, 255, 204, 0.1);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.powerup-help:hover {
    background: rgba(0, 255, 204, 0.2);
    transform: translateX(10px);
}

.powerup-help .powerup-indicator {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

/* Close button */
.close-screen-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(145deg, #993300, #ff6600);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
}

.close-screen-button:hover {
    background: linear-gradient(145deg, #ff6600, #ff9900);
    transform: scale(1.1) rotate(90deg);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 20, 40, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #006666, #00ffcc);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00ffcc, #00ffff);
}

/* No scroll for specific screens */
#levelUpScreen .glass-panel,
#masterTestScreen .glass-panel,
#mastery20Screen .glass-panel {
    overflow: hidden;
}

/* Edu hint styling */
.edu-hint {
    background: rgba(0, 50, 100, 0.3);
    border-left: 3px solid #00ffcc;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 0.9rem;
}

.edu-hint a {
    color: #00ffff;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 850px) {
    #gameContainer {
        width: 95vw;
        height: 85vh;
    }
    
    #ui, #timeInfo, #levelProgress, #currentLevelInfo, #powerupIndicators {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: 8px;
        width: calc(100% - 16px);
    }
    
    #levelProgress {
        width: calc(100% - 16px);
    }
}

/* Scrollable content for help and high scores */
#helpContent, #highScoresContent, #missionsContent, #settingsContent {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Home button on start screen */
#gfjButton {
    background: linear-gradient(145deg, #993300, #ff6600);
}

#gfjButton:hover {
    background: linear-gradient(145deg, #ff6600, #ff9900);
}

/* Mission buttons container */
#missionsButtonsContainer {
    max-height: 50vh;
    overflow-y: auto;
    padding: 10px;
    width: 100%;
}

/* Speed input fields */
.speed-input {
    width: 80px;
    padding: 8px;
    margin: 0 10px;
    text-align: center;
}

/* Close settings button */
#closeSettingsButton {
    margin-top: 20px;
}

/* Master stars */
.master-stars {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.star {
    font-size: 1.5rem;
    margin: 0 2px;
    color: #808080;
}

.star.gold {
    color: gold;
    text-shadow: 0 0 10px gold;
}

/* Login screen enhancements */
.login-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.login-option button {
    width: 100%;
    margin: 10px 0;
}

.player-stats {
    background: rgba(0, 30, 60, 0.6);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid rgba(0, 255, 204, 0.3);
    text-align: center;
}

.stat-item {
    margin: 8px 0;
    font-size: 1rem;
}

.stat-value {
    font-weight: bold;
    color: #00ffcc;
}

.login-form {
    width: 100%;
    display: none;
}

.login-form.active {
    display: block;
}

.back-button {
    background: linear-gradient(145deg, #333333, #666666);
    width: 100%;
    margin-top: 10px;
}

.back-button:hover {
    background: linear-gradient(145deg, #666666, #999999);
}

.player-name {
    font-weight: bold;
    color: #00ffcc;
}



/* Leaderboad   */
:root{
  --bg:#0b0c10;
  --card:#11131a;
  --muted:#8b90a0;
  --text:#e6e8ef;
  --accent:#6ee7b7;
  --border:#1f2430;
}

.leaderboard{
  max-width:1000px;
  margin:1.5rem auto;
  background:var(--card);
  padding:1rem 1.25rem;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.lb-header{
  display:flex;
  gap:1rem;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.lb-title{
  font-size:1.5rem;
  line-height:1.2;
  margin:0;
  color:var(--text);
}

.lb-controls{
  display:flex;
  align-items:center;
  gap:.5rem;
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  padding:.4rem .6rem;
  border-radius:12px;
}

.lb-controls label{
  font-size:.9rem;
  color:var(--muted);
}

.lb-controls select{
  background:transparent;
  color:var(--text);
  border:1px solid var(--border);
  padding:.3rem .5rem;
  border-radius:8px;
}

/* Tabelle */
.lb-table-wrap{
  overflow:auto;
  margin-top:.75rem;
  border-radius:12px;
  border:1px solid var(--border);
}

.lb-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}

.lb-table thead th{
  position:sticky;
  top:0;
  background:linear-gradient(#151826,#121521);
  color:var(--muted);
  text-align:left;
  font-weight:600;
  letter-spacing:.02em;
}

.lb-table th,
.lb-table td{
  padding:.75rem .9rem;
  border-bottom:1px solid var(--border);
  white-space:nowrap;
}

.lb-table tbody tr:nth-child(odd){ background:rgba(255,255,255,.02); }
.lb-table tbody tr:hover{ background:rgba(110,231,183,.07); }

.lb-table .mono{
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
}

.lb-table .user{
  max-width:280px;
  overflow:hidden;
  text-overflow:ellipsis;
}

.lb-table .star{
  font-size:1.1rem;
  text-align:center;
}

.lb-table .empty{
  color:var(--muted);
  text-align:center;
}

/* Pager */
.lb-pager{
  display:flex;
  align-items:center;
  gap:.5rem;
  justify-content:center;
  margin-top:1rem;
  flex-wrap:wrap;
}

.lb-pager .btn{
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:.45rem .7rem;
  border:1px solid var(--border);
  border-radius:10px;
  text-decoration:none;
  color:var(--text);
  background:rgba(255,255,255,.03);
}

.lb-pager .btn:hover{ outline:1px solid rgba(110,231,183,.3); }
.lb-pager .btn.is-disabled{ opacity:.5; pointer-events:none; }
.pager-status{ color:var(--muted); padding:0 .5rem; }

/* Mobile: weniger wichtige Spalten ausblenden */
@media (max-width: 640px){
  .lb-controls label{ display:none; }
  .lb-table th:nth-child(3), .lb-table td:nth-child(3), /* Score */
  .lb-table th:nth-child(4), .lb-table td:nth-child(4), /* Level */
  .lb-table th:nth-child(7), .lb-table td:nth-child(7)  /* Datum */
  { display:none; }
}

/* Hinweis fuer Gaeste (nicht eingeloggt) auf dem Startscreen */
.guest-hint {
    margin-top: 18px;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.guest-hint a {
    color: #00ffcc;
}
