/* ---------- Follow Us ---------- */
.follow-us-subtitle {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-top: -12px;
    margin-bottom: 16px;
}

.follow-us-card {
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.follow-us-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.follow-us-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.follow-us-icon svg {
    width: 28px;
    height: 28px;
}

/* Facebook/Instagram icons carry their own brand-colored fills directly in the SVG markup --
   only the group icon uses currentColor, so only it needs a color set here. */
.follow-us-icon-group {
    color: var(--color-primary);
}

.follow-us-info {
    flex: 1 1 200px;
    min-width: 0;
}

.follow-us-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2px;
}

.follow-us-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.follow-us-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    background: var(--color-primary-tint);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.follow-us-btn:hover {
    background: var(--color-primary);
    color: white;
}

.follow-us-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 480px) {
    .follow-us-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Sign-in modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 44, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 300;
}

.modal-dialog {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 52px 24px 24px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--radius-sm);
    z-index: 1;
}

.modal-close:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

/* ---------- Home page leaderboard preview card ----------
   The row-level classes (.hlb-row, .hlb-medal, .hlb-badge, etc.) now live in components.css --
   leaderboard.html's full table reuses them too, inside its own .leaderboard-table wrapper. What
   stays here is just the home-only "card" chrome around the top-5 preview: the header (trophy +
   title + "View full leaderboard" link) and the "keep playing" footer, neither of which the full
   leaderboard page has. */
.hlb-card {
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.hlb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.hlb-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hlb-trophy {
    color: var(--color-primary);
    display: flex;
}

.hlb-trophy svg {
    width: 26px;
    height: 26px;
}

.hlb-view-all {
    font-size: 15px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.hlb-view-all:hover {
    text-decoration: underline;
}

.hlb-table {
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hlb-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.hlb-footer-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-primary-tint);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hlb-footer-icon svg {
    width: 16px;
    height: 16px;
}

#hlb-footer-message {
    font-size: 14px;
    color: var(--color-text-secondary);
}

@media (max-width: 640px) {
    .hlb-card {
        padding: 20px;
    }

    .hlb-footer {
        text-align: center;
    }
}
