/* 1. GLOBAL RESET - Kill all transparency */
* {
    box-sizing: border-box;
    opacity: 1 !important;
}

[x-cloak] { display: none !important; }

body { 
    background: #054d2b; 
    background-image: url('https://star-tap.me/images/bg.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

/* 2. THE WRAPPERS */
.main-wrapper {
    padding-top: 32vh; 
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw; 
    margin: 0;
    overflow-x: hidden;
}

.leaderboard-content {
    width: 90% !important;
    margin: 0 auto;
    background: transparent; /* Container is clear so items sit on body BG */
}

/* 3. SOLID SEARCH BOX */
input[type="text"] {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #eeeeee;
    --tw-bg-opacity: 1 !important; /* Forces Tailwind to be opaque */
}

/* 4. SOLID RANK CARDS */
.rank-card-1 {
    background-color: #e61e2a !important; /* Solid Red */
    color: #ffffff !important;
    height: 58px !important; 
    margin-bottom: 6px;
    border-radius: 8px;
    --tw-bg-opacity: 1 !important;
}

.rank-card-top {
    background-color: #1b5e20 !important; /* Solid Dark Green */
    color: #ffffff !important;
    height: 48px !important;
    margin-bottom: 4px;
    border-radius: 4px;
    --tw-bg-opacity: 1 !important;
}

.rank-card-default {
    background-color: #ffffff !important; /* Solid White */
    color: #1a1a1a !important;
    height: 38px !important;
    margin-bottom: 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    --tw-bg-opacity: 1 !important;
}

/* 5. ROW LAYOUT FIXES */
.leaderboard-row-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0 15px !important;
}

.rank-number {
    font-weight: bold;
    font-size: 1.125rem;
    width: 32px;
    flex-shrink: 0;
}

.username-col {
    flex-grow: 1;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.stats-text {
    font-size: 0.85rem !important;
    font-weight: 600;
    margin-right: 20px;
}

/* 6. FLOATING MODAL (SOLID) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Change this from #000000 to rgba */
    background-color: rgba(0, 0, 0, 0.7) !important; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* This adds a nice blur effect to the background image */
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
}

.modal-card {
    width: 90%;
    max-width: 400px;
    background-color: #008000 !important; /* Solid Green from your reference */
    border-radius: 20px;
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 30px #000000;
    border: none;
}

.modal-card span {
    text-shadow: none; /* Keep text clean */
}